github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/themes/wind/templates/root/update_node.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/update/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=="RUpdateNodeHandler") %} action="/root/update/node/{% if node %}{{node.Id}}{% endif %}/" {% else %} action="/root/update/node/"{% endif %} novalidate="novalidate">
    21                  <div class="control-group">
    22                    <label class="control-label">标题</label>
    23                    <div class="controls">
    24                      <input type="text" name="title" value="{% if node %}{{node.Title}}{% endif %}"/>
    25                    </div>
    26                  </div>
    27                  <div class="control-group">
    28                    <label class="control-label">内容</label>
    29                    <div class="controls">
    30                      <textarea rows="14" class="span11 editor" name="content">{% if node %}{{node.Content|safe}}{% endif %}</textarea>
    31                    </div>
    32                  </div>
    33                  
    34                  {% include "../editor.html" %}
    35  
    36                  <div class="control-group">
    37                    <label class="control-label">节点</label>
    38                    <div class="controls">
    39                      <select id="selectError" name="nodeid">
    40                      {% if (nodes||node) %}
    41                              <option value="-1">归属ROOT</option>
    42                              {% if node %}
    43                                      {% if node.Pid>0 %}
    44                                        <option value="{{node.Pid}}" selected>
    45                                        {% if nodes %}
    46                                            {% for nd in nodes %}
    47                                                  {% if nd.Id==node.Pid %}
    48                                                      {{nd.Title}}
    49                                                  {% endif %}
    50                                            {% endfor %}
    51                                        {% else %}
    52                                              {% if node.Title %}{{node.Title}}{% else %}节点{{node.Pid}}{% endif %}
    53                                        {% endif %}
    54                                        </option>
    55                                      {% endif %}
    56                              {% endif %}
    57                              {% if nodes %}
    58                                  {% if node %}
    59                                      {% for nd in nodes %}
    60                                        {% if nd.Id!=node.Id %}
    61                                          <option value="{{nd.Id}}">{{nd.Title}}</option>
    62                                        {% endif %}
    63                                      {% endfor %}
    64                                  {% else %}
    65                                      {% for nd in nodes %}
    66                                          <option value="{{nd.Id}}">{{nd.Title}}</option>
    67                                      {% endfor %}
    68                                  {% endif %}
    69                              {% endif %}
    70                      {% else %}
    71                          <option value="-1" selected>默认归属ROOT</option>
    72                      {% endif %}
    73                      </select>
    74                      <span class="help-inline">(选择所属节点,可选)</span>
    75                    </div>
    76                  </div>
    77                  <div class="control-group">
    78                    <label class="control-label">分类</label>
    79                    <div class="controls">
    80                      <select id="selectError" name="cid">
    81                      {% if (categorys||category) %}
    82                              <option value="-1">归属ROOT</option>
    83                              <option value="-1">前端展示</option>
    84                              <option value="-2">前端隐藏</option>
    85                              {% if category %}
    86                                      {% if category.Id>0 %}
    87                                        <option value="{{category.Id}}" selected>
    88                                        {% if categorys %}
    89                                            {% for cat in categorys %}
    90                                                  {% if cat.Id==category.Id %}
    91                                                      {{cat.Title}}
    92                                                  {% endif %}
    93                                            {% endfor %}
    94                                        {% else %}
    95                                              {% if category.Title %}{{category.Title}}{% else %}分类{{category.Id}}{% endif %}
    96                                        {% endif %}
    97                                        </option>
    98                                      {% endif %}
    99                              {% endif %}
   100                              {% if categorys %}
   101                                  {% if category %}
   102                                      {% for cat in categorys %}
   103                                        {% if (cat.Id!=category.Id) %}
   104                                            <option value="{{cat.Id}}">{{cat.Title}}</option>
   105                                        {% endif %}
   106                                      {% endfor %}
   107                                  {% else %}
   108                                      {% for cat in categorys %}
   109                                          <option value="{{cat.Id}}">{{cat.Title}}</option>
   110                                      {% endfor %}
   111                                  {% endif %}
   112                              {% endif %}
   113                      {% else %}
   114                          <option value="-1" selected>默认归属ROOT</option>
   115                          <option value="-1">前端展示</option>
   116                          <option value="-2">前端隐藏</option>
   117                      {% endif %}
   118                      </select>
   119                      <span class="help-inline">(选择所属分类,可选)</span>
   120                    </div>
   121                  </div>
   122                  <div class="form-actions">
   123                    <input type="submit" value="发布" class="btn btn-success">
   124                  </div>
   125                </form>
   126              </div>
   127            </div>
   128          </div>
   129        </div>
   130      </div>
   131  </div>
   132  
   133  {% include "footer.html" %}
   134  <script src="/root/js/jquery.min.js"></script>
   135  <script src="/root/js/jquery.ui.custom.js"></script>
   136  <script src="/root/js/bootstrap.min.js"></script>
   137  <script src="/root/js/jquery.uniform.js"></script>
   138  <script src="/root/js/select2.min.js"></script>
   139  <script src="/root/js/jquery.validate.js"></script>
   140  <script src="/root/js/matrix.js"></script>
   141  
   142  </body>
   143  </html>