2015-08-02 20:59:11 +02:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% block body %}
|
|
|
|
<div class="discover">
|
|
|
|
<h1>{{title}}</h1>
|
|
|
|
<form role="form" method="POST">
|
|
|
|
<div class="form-group">
|
2016-11-09 20:24:33 +02:00
|
|
|
<label for="title">{{_('Title')}}</label>
|
2016-12-26 12:33:32 +02:00
|
|
|
<input type="text" class="form-control" name="title" id="title" value="{{ shelf.name if shelf.name != None }}">
|
2015-08-02 20:59:11 +02:00
|
|
|
</div>
|
|
|
|
<div class="checkbox">
|
|
|
|
<label>
|
2016-12-26 12:33:32 +02:00
|
|
|
<input type="checkbox" name="is_public" {% if shelf.is_public == 1 %}checked{% endif %}> {{_('should the shelf be public?')}}
|
2015-08-02 20:59:11 +02:00
|
|
|
</label>
|
|
|
|
</div>
|
2016-11-09 20:24:33 +02:00
|
|
|
<button type="submit" class="btn btn-default">{{_('Submit')}}</button>
|
2016-12-26 12:33:32 +02:00
|
|
|
{% if shelf.id != None %}
|
|
|
|
<a href="{{ url_for('show_shelf', shelf_id=shelf.id) }}" class="btn btn-default">{{_('Back')}}</a>
|
|
|
|
{% endif %}
|
2015-08-02 20:59:11 +02:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|