github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/themes/wind/templates/root/create_category.html (about) 1 {% include "head.html" %} 2 <body> 3 {% include "header.html" %} 4 5 {% include "sidebar.html" %} 6 7 <div id="content"> 8 <div id="content-header"> 9 <div id="breadcrumb"> <a href="/root/dashboard/" title="控制面板" class="tip-bottom"><i class="icon-home"></i> 控制面板</a> <a href="javascript:void();"> 10 {%if catpage%} 11 {%if catpage=="RReadCategoryHandler" %} 12 阅览 13 {%else%} 14 创建 15 {%endif%} 16 {%endif%}</a> <a href="/root/create/topic/" class="current">分类</a></div> 17 {% if catpage %} 18 {%if catpage=="RReadCategoryHandler" %} 19 <h1>阅览分类</h1> 20 {%else%} 21 <h1>创建分类</h1> 22 {%endif%} 23 {%endif%} 24 </div> 25 <div class="container-fluid"><hr> 26 <div class="row-fluid"> 27 <div class="span12"> 28 <div class="widget-box"> 29 <div class="widget-title"> <span class="icon"> <i class="icon-info-sign"></i> </span> 30 <h5>撰写</h5> 31 </div> 32 {% include "msgerr.html" %} 33 <div class="widget-content nopadding"> 34 <form class="form-horizontal" method="post" action="/root/create/category/" novalidate="novalidate"> 35 <div class="control-group"> 36 <label class="control-label">标题</label> 37 <div class="controls"> 38 <input type="text" name="title" value="{% if category %}{{category.Title}}{% endif %}"/> 39 </div> 40 </div> 41 <div class="control-group"> 42 <label class="control-label">内容</label> 43 <div class="controls"> 44 <textarea rows="14" class="span11 editor" name="content">{% if category %}{{ category.Content|safe }}{% endif %}</textarea> 45 </div> 46 </div> 47 48 {% include "../editor.html" %} 49 <div class="control-group"> 50 <label class="control-label">节点</label> 51 <div class="controls"> 52 <select id="selectError" name="nodeid"> 53 {%if (nodes!=nil)||(category!=nil)%} 54 <option value="-1">归属ROOT</option> 55 {%if category%} 56 {% if category.Pid > 0 %} 57 <option value="{{category.Pid}}" selected> 58 {%if nodes%} 59 {% for node in nodes %} 60 {%if node.Id==category.Pid%} 61 {{node.Title}} 62 {%endif%} 63 {% endfor %} 64 {%else%} 65 {% if category.Pid %}分类{{category.Pid}}{%endif%} 66 {%endif%} 67 </option> 68 {%endif%} 69 {%endif%} 70 {%if nodes %} 71 {% for node in nodes %} 72 <option value="{{node.Id}}">{{node.Title}}</option> 73 {% endfor %} 74 {%endif%} 75 {%else%} 76 <option value="-1" selected>默认归属ROOT</option> 77 {%endif%} 78 </select> 79 <span class="help-inline">(选择所属节点,可选)</span> 80 </div> 81 </div> 82 <div class="form-actions"> 83 <input type="submit" value="发布" class="btn btn-success"> 84 </div> 85 </form> 86 </div> 87 </div> 88 </div> 89 </div> 90 </div> 91 </div> 92 {% include "footer.html" %} 93 <script src="/root/js/jquery.min.js"></script> 94 <script src="/root/js/jquery.ui.custom.js"></script> 95 <script src="/root/js/bootstrap.min.js"></script> 96 <script src="/root/js/jquery.uniform.js"></script> 97 <script src="/root/js/select2.min.js"></script> 98 <script src="/root/js/jquery.validate.js"></script> 99 <script src="/root/js/matrix.js"></script> 100 101 </body> 102 </html>