2016-12-26 10:33:32 +00:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% block body %}
|
|
|
|
<div class="col-sm-6 col-lg-6 col-xs-6">
|
|
|
|
<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 %}
|
|
|
|
<div id="{{entry.id}}" class="list-group-item">{{entry.title}}</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2019-02-09 17:46:36 +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 %}
|
|
|
|
|
|
|
|
|
|
|
|
|