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