github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/themes/wind/templates/new-node.html (about) 1 {% extends "base.html" %} 2 3 {% block title %} 4 <title>创建节点 - {{SiteName}}</title> 5 {% endblock title %} 6 7 {% block mainland %} 8 <div id="main" class="container"> 9 10 <div class="row"> 11 <div id="content" class="col-md-9"> 12 <div class="box"> 13 <div class="cell first breadcrumb"> 14 <a href="/"> <i class="icon icon-home"></i> 15 </a> <i class="fa fa-caret-right"></i> 16 创建节点 17 </div> 18 {% include "msgerr.html" %} 19 <div class="cell last"> 20 <form id="post-new" method="POST" action=""> 21 <div class="control-group"> 22 <label class="control-label">归属设定</label> 23 <div class="controls"> 24 <p class="btn-group"> 25 {% comment %} 26 <select id="selectError1" name="nodeid" class="select2-offscreen" rel="select2" tabindex="-1" placeholder="选择节点..."> 27 {% if (nodes||node) %} 28 <option value="-1">[选择节点]</option> 29 {% if node %} 30 {% if node.Pid>0 %} 31 <option value="{{node.Pid}}" selected> 32 {% if nodes %} 33 {% for nd in nodes %} 34 {% if nd.Id==node.Pid %} 35 {{nd.Title}} 36 {% endif %} 37 {% endfor %} 38 {% else %} 39 {% if node.Title %}{{node.Title}}{% else %}节点{{node.Pid}}{% endif %} 40 {% endif %} 41 </option> 42 {% endif %} 43 {% endif %} 44 {% if nodes %} 45 {% if node %} 46 {% for nd in nodes %} 47 {% if nd.Id!=node.Id %} 48 <option value="{{nd.Id}}">{{nd.Title}}</option> 49 {% endif %} 50 {% endfor %} 51 {% else %} 52 {% for nd in nodes %} 53 <option value="{{nd.Id}}">{{nd.Title}}</option> 54 {% endfor %} 55 {% endif %} 56 {% endif %} 57 {% else %} 58 <option value="-1" selected>[选择节点]</option> 59 {% endif %} 60 </select> 61 {% endcomment %} 62 <select style="width:100px" class="chosen-select" name="cid" > 63 <optgroup label="选择分类"> 64 {% if (categorys||category) %} 65 <option value="-1">节点导航</option> 66 {% if category %} 67 <option value="{{category.Id}}" selected> 68 {% if categorys %} 69 {% for cat in categorys %} 70 {% if cat.Id==category.Id %} 71 {{cat.Title}} 72 {% endif %} 73 {% endfor %} 74 {% else %} 75 {% if category.Title %}{{category.Title}}{% else %}分类{{category.Id}}{% endif %} 76 {% endif %} 77 </option> 78 {% endif %} 79 {% if categorys %} 80 {% if category %} 81 {% for cat in categorys %} 82 {% if (cat.Id!=category.Id) %} 83 <option value="{{cat.Id}}">{{cat.Title}}</option> 84 {% endif %} 85 {% endfor %} 86 {% else %} 87 {% for cat in categorys %} 88 <option value="{{cat.Id}}">{{cat.Title}}</option> 89 {% endfor %} 90 {% endif %} 91 {% endif %} 92 {% else %} 93 <option value="-1" selected>默认设置</option> 94 {% endif %} 95 </optgroup> 96 </select> 97 </p> 98 <span class="help-inline">(选择所属分类)</span> 99 </div> 100 </div> 101 <div class="clearfix"></div> 102 <div class="form-group"> 103 <input id="PostForm-Title" name="title" type="text" value="" class="form-control" placeholder="请输入节点标题" autocomplete="off"> 104 </div> 105 <div class="markdown-editor" data-preview-url="/api/markdown/" data-savekey="post/new"> 106 <div class="form-group"> 107 <div class="md-textarea"> 108 <div class="textcomplete-wrapper" style="position: relative; display: block;"> 109 <ul class="dropdown-menu" style="position: absolute; top: 0px; left: 0px; z-index: 100; display: none;"></ul> 110 <textarea id="PostForm-Content" name="content" rows="5" class="form-control editor" placeholder="请输入节点内容.." style="overflow: hidden; word-wrap: break-word; resize: none; height: 345px;"></textarea> 111 </div> 112 113 </div> 114 </div> 115 </div> 116 117 <div class="form-group"> 118 <div class="button-bar" style="position: relative;"> 119 {% if haspid==false %} 120 <button type="submit" class="btn btn-s-md btn-dark btn-rounded pull-left"> 121 提交 <i class="icon-chevron-sign-right"></i> 122 </button> 123 {% else %} 124 <div class="text-left"> 125 <span class="btn-group"> 126 <a target="_blank" href="/topic/{{curpid}}/" class="btn btn-s-md btn-dark btn-rounded"> <i class="icon-chevron-sign-left"></i> 浏览</a> 127 <button type="submit" class="btn btn-s-md btn-dark btn-rounded pull-right">提交 <i class="icon-chevron-sign-right"></i> </button> 128 </span> 129 </div> 130 {% endif %} 131 <div class="clearfix"></div> 132 </div> 133 {% include "editor-front.html" %} 134 <div class="clearfix"></div> 135 </div> 136 </form> 137 </div> 138 </div> 139 </div> 140 <div id="sidebar" class="col-md-3"> 141 <div class="box"> 142 <div class="cell first">创建节点须知</div> 143 <div class="cell last"> 144 <ul class="sidebar-list"> 145 <li>若果已经存在类似节点,请不要再创建节点。</li> 146 <li>节点的内容描述请尽量精准,简明扼要。</li> 147 </ul> 148 </div> 149 </div> 150 <div class="box"> 151 <div class="cell first">金币规则</div> 152 <div class="cell last"> 153 <ul class="sidebar-list"> 154 <li><b>发帖</b> 奖励 <b>1金币</b></li> 155 <li><b>回复</b> 消耗 <b>1金币</b></li> 156 <li><b>创建节点</b> 消耗 <b>1000金币</b></li> 157 </ul> 158 </div> 159 </div> 160 </div> 161 </div> 162 163 </div> 164 {% endblock mainland %}