1234567891011121314151617181920212223242526272829303132333435 |
- {% extends "layout.html" %}
- {% block main %}
- <h1>{{ title }}</h1>
- <table id="example" class="table table-striped table-bordered" cellspacing="0" width="60%">
- <thead>
- <tr>
- <th>數量</th>
- <th>標題</th>
- <th>順序</th>
- <th>顯示</th>
- <th style="text-align:center;width:100px;">新增 <button type="button" data-func="dt-add" class="btn btn-success btn-xs dt-add">
- <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
- </button></th>
- </tr>
- </thead>
- {% for idx in range(0, length) %}
- <tbody>
- <tr>
- <td>{{ idx }}</td>
- <td>{{ collections[idx].title }}</td>
- <td>1</td>
- <td>on</td>
- <td>
- <div>
- <a class="btn btn-secondary btn-sm m-1" href="{{ url_for('editor.editor', url=collections[idx].url) }}">編輯</a>
- <form action="{{ url_for('editor.remove', url=collections[idx].url) }}" method="POST">
- <input class="btn btn-danger" type="submit" value="Delete">
- </form>
- </div>
- </td>
- </tr>
- </tbody>
- {% endfor %}
- </table>
- {% endblock main %}
|