2015-08-02 18:59:11 +00:00
{% extends "layout.html" %}
{% block body %}
< div class = "discover" >
< h1 > {{title}}< / h1 >
< form role = "form" method = "POST" >
< div class = "form-group" >
2016-11-09 18:24:33 +00:00
< label for = "title" > {{_('Title')}}< / label >
2016-12-26 10:33:32 +00:00
< input type = "text" class = "form-control" name = "title" id = "title" value = "{{ shelf.name if shelf.name != None }}" >
2015-08-02 18:59:11 +00:00
< / div >
2017-03-19 19:29:35 +00:00
{% if g.user.role_edit_shelfs() %}
< div class = "checkbox" >
< label >
2020-02-03 03:22:00 +00:00
< input type = "checkbox" name = "is_public" { % if shelf . is_public = = 1 % } checked { % endif % } > {{_('Share with Everyone')}}
2017-03-19 19:29:35 +00:00
< / label >
< / div >
2021-02-06 23:19:24 +00:00
{% endif %}
{% if kobo_sync_enabled %}
2021-02-06 19:29:43 +00:00
< div class = "checkbox" >
2021-02-06 23:19:24 +00:00
< label >
< input type = "checkbox" name = "kobo_sync"
2021-05-02 13:59:40 +00:00
{% if shelf.kobo_sync == 1 %}checked{% endif %}>
{% if shelf.kobo_sync == 1 and sync_all_books == 1 %}{{ _('Sync with Kobo device - If this option is turned off, all books and shelves will be synced with Kobo') }}
{% elif sync_all_books == 0 and shelf.kobo_sync == 0 %}{{ _('Only sync books from selected shelves to Kobo instead of all books and shelves') }}
{% else %}{{ _('Sync with Kobo device') }}{% endif %}
2021-02-06 23:19:24 +00:00
< / label >
2021-02-06 19:29:43 +00:00
< / div >
2017-03-19 19:29:35 +00:00
{% endif %}
2020-02-03 03:22:00 +00:00
< button type = "submit" class = "btn btn-default" id = "submit" > {{_('Save')}}< / button >
2016-12-26 10:33:32 +00:00
{% if shelf.id != None %}
2020-02-03 03:22:00 +00:00
< a href = "{{ url_for('shelf.show_shelf', shelf_id=shelf.id) }}" class = "btn btn-default" > {{_('Cancel')}}< / a >
2016-12-26 10:33:32 +00:00
{% endif %}
2015-08-02 18:59:11 +00:00
< / form >
< / div >
{% endblock %}