github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/themes/wind/templates/root/update_page.html (about)

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