MrDoc/template/app_doc/manage_doctemp.html

49 lines
1.7 KiB
HTML
Raw Normal View History

2019-07-23 13:05:27 +08:00
{% extends 'app_doc/manage_base.html' %}
2019-07-23 10:57:42 +08:00
{% load staticfiles %}
2019-07-23 13:05:27 +08:00
{% block title %}文档模板管理{% endblock %}
{% block content %}
<div class="layui-card-header" style="margin-bottom: 10px;">
<div class="layui-row">
<span style="font-size:18px;">文档模板管理
</span>
</div>
</div>
<div class="layui-row">
<div class="layui-form-item">
2019-07-23 10:57:42 +08:00
<div class="layui-input-inline">
2019-07-23 13:05:27 +08:00
<input type="text" name="username" id="username" required lay-verify="required" placeholder="输入文档模板内容" autocomplete="off" class="layui-input">
2019-07-23 10:57:42 +08:00
</div>
2019-07-23 13:05:27 +08:00
<button class="layui-btn layui-btn-normal">搜索</button>
<button class="layui-btn layui-btn-normal" onclick="createTemp()">新建文档模板</button>
2019-07-23 10:57:42 +08:00
</div>
</div>
2019-07-23 13:05:27 +08:00
<div class="layui-row" lay-skin="line">
<table class="layui-table" id="doctemp-list" lay-skin="line">
<colgroup>
<col width="200">
<col width="200">
<col>
</colgroup>
<thead>
<tr>
<th>模板名称</th>
<th>创建时间</th>
<th>操作</th>
</tr>
</thead>
<tbody>
{% for temp in doctemp_list %}
<tr>
<td>{{ temp.name }}</td>
<td>{{ temp.create_time }}</td>
<td>
{# <a href="javascript:void(0);" onclick="insertTemp('{{temp.id}}');">查看</a>#}
<a href="{% url 'modify_doctemp' doctemp_id=temp.id %}" target="_blank">修改</a>
<a href="javascript:void(0);" onclick="delTemp();">删除</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
2019-07-23 10:57:42 +08:00
</div>
2019-07-23 13:05:27 +08:00
{% endblock %}