2020-05-12 14:32:26 +00:00
|
|
|
|
{% extends "layout.html" %}
|
2020-06-06 19:21:10 +00:00
|
|
|
|
{% block header %}
|
|
|
|
|
<link href="{{ url_for('static', filename='css/libs/bootstrap-table.min.css') }}" rel="stylesheet">
|
|
|
|
|
<link href="{{ url_for('static', filename='css/libs/bootstrap-editable.css') }}" rel="stylesheet">
|
|
|
|
|
{% endblock %}
|
2020-05-12 14:32:26 +00:00
|
|
|
|
{% block body %}
|
2020-06-06 19:21:10 +00:00
|
|
|
|
<h2 class="{{page}}">{{_(title)}}</h2>
|
|
|
|
|
<table class="table table-no-bordered table-striped"
|
|
|
|
|
data-side-pagination="server"
|
|
|
|
|
data-pagination="true"
|
|
|
|
|
data-pagination-detail-h-align=" hidden"
|
|
|
|
|
data-pagination-h-align="left"
|
|
|
|
|
id="books-table"
|
|
|
|
|
data-url="{{url_for('web.list_books')}}"
|
|
|
|
|
data-id-field="id"
|
|
|
|
|
data-editable-mode="inline"
|
|
|
|
|
data-show-columns="true"
|
|
|
|
|
data-search="true"
|
|
|
|
|
data-search-align="left"
|
|
|
|
|
data-show-search-button="false"
|
2020-06-08 15:34:03 +00:00
|
|
|
|
data-search-on-enter-key="true"
|
2020-06-06 19:21:10 +00:00
|
|
|
|
data-checkbox-header="false"
|
|
|
|
|
data-maintain-meta-data="true">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<!--th data-field="title" id="title" data-editable-type="text" data-editable-url="{{ url_for('web.edit_list_book')}}" data-editable="true" data-editable-title="{{_('Enter title')}}"></th-->
|
2020-06-08 19:57:52 +00:00
|
|
|
|
{% if g.user.role_edit() %}
|
2020-06-06 19:21:10 +00:00
|
|
|
|
<th data-checkbox="true" data-sortable="true"></th>
|
2020-06-08 19:57:52 +00:00
|
|
|
|
{% endif %}
|
2020-06-06 19:21:10 +00:00
|
|
|
|
<th data-field="id" id="id" data-visible="false" data-switchable="false"></th>
|
2020-06-08 19:57:52 +00:00
|
|
|
|
<th data-field="title" id="title" data-sortable="true" {% if g.user.role_edit() %}data-editable-type="text" data-editable-url="{{ url_for('web.edit_list_book')}}" data-editable="true" data-editable-title="{{_('Enter title')}}"{% endif %}>Title</th>
|
|
|
|
|
<th data-field="sort" id="sort" data-sortable="true" {% if g.user.role_edit() %}data-editable-type="text" data-editable-url="{{ url_for('web.edit_list_book')}}" data-editable="true" data-editable-title="{{_('Enter title')}}"{% endif %}>Sort</th>
|
|
|
|
|
<th data-field="author_sort" id="author_sort" data-sortable="true" {% if g.user.role_edit() %}data-editable-type="text" data-editable-url="{{ url_for('web.edit_list_book')}}" data-editable="true" data-editable-title="{{_('Enter title')}}"{% endif %}>Authors Sort</th>
|
|
|
|
|
<th data-field="authors" id="authors" data-sortable="true" {% if g.user.role_edit() %}data-editable-type="text" data-editable-url="{{ url_for('web.edit_list_book')}}" data-editable="true" data-editable-title="{{_('Enter title')}}"{% endif %}>Authors</th>
|
|
|
|
|
<th data-field="tags" id="tags" data-sortable="true" {% if g.user.role_edit() %}data-editable-type="text" data-editable-url="{{ url_for('web.edit_list_book')}}" data-editable="true" data-editable-title="{{_('Enter title')}}"{% endif %}>Tags</th>
|
|
|
|
|
<th data-field="series" id="series" data-sortable="true" {% if g.user.role_edit() %}data-editable-type="text" data-editable-url="{{ url_for('web.edit_list_book')}}" data-editable="true" data-editable-title="{{_('Enter title')}}"{% endif %}>Series</th>
|
|
|
|
|
<th data-field="series_index" id="series_index" data-sortable="true" >Series Index</th>
|
|
|
|
|
<th data-field="languages" id="languages" data-sortable="true" {% if g.user.role_edit() %}data-editable-type="text" data-editable-url="{{ url_for('web.edit_list_book')}}" data-editable="true" data-editable-title="{{_('Enter title')}}"{% endif %}>Language</th>
|
2020-06-06 19:21:10 +00:00
|
|
|
|
<th data-field="pubdate" id="pubdate" data-sortable="true">Publishing Date</th>
|
2020-06-08 19:57:52 +00:00
|
|
|
|
<th data-field="publishers" id="publishers" data-sortable="true" {% if g.user.role_edit() %}data-editable-type="text" data-editable-url="{{ url_for('web.edit_list_book')}}" data-editable="true" data-editable-title="{{_('Enter title')}}"{% endif %}>Publishers</th>
|
2020-06-06 19:21:10 +00:00
|
|
|
|
{% if g.user.role_edit() %}
|
|
|
|
|
<th data-align="right" data-formatter="EbookActions" data-switchable="false"></th>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
</table>
|
2020-05-12 14:32:26 +00:00
|
|
|
|
{% endblock %}
|
2020-06-08 15:34:03 +00:00
|
|
|
|
{% block modal %}
|
|
|
|
|
{{ delete_book(0) }}
|
|
|
|
|
{% endblock %}
|
2020-05-12 14:32:26 +00:00
|
|
|
|
{% block js %}
|
2020-06-06 19:21:10 +00:00
|
|
|
|
<script src="{{ url_for('static', filename='js/libs/bootstrap-table/bootstrap-table.min.js') }}"></script>
|
|
|
|
|
<script src="{{ url_for('static', filename='js/libs/bootstrap-table/bootstrap-table-editable.min.js') }}"></script>
|
|
|
|
|
<script src="{{ url_for('static', filename='js/libs/bootstrap-table/bootstrap-editable.min.js') }}"></script>
|
|
|
|
|
<script src="{{ url_for('static', filename='js/table.js') }}"></script>
|
2020-05-12 14:32:26 +00:00
|
|
|
|
{% endblock %}
|