班级管理
classes.html
{% extends "layout.html" %}
{% block css %}
{% endblock %}
{% block content %}
<h1>班级列表</h1>
<div>
<input id="id_add" type="button" value="模态添加" />
<a href="/add_classes.html">url添加</a>
</div>
<table border="1">
<thead>
<tr>
<th>ID</th>
<th>标题</th>
<th>操作</th>
</tr>
</thead>
<tbody>
{% if cls_list %}
{% for item in cls_list %}
<tr>
<td alex="id">{{ item.id }}</td>
<td alex="caption">{{ item.caption }}</td>
<td>
<a class="td-edit">编辑</a>| <a target="_blank" href="/edit_classes.html?nid={{ item.id }}">跳转编辑</a> | <a class="td-delete" href="/del_classes.html?nid={{ item.id }}">删除</a>
</td>
</tr>
{% endfor %}
{% endif %}
</tbody>
</table>
<div class="pagination">
{% if str_pager%}
{{ str_pager|safe }}
{% endif %}
</div>
<div class="modal hide">
<form method="post"