Mercurial > farol > farol
annotate farol/templates/document/edit_note.j2 @ 49:5583ddcd6164
Unify the edit_note page
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Tue, 07 Oct 2014 16:15:43 +0200 |
parents | 5e6eed63ff07 |
children |
rev | line source |
---|---|
0 | 1 {# |
2 # Description: | |
3 # Web Template used in Farol Design | |
4 # | |
5 # Authors: | |
6 # BenoƮt Allard <benoit.allard@greenbone.net> | |
7 # | |
8 # Copyright: | |
9 # Copyright (C) 2014 Greenbone Networks GmbH | |
10 # | |
11 # This program is free software; you can redistribute it and/or | |
12 # modify it under the terms of the GNU General Public License | |
13 # as published by the Free Software Foundation; either version 2 | |
14 # of the License, or (at your option) any later version. | |
15 # | |
16 # This program is distributed in the hope that it will be useful, | |
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19 # GNU General Public License for more details. | |
20 # | |
21 # You should have received a copy of the GNU General Public License | |
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. | |
24 -#} | |
25 | |
26 {% extends "base.j2" %} | |
49
5583ddcd6164
Unify the edit_note page
Benoît Allard <benoit.allard@greenbone.net>
parents:
40
diff
changeset
|
27 {% from "common_edits.j2" import edit_note %} |
5583ddcd6164
Unify the edit_note page
Benoît Allard <benoit.allard@greenbone.net>
parents:
40
diff
changeset
|
28 |
0 | 29 {% block title %}Edit the type{% endblock %} |
30 | |
31 {% block content %} | |
32 <form role="form" method="POST"> | |
33 | |
49
5583ddcd6164
Unify the edit_note page
Benoît Allard <benoit.allard@greenbone.net>
parents:
40
diff
changeset
|
34 {{ edit_note(types, note, ordinal) }} |
0 | 35 |
36 <button class="btn btn-primary" type="submit">{{ action or 'Update' }}</button> | |
38
debdea976b8a
Add Descriptions for the edit_note fields
Benoît Allard <benoit.allard@greenbone.net>
parents:
10
diff
changeset
|
37 <a class="btn btn-danger" href="{% if action=='Add' %}{{ url_for('.view') }}{% else %}{{ url_for('.view_note', ordinal=note._ordinal) }}{% endif %}">Cancel</a> |
0 | 38 </form> |
39 {% endblock %} |