2016-12-26 10:33:32 +00:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% block body %}
|
2019-10-19 08:52:03 +00:00
|
|
|
<div class="col-sm-8 col-lg-8 col-xs-12">
|
2016-12-26 10:33:32 +00:00
|
|
|
<h2>{{title}}</h2>
|
2020-02-03 03:22:00 +00:00
|
|
|
<div>{{_('Drag to Rearrange Order')}}</div>
|
2021-10-06 19:46:09 +00:00
|
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
2016-12-26 10:33:32 +00:00
|
|
|
<div id="sortTrue" class="list-group">
|
|
|
|
{% for entry in entries %}
|
2020-12-13 12:54:09 +00:00
|
|
|
<div id="{{entry['Books']['id']}}" class="list-group-item">
|
2019-10-19 08:52:03 +00:00
|
|
|
<div class="row">
|
2019-10-19 10:02:14 +00:00
|
|
|
<div class="col-lg-2 col-sm-4 hidden-xs">
|
2020-12-13 12:54:09 +00:00
|
|
|
{% if entry['visible'] %}
|
2021-09-25 12:01:17 +00:00
|
|
|
<img title="{{entry['Books']['title']}}" class="cover-height" src="{{ url_for('web.get_cover', book_id=entry['Books']['id']) }}">
|
2020-12-13 12:54:09 +00:00
|
|
|
{% else %}
|
2021-09-25 12:01:17 +00:00
|
|
|
<img title="{{entry['Books']['title']}}" class="cover-height" src="{{ url_for('static', filename='generic_cover.jpg') }}">
|
2020-12-13 12:54:09 +00:00
|
|
|
{% endif %}
|
2019-10-19 08:52:03 +00:00
|
|
|
</div>
|
2019-10-19 10:02:14 +00:00
|
|
|
<div class="col-lg-10 col-sm-8 col-xs-12">
|
2020-12-13 12:54:09 +00:00
|
|
|
{% if entry['visible'] %}
|
|
|
|
{{entry['Books']['title']}}
|
|
|
|
{% if entry['Books']['series']|length > 0 %}
|
2019-10-19 08:52:03 +00:00
|
|
|
<br>
|
2020-12-13 12:54:09 +00:00
|
|
|
{{entry['Books']['series_index']}} - {{entry['Books']['series'][0].name}}
|
2019-10-19 08:52:03 +00:00
|
|
|
{% endif %}
|
|
|
|
<br>
|
2020-12-13 12:54:09 +00:00
|
|
|
{% for author in entry['Books']['author'] %}
|
2019-10-19 08:52:03 +00:00
|
|
|
{{author.name.replace('|',',')}}
|
|
|
|
{% if not loop.last %}
|
|
|
|
&
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2020-12-13 12:54:09 +00:00
|
|
|
{% else %}
|
|
|
|
{{_('Hidden Book')}}
|
|
|
|
<br>
|
|
|
|
{% endif %}
|
2019-10-19 08:52:03 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-12-26 10:33:32 +00:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2020-12-27 09:24:51 +00:00
|
|
|
<button onclick="sendData('{{ url_for('shelf.order_shelf', shelf_id=shelf.id) }}')" class="btn btn-default" id="ChangeOrder">{{_('Save')}}</button>
|
2020-02-08 10:33:31 +00:00
|
|
|
<a href="{{ url_for('shelf.show_shelf', shelf_id=shelf.id) }}" id="shelf_back" class="btn btn-default">{{_('Back')}}</a>
|
2016-12-26 10:33:32 +00:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block js %}
|
2017-02-07 19:33:08 +00:00
|
|
|
<script src="{{ url_for('static', filename='js/libs/Sortable.min.js') }}"></script>
|
2016-12-26 10:33:32 +00:00
|
|
|
<script src="{{ url_for('static', filename='js/shelforder.js') }}"></script>
|
|
|
|
{% endblock %}
|