2015-08-02 11:59:11 -07:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% block body %}
|
|
|
|
<div class="discover">
|
|
|
|
<h1>{{title}}</h1>
|
|
|
|
<form role="form" method="POST">
|
|
|
|
<div class="form-group">
|
2016-11-09 10:24:33 -08:00
|
|
|
<label for="title">{{_('Title')}}</label>
|
2016-12-26 02:33:32 -08:00
|
|
|
<input type="text" class="form-control" name="title" id="title" value="{{ shelf.name if shelf.name != None }}">
|
2015-08-02 11:59:11 -07:00
|
|
|
</div>
|
2017-03-19 12:29:35 -07:00
|
|
|
{% if g.user.role_edit_shelfs() %}
|
|
|
|
<div class="checkbox">
|
|
|
|
<label>
|
2020-02-02 19:22:00 -08:00
|
|
|
<input type="checkbox" name="is_public" {% if shelf.is_public == 1 %}checked{% endif %}> {{_('Share with Everyone')}}
|
2017-03-19 12:29:35 -07:00
|
|
|
</label>
|
|
|
|
</div>
|
2021-02-06 15:19:24 -08:00
|
|
|
{% endif %}
|
2021-05-15 01:45:51 -07:00
|
|
|
{% if kobo_sync_enabled and sync_only_selected_shelves %}
|
2021-02-06 11:29:43 -08:00
|
|
|
<div class="checkbox">
|
2021-05-15 01:45:51 -07:00
|
|
|
<label> <input type="checkbox" name="kobo_sync" {% if shelf.kobo_sync == 1 %}checked{% endif %}>
|
|
|
|
{{ _('Sync this shelf with Kobo device') }}
|
2021-02-06 15:19:24 -08:00
|
|
|
</label>
|
2021-02-06 11:29:43 -08:00
|
|
|
</div>
|
2017-03-19 12:29:35 -07:00
|
|
|
{% endif %}
|
2020-02-02 19:22:00 -08:00
|
|
|
<button type="submit" class="btn btn-default" id="submit">{{_('Save')}}</button>
|
2016-12-26 02:33:32 -08:00
|
|
|
{% if shelf.id != None %}
|
2020-02-02 19:22:00 -08:00
|
|
|
<a href="{{ url_for('shelf.show_shelf', shelf_id=shelf.id) }}" class="btn btn-default">{{_('Cancel')}}</a>
|
2016-12-26 02:33:32 -08:00
|
|
|
{% endif %}
|
2015-08-02 11:59:11 -07:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|