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>
|
|
|
|
{% 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 %}
|