Mercurial > farol > farol
comparison farol/templates/vulnerability/edit_acknowledgment.j2 @ 57:4ac1dd522998
Unify the edit_acknowledgment pages
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Wed, 08 Oct 2014 10:22:14 +0200 |
parents | 4a9f23230eba |
children | aad7db3f93b6 |
comparison
equal
deleted
inserted
replaced
56:e6da0705a47c | 57:4ac1dd522998 |
---|---|
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 textinput, selectinput %} | 27 {% from "common_edits.j2" import edit_acknowledgment %} |
28 {% block title %}Edit the title{% endblock %} | 28 {% block title %}Edit an Acknowledgment{% endblock %} |
29 | 29 |
30 {% set active = 'vulnerability' %} | 30 {% set active = 'vulnerability' %} |
31 | 31 |
32 {% block content %} | 32 {% block content %} |
33 <form role="form" method="POST"> | 33 <form role="form" method="POST"> |
34 | 34 |
35 {{ textinput("name", "Name", "", name) }} | 35 {{ edit_acknowledgment(name, organization, description, url) }} |
36 {{ textinput("organization", "Organization", "", organization) }} | |
37 {{ textinput("description", "Description", "", description) }} | |
38 {{ textinput("url", "URL", "http://...", url, type="url") }} | |
39 | 36 |
40 <button class="btn btn-primary" type="submit">{{ action }}</button> | 37 <button class="btn btn-primary" type="submit">{{ action }}</button> |
41 <a class="btn btn-danger" href="{{ url_for('.view', ordinal=ordinal) }}">Cancel</a> | 38 <a class="btn btn-danger" href="{{ url_for('.view', ordinal=ordinal) }}">Cancel</a> |
42 </form> | 39 </form> |
43 {% endblock %} | 40 {% endblock %} |