|
@@ -6,12 +6,13 @@
|
|
<div style="padding: 0" class="ui input">
|
|
<div style="padding: 0" class="ui input">
|
|
<input name="search_title" type="text" style="margin-right: 5px" placeholder="标题">
|
|
<input name="search_title" type="text" style="margin-right: 5px" placeholder="标题">
|
|
<input name='search_content' type="text" style="margin-right: 5px" placeholder="内容">
|
|
<input name='search_content' type="text" style="margin-right: 5px" placeholder="内容">
|
|
- <select name="search_category" class="ui dropdown">
|
|
|
|
|
|
+ <select name="search_category" class="ui dropdown">
|
|
{% for item in category %}
|
|
{% for item in category %}
|
|
<option value="{{ item.id }}">{{ item.name }}</option>
|
|
<option value="{{ item.id }}">{{ item.name }}</option>
|
|
{% endfor %}
|
|
{% endfor %}
|
|
</select>
|
|
</select>
|
|
- <button style="margin-left: 5px" type="submit" class="ui button primary"><i class="search icon"></i>搜索</button>
|
|
|
|
|
|
+ <button style="margin-left: 5px" type="submit" class="ui button primary"><i class="search icon"></i>搜索
|
|
|
|
+ </button>
|
|
<a href="/management/article" type="reset" class="ui button secondary"><i class="refresh icon"></i>重置</a>
|
|
<a href="/management/article" type="reset" class="ui button secondary"><i class="refresh icon"></i>重置</a>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</form>
|
|
@@ -31,8 +32,12 @@
|
|
<tbody>
|
|
<tbody>
|
|
{% for article in articles %}
|
|
{% for article in articles %}
|
|
<tr>
|
|
<tr>
|
|
- <td>{{ article.cover__file_net_path }}</td>
|
|
|
|
- <td><a href="/management/article/to_edit/{{ article.id }}">{{ article.title }}</a></td>
|
|
|
|
|
|
+ <td>{{ article.id }}</td>
|
|
|
|
+ <td><a href="/management/article/to_edit/{{ article.id }}">{% if article.title == '' %}
|
|
|
|
+ 未命名标题
|
|
|
|
+ {% else %}
|
|
|
|
+ {{ article.title }}
|
|
|
|
+ {% endif %} </a></td>
|
|
<td>{{ article.category__name }}</td>
|
|
<td>{{ article.category__name }}</td>
|
|
<td>{{ article.created_time }}</td>
|
|
<td>{{ article.created_time }}</td>
|
|
<td>{{ article.is_top }}</td>
|
|
<td>{{ article.is_top }}</td>
|