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

     1  {% extends "base.html" %}
     2  
     3  {% block title %}
     4  <title>修改话题 - {{SiteName}}</title>
     5  {% endblock title %}
     6  
     7  {% block mainland %}
     8      <link rel="stylesheet" href="/js/chosen/chosen.css" type="text/css" />
     9      <div id="main" class="container">
    10          <div class="row">
    11              <div id="content" class="col-md-9">
    12                  {% include "msgerr.html" %}
    13                  <div class="box">
    14                      <div class="cell first breadcrumb">
    15                          <a href="/"> <i class="icon icon-home"></i>
    16                          </a> <i class="fa fa-caret-right"></i>
    17                          修改话题
    18                      </div>
    19                      <div class="cell last">
    20                          <form id="post-new" method="POST">
    21                              <label class="control-label">标题</label>
    22                              <div class="controls">
    23                                  <div class="form-group">
    24                                      <h1 id="PostForm-Title" class="PostForm-Title inline">
    25                                      {%if topic%}
    26                                          {{ topic.Title | safe }}
    27                                      {%endif%}
    28                                      </h1>
    29                                      <input name="title" id="title" type="text" class="form-control hidden" placeholder="请输入标题" autocomplete="off">
    30                                  </div>
    31                              </div>
    32                              <div id="excerptor"{% if not topic.Excerpt %} style="display:none;"{% endif %}>
    33                                  <label class="control-label">摘录</label>
    34                                  <div class="controls">
    35                                      <div class="form-group">
    36                                          <textarea name="excerpt" id="excerpt" rows="2" class="form-control editor" placeholder="请输入摘录..." style="overflow: hidden; word-wrap: break-word; resize: none; height:80px;">{{ topic.Excerpt | safe }}</textarea>
    37                                      </div>
    38                                  </div>
    39                              </div>
    40                              <label class="control-label">正文</label>
    41                              <div class="controls">
    42                                  <div class="form-group">
    43                                      <textarea id="PostForm-Content" rows="5" class="form-control editor" placeholder="请输入正文内容.." style="overflow: hidden; word-wrap: break-word; resize: none; height: 345px;">
    44                                      {%if topic%}
    45                                          {{ topic.Content | safe }}
    46                                      {%endif%}
    47                                      </textarea>
    48                                      <textarea name="content" id="postcontent" class="hidden"></textarea>
    49                                  </div>
    50                              </div>
    51  
    52                              <div class="form-group">
    53                                  <div class="button-bar" style="position: relative;">
    54  
    55                              <div class="control-group">
    56                                      {% if haspid==false %}
    57                                        <label class="control-label">归属设定</label>
    58                                        <div class="controls">
    59                                          <p class="btn-group">
    60                                              <select style="width:200px" class="chosen-select" name="nodeid">
    61                                                  {%if categorys %}
    62                                                          {% for category in categorys %}
    63                                                              <optgroup label="{{category.Title}}">
    64                                                                  {% for node in GetNodesByCid(category.Id, 0, 0, "id") %}
    65                                                                      <option value="{{node.Id}}">{{node.Title}}
    66                                                                      </option>
    67                                                                  {%endfor%}
    68                                                              </optgroup>
    69                                                          {%endfor%}
    70                                                      {% if nodes %}
    71                                                          <optgroup label="节点导航">
    72                                                              {% for nd in nodes %}
    73                                                                  <option value="{{nd.Id}}">{{nd.Title}}</option>
    74                                                              {% endfor %}
    75                                                          </optgroup>
    76                                                      {% else %}
    77                                                          <optgroup label="缺省设置">
    78                                                              <option value="-1" selected>[选择节点]</option>
    79                                                          </optgroup>
    80                                                      {% endif %}
    81                                                  {%else%}
    82                                                      {% if (nodes||node) %}
    83                                                          <optgroup label="节点导航">
    84                                                              {% if node %}
    85                                                                      {% if node.Pid>0 %}
    86                                                                        <option value="{{node.Pid}}" selected>
    87                                                                        {% if nodes %}
    88                                                                            {% for nd in nodes %}
    89                                                                                  {% if nd.Id==node.Pid %}
    90                                                                                      {{nd.Title}}
    91                                                                                  {% endif %}
    92                                                                            {% endfor %}
    93                                                                        {% else %}
    94                                                                              {% if node.Title %}{{node.Title}}{% else %}节点{{node.Pid}}{% endif %}
    95                                                                        {% endif %}
    96                                                                        </option>
    97                                                                      {% endif %}
    98                                                              {% endif %}
    99                                                              {% if nodes %}
   100                                                                  {% if node %}
   101                                                                      {% for nd in nodes %}
   102                                                                        {% if nd.Id!=node.Id %}
   103                                                                          <option value="{{nd.Id}}">{{nd.Title}}</option>
   104                                                                        {% endif %}
   105                                                                      {% endfor %}
   106                                                                  {% else %}
   107                                                                      {% for nd in nodes %}
   108                                                                          <option value="{{nd.Id}}">{{nd.Title}}</option>
   109                                                                      {% endfor %}
   110                                                                  {% endif %}
   111                                                              {% endif %}
   112                                                          </optgroup>
   113                                                      {% else %}
   114                                                          <optgroup label="缺省设置">
   115                                                              <option value="-1" selected>[选择节点]</option>
   116                                                          </optgroup>
   117                                                      {% endif %}
   118                                                  {%endif%}
   119                                              </select>
   120                                              <select style="width:100px" id="se" name="ctype" class="chosen-select" placeholder="选择类型..."  onchange="showholder(this.id)">
   121                                                  <option value="0"{% if Compare(topic.Ctype|lower, "==","0") %} selected{%endif%}>[普通话题]</option>
   122                                                  <option value="-1"{% if Compare(topic.Ctype|lower, "==","-1") %} selected{%endif%}>[回复可见]</option>
   123                                                  <option value="-2"{% if Compare(topic.Ctype|lower, "==","-2") %} selected{%endif%}>[付费可见]</option>
   124                                                  <option value="-3"{% if Compare(topic.Ctype|lower, "==","-3") %} selected{%endif%}>[会员可见]</option>
   125                                              </select>
   126                                          </p>
   127                                          <div class="text-left">
   128                                              <span class="btn-group">
   129                                                  <p class="help-block text-right">请选择节点并撰写标题,如果标题能表述完事情,摘录、正文等内容可忽略..</p>
   130                                              </span>
   131                                          </div>
   132                                        </div>
   133                                      {% endif %}
   134                              </div>
   135                              <div class="clearfix"></div>
   136                                      {% if haspid==false %}
   137                                              <button type="submit" class="btn btn-s-md btn-dark btn-rounded pull-left" onclick="javascript:SubmitHolder();">
   138                                                  提交&nbsp;&nbsp;<i class="icon-chevron-sign-right"></i>
   139                                              </button>
   140                                      {% else %}
   141                                              <div class="text-left">
   142                                                  <span class="btn-group">
   143                                                      <a target="_blank" href="/topic/{{curpid}}/" class="btn btn-s-md btn-dark btn-rounded"> <i class="icon-chevron-sign-left"></i> 浏览</a>
   144                                                      <button type="submit" class="btn btn-s-md btn-dark btn-rounded pull-right" onclick="javascript:SubmitHolder();">提交 <i class="icon-chevron-sign-right"></i> </button>
   145                                                  </span>
   146                                              </div>
   147                                      {% endif %}
   148                                          <div class="clearfix"></div>
   149                                      </div>
   150  
   151                                  <div class="clearfix"></div>
   152                              </div>
   153                          </form>
   154                          {% include "editor-front.html" %}
   155                      </div>
   156                  </div>
   157              </div>
   158              {% include "sidebar-editor.html" %}
   159          </div>
   160          <script type="text/javascript"></script>
   161      </div>
   162      <script src="/js/chosen/chosen.jquery.min.js"></script>
   163      <script src="/js/app.plugin.js"></script>
   164  {% endblock mainland %}