2016-12-26 11:33:32 +01:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% block body %}
|
2019-10-19 10:52:03 +02:00
|
|
|
<div class="col-sm-8 col-lg-8 col-xs-12">
|
2016-12-26 11:33:32 +01:00
|
|
|
<h2>{{title}}</h2>
|
2020-02-03 04:22:00 +01:00
|
|
|
<div>{{_('Drag to Rearrange Order')}}</div>
|
2016-12-26 11:33:32 +01:00
|
|
|
<div id="sortTrue" class="list-group">
|
|
|
|
{% for entry in entries %}
|
2020-02-23 09:07:02 +01:00
|
|
|
<div id="{{entry['id']}}" class="list-group-item">
|
2019-10-19 10:52:03 +02:00
|
|
|
<div class="row">
|
2019-10-19 12:02:14 +02:00
|
|
|
<div class="col-lg-2 col-sm-4 hidden-xs">
|
2020-02-23 09:07:02 +01:00
|
|
|
<img class="cover-height" src="{{ url_for('web.get_cover', book_id=entry['id']) }}">
|
2019-10-19 10:52:03 +02:00
|
|
|
</div>
|
2019-10-19 12:02:14 +02:00
|
|
|
<div class="col-lg-10 col-sm-8 col-xs-12">
|
2020-02-23 09:07:02 +01:00
|
|
|
{{entry['title']}}
|
|
|
|
{% if entry['series']|length > 0 %}
|
2019-10-19 10:52:03 +02:00
|
|
|
<br>
|
2020-02-23 09:07:02 +01:00
|
|
|
{{entry['series_index']}} - {{entry['series'][0].name}}
|
2019-10-19 10:52:03 +02:00
|
|
|
{% endif %}
|
|
|
|
<br>
|
2020-08-22 15:35:21 +02:00
|
|
|
{% for author in entry['author'] %}
|
2019-10-19 10:52:03 +02:00
|
|
|
{{author.name.replace('|',',')}}
|
|
|
|
{% if not loop.last %}
|
|
|
|
&
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-12-26 11:33:32 +01:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2019-07-13 20:45:48 +02:00
|
|
|
<button onclick="sendData('{{ url_for('shelf.order_shelf', shelf_id=shelf.id) }}')" class="btn btn-default" id="ChangeOrder">{{_('Change order')}}</button>
|
2020-02-08 11:33:31 +01:00
|
|
|
<a href="{{ url_for('shelf.show_shelf', shelf_id=shelf.id) }}" id="shelf_back" class="btn btn-default">{{_('Back')}}</a>
|
2016-12-26 11:33:32 +01:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block js %}
|
2017-02-07 20:33:08 +01:00
|
|
|
<script src="{{ url_for('static', filename='js/libs/Sortable.min.js') }}"></script>
|
2016-12-26 11:33:32 +01:00
|
|
|
<script src="{{ url_for('static', filename='js/shelforder.js') }}"></script>
|
|
|
|
{% endblock %}
|