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