-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
118 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{% extends "../admin/inc/admin_base.html" %} {% block head %} {{ super() }} {% endblock %} {% block content %} | ||
<form class="form form-horizontal" id="form-article-add"> | ||
<input type="hidden" value="" id="aid" /> | ||
<div class="row cl"> | ||
<input type="hidden" value="{{item.id}}" id="tid" /> | ||
<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>网站名称:</label> | ||
<div class="formControls col-xs-8 col-sm-9"> | ||
<input type="text" class="input-text domain" value="{{item.domain}}" placeholder="友情链接关键字" id="" name=""> | ||
</div> | ||
</div> | ||
<div class="row cl"> | ||
<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>链接:</label> | ||
<div class="formControls col-xs-8 col-sm-9"> | ||
<input type="text" class="input-text link" value="{{item.link}}" placeholder="请输入完整的地址,如:https://www.baidu.com" id="" name=""> | ||
</div> | ||
</div> | ||
<div class="row cl"> | ||
<label class="form-label col-xs-4 col-sm-2">logo:</label> | ||
<div class="formControls col-xs-8 col-sm-9"> | ||
<input type="text" class="input-text logo" value="{{item.logo}}" placeholder="logo为图片地址" id="" name=""> | ||
</div> | ||
</div> | ||
<div class="row cl"> | ||
<label class="form-label col-xs-4 col-sm-2">联系qq:</label> | ||
<div class="formControls col-xs-8 col-sm-9"> | ||
<input type="text" class="input-text qq" value="{{item.qq}}" placeholder="" id="" name=""> | ||
</div> | ||
</div> | ||
<div class="row cl"> | ||
<label class="form-label col-xs-4 col-sm-2">审核:</label> | ||
<div class="formControls col-xs-8 col-sm-9"> <span class="select-box"> | ||
<select name="" class="select" id="tagselect"> | ||
<option value="1" selected>通过</option> | ||
<option value="0">不通过</option> | ||
</select> | ||
</span> </div> | ||
</div> | ||
<div class="row cl"> | ||
<label class="form-label col-xs-4 col-sm-2">显示顺序:</label> | ||
<div class="formControls col-xs-8 col-sm-9"> | ||
<input type="text" class="input-text orders" value="{{item.orders}}" placeholder="请输入整数,默认为0" id="" name=""> | ||
</div> | ||
</div> | ||
<div class="row cl"> | ||
<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2"> | ||
<button class="btn btn-secondary radius" id="savetag" type="button"><i class="Hui-iconfont"></i> 保存</button> | ||
<button onClick="window.location.href='/admin/{{action}}'" class="btn btn-default radius" type="button"> 取消 </button> | ||
</div> | ||
</div> | ||
</form> | ||
{% endblock %} {% block footer_other %} | ||
<script type="text/javascript" src="/static/admin/js/admin/{{action}}.js"></script> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{% extends "../admin/inc/admin_base.html" %} {% block head %} {{ super() }} {% endblock %} {% block content %} | ||
<div class="cl pd-5 bg-1 bk-gray mt-20" style="margin-bottom: 15px;"> | ||
<span class="l"> | ||
<a class="btn btn-primary radius" data-title="添加链接" href="/admin/{{action}}/item"> | ||
<i class="Hui-iconfont"></i> 添加链接 | ||
</a> | ||
<a href="javascript:;" onclick="delsome()" class="btn btn-danger radius"> | ||
<i class="Hui-iconfont"></i> 批量删除 | ||
</a> | ||
</span> | ||
<span class="r">共有数据:<strong>{{pageData.count}}</strong> 条</span> | ||
</div> | ||
<div class="dataTables_wrapper no-footer"> | ||
<table class="table table-border table-bordered table-bg table-hover table-sort dataTable no-footer" id="DataTables_Table_0" role="grid" aria-describedby="DataTables_Table_0_info"> | ||
<thead> | ||
<tr class="text-c" role="row"> | ||
<th width="25" class="sorting_disabled" rowspan="1" colspan="1" aria-label="" style="width: 25px;"> | ||
<input type="checkbox" name="" value=""> | ||
</th> | ||
<th width="80" class="sorting_desc" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-sort="descending" aria-label="ID: 升序排列" style="width: 80px;">ID</th> | ||
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="标题: 升序排列" style="width: 247px;">网站名称</th> | ||
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="标题: 升序排列" style="width: 347px;">链接</th> | ||
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="标题: 升序排列" style="width: 247px;">logo</th> | ||
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="标题: 升序排列" style="width: 147px;">联系qq</th> | ||
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="标题: 升序排列" style="width: 100px;">是否通过</th> | ||
<th class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="标题: 升序排列" style="width: 100px;">显示顺序</th> | ||
<th class="sorting_disabled" rowspan="1" colspan="1" aria-label="操作" style="width: 120px;">操作</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for item in itemList %} | ||
<tr class="text-c odd" role="row"> | ||
<td><input type="checkbox" value="{{item.id}}" name=""></td> | ||
<td>{{item.id}}</td> | ||
<td>{{item.domain}}</td> | ||
<td>{{item.link}}</td> | ||
<td>{{item.logo}}</td> | ||
<td>{{item.qq}}</td> | ||
<td>{{'通过' if item.flag=='1' else '未通过'}}</td> | ||
<td>{{item.orders}}</td> | ||
<td class="f-14 td-manage"> | ||
{% if item.flag=="1" %} | ||
<span class="label label-defaunt radius tohide" tid="{{item.id}}" tval="0" style="cursor:pointer">隐藏</span> {%endif%} | ||
<a style="text-decoration:none" class="ml-5 edit" href="/admin/links/item/{{item.id}}" title="编辑"> | ||
<i class="Hui-iconfont"></i> | ||
</a> | ||
<a style="text-decoration:none" class="ml-5 delete" del-id="{{item.id}}" title="删除"><i class="Hui-iconfont"></i></a> | ||
</td> | ||
</tr> | ||
{%endfor%} | ||
</tbody> | ||
</table> | ||
{% if pageData.count>10 %} {% include "../admin/inc/pagination.html" %} {%endif%} | ||
</div> | ||
{% endblock %} {% block footer_other %} | ||
<script type="text/javascript" src="/static/admin/js/admin/{{action}}.js"></script> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters