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>
|
2017-01-03 19:19:32 +00:00
|
|
|
<div>{{_('Drag \'n drop to rearrange order')}}</div>
|
2016-12-26 10:33:32 +00:00
|
|
|
<div id="sortTrue" class="list-group">
|
|
|
|
{% for entry in entries %}
|
2019-10-19 08:52:03 +00:00
|
|
|
<div id="{{entry.id}}" class="list-group-item">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-4 col-sm-4 hidden-xs">
|
|
|
|
<img class="cover-heigh" src="{{ url_for('web.get_cover', book_id=entry.id) }}">
|
|
|
|
</div>
|
|
|
|
<div class="col-lg-8 col-sm-8 col-xs-12">
|
|
|
|
{{entry.title}}
|
|
|
|
{% if entry.series|length > 0 %}
|
|
|
|
<br>
|
|
|
|
{{entry.series_index}} - {{entry.series[0].name}}
|
|
|
|
{% endif %}
|
|
|
|
<br>
|
|
|
|
{% for author in entry.authors %}
|
|
|
|
{{author.name.replace('|',',')}}
|
|
|
|
{% if not loop.last %}
|
|
|
|
&
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div style="clear:both;"></div>
|
|
|
|
</div>
|
2016-12-26 10:33:32 +00:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2019-07-13 18:45:48 +00:00
|
|
|
<button onclick="sendData('{{ url_for('shelf.order_shelf', shelf_id=shelf.id) }}')" class="btn btn-default" id="ChangeOrder">{{_('Change order')}}</button>
|
|
|
|
<a href="{{ url_for('shelf.show_shelf', shelf_id=shelf.id) }}" 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 %}
|
|
|
|
|
|
|
|
|
|
|
|
|