comparison farol/templates/document/view_acknowledgment.j2 @ 105:09915cbdf549

Unify the add / edit / delete buttons
author Benoît Allard <benoit.allard@greenbone.net>
date Tue, 14 Oct 2014 14:36:31 +0200
parents 80cd8f65e72b
children
comparison
equal deleted inserted replaced
104:0e0572780aff 105:09915cbdf549
22 # along with this program; if not, write to the Free Software 22 # along with this program; if not, write to the Free Software
23 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 23 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
24 -#} 24 -#}
25 25
26 {% extends "base.j2" %} 26 {% extends "base.j2" %}
27 {% from "macros.j2" import label_value, delete_button %} 27 {% from "macros.j2" import label_value, edit_button, delete_button %}
28 {% block title %}{{ acknowledgment.getTitle() }}{% endblock %} 28 {% block title %}{{ acknowledgment.getTitle() }}{% endblock %}
29 29
30 {% block content %} 30 {% block content %}
31 <a class="pull-right" href="{{ url_for('.edit_acknowledgment', index=index) }}">edit</a> 31 <div class="pull-right">{{ edit_button(url_for('.edit_acknowledgment', index=index)) }}</div>
32 <div class='page-header'> 32 <div class='page-header'>
33 <h1>{{ acknowledgment._names | join(', ') }} <small>{{ acknowledgment._organizations | join(', ') }}</small></h1> 33 <h1>{{ acknowledgment._names | join(', ') }} <small>{{ acknowledgment._organizations | join(', ') }}</small></h1>
34 </div> 34 </div>
35 <div class="form-horizontal"> 35 <div class="form-horizontal">
36 {{ label_value('Description', acknowledgment._description or '') }} 36 {{ label_value('Description', acknowledgment._description or '') }}

http://farol.wald.intevation.org