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