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