comparison farol/templates/new.j2 @ 27:69e0330c4fae

Display the id of the current document when asking to save it
author Benoît Allard <benoit.allard@greenbone.net>
date Thu, 02 Oct 2014 12:08:48 +0200
parents 4219d6fb4c38
children 6c65b16f2680
comparison
equal deleted inserted replaced
26:33a3a36b5bf6 27:69e0330c4fae
30 30
31 {% block title %}New{% endblock %} 31 {% block title %}New{% endblock %}
32 32
33 {% block content %} 33 {% block content %}
34 {% if has_document and caching %} 34 {% if has_document and caching %}
35 <p class="text-danger">You have an unsaved document, maybe you want to <a href={{ url_for('cache.save') }}>save</a> it first ?</p> 35 <p class="text-danger">You are currently editing a document: <strong>{{ current_id }}</strong>. Loading a new one will lose your modifications. Do you want to <a href={{ url_for('cache.save') }}>save</a> it first ?</p>
36 {% endif %} 36 {% endif %}
37 <h3>New Document</h3> 37 <h3>New Document</h3>
38 38
39 <div class="panel-group" id="accordion"> 39 <div class="panel-group" id="accordion">
40 40

http://farol.wald.intevation.org