{% extends "fladmin/public/base.html" %}
{% block title %}文章栏目列表{% endblock %}

{% block content %}
<h2 class="sub-header">文章栏目管理</h2>[ <a href="{{'CMS_BASEHOST'|sysconfig}}/fladmin/articleType/add">增加顶级栏目</a> ] [ <a
    href="{{'CMS_BASEHOST'|sysconfig}}/fladmin/article/add">发布文章</a> ]<br><br>

<form name="listarc">
    <div class="table-responsive">
        <table class="table table-striped table-hover">
            <thead>
                <tr>
                    <th>ID</th>
                    <th>名称</th>
                    <th>别名</th>
                    <th>更新时间</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody id="cat-list">
                {% for row in list %}
                <tr id="cat-{{row.id}}">
                    <td>{{row.id}}</td>
                    <td>
                        <a href="{{'CMS_BASEHOST'|sysconfig}}/fladmin/article/index?type_id={{row.id}}"> 
                            {% for i in range(row.deep|int) %}
                            —{% endfor %}
                            {{row.name}}</a>
                    </td>
                    <td>{{row.filename}}</td>
                    <td>{{row.add_time|date}}</td>
                    <td><a href="{{'CMS_BASEHOST'|sysconfig}}/fladmin/article/add?type_id={{row.id}}">发布文章</a> | <a
                            href="{{'CMS_BASEHOST'|sysconfig}}/fladmin/articleType/add?parent_id={{row.id}}">增加子类</a> | <a
                            href="{{'CMS_BASEHOST'|sysconfig}}/fladmin/articleType/edit?id={{row.id}}">更改</a> | <a
                            onclick="delconfirm('{{"CMS_BASEHOST"|sysconfig}}/fladmin/articleType/delete?id={{row.id}}')"
                            href="javascript:;">删除</a></td>
                </tr>{% endfor %}
            </tbody>
        </table>
    </div><!-- 表格结束 -->
</form><!-- 表单结束 -->

{% endblock %}