77 行
2.2 KiB
HTML
77 行
2.2 KiB
HTML
{% extends '/customize/base-customize.html' %}
|
|
{% block customize_header %}
|
|
<div class="ui warning message">
|
|
<div class="header">温馨提示</div>
|
|
<ul>
|
|
<li>该定制化服务仍处于测试与迭代研发阶段。</li>
|
|
</ul>
|
|
</div>
|
|
<h2 class="ui header">快捷搜索</h2>
|
|
<a class="ui mini negative left labeled icon button btn_add"><i class="undo icon"></i>新增</a>
|
|
{% endblock%}
|
|
{% block customize_table_th %}
|
|
<th>图标</th>
|
|
<th>名称</th>
|
|
<th>地址</th>
|
|
<th>排序</th>
|
|
<th>状态</th>
|
|
<th>操作</th>
|
|
{% endblock%}
|
|
{% block customize_table_tr %}
|
|
{% for item in data_list %}
|
|
<tr>
|
|
<td>
|
|
<i class="{{ item.icon }}"></i>
|
|
</td>
|
|
<td>{{ item.name }}</td>
|
|
<td>
|
|
<a class="ui icon button url" data-content="{{ item.url }}" href="{{ item.url }}" target="_blank">
|
|
<i class="linkify icon"></i>
|
|
</a>
|
|
</td>
|
|
<td>{{ item.sort }}</td>
|
|
<td>
|
|
{% if item.status == 0 %}
|
|
<i class="icon close red"></i>
|
|
{% else %}
|
|
<i class="icon checkmark green"></i>
|
|
{% endif %}
|
|
</td>
|
|
<td>
|
|
<button class="btn_edit" data-id="{{ item.id }}">编辑</button>
|
|
<button class="btn_delete" data-id="{{ item.id }}">删除</button>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
{% endblock%}
|
|
{% block customize_form %}
|
|
<input type="text" name="id" hidden>
|
|
<input type="text" name="user_id" hidden>
|
|
<div class="fields">
|
|
<div class=" field">
|
|
<label>图标 <a class="ui mini blue text" href="/icon.html" target="_blank">图标选择</a></label>
|
|
<input type="text" name="icon">
|
|
</div>
|
|
<div class="field">
|
|
<label>名称</label>
|
|
<input type="text" name="name">
|
|
</div>
|
|
</div>
|
|
<div class="field">
|
|
<label>地址</label>
|
|
<input type="text" name="url">
|
|
</div>
|
|
<div class="fields">
|
|
<div class=" field">
|
|
<label>排序</label>
|
|
<input type="text" name="sort">
|
|
</div>
|
|
<div class=" field">
|
|
<div class="ui toggle checkbox" id="status_switch">
|
|
<input type="checkbox" name="status_switch" checked="1">
|
|
<label>状态</label>
|
|
</div>
|
|
</div>
|
|
<input type="text" id="status" name="status" hidden>
|
|
</div>
|
|
{% endblock%} |