comparison farol/templates/edit_tracking.j2 @ 0:4a9f23230eba

Initial Release
author Benoît Allard <benoit.allard@greenbone.net>
date Wed, 24 Sep 2014 10:07:49 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4a9f23230eba
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" %}
27 {% from "macros.j2" import textinput, textarea, selectinput, panel %}
28 {% block title %}Edit the type{% endblock %}
29
30 {% block content %}
31 <form role="form" method="POST">
32
33 {{ textinput("id", "ID", value=tracking._identification._id, required=True) }}
34 {{ textinput("id_aliases", "Aliases", value=', '.join(tracking._identification._aliases)) }}
35 {{ selectinput("status", "Status", statuses, tracking._status) }}
36 {{ textinput("version", "Version", value=version, required=True) }}
37 {{ textinput("initial", "Initial Release Date", value=tracking._initialDate.isoformat(), required=True, type="datetime") }}
38 {{ textinput("current", "Current Release Date", value=tracking._currentDate.isoformat(), required=True, type="datetime") }}
39
40 {% call panel(heading="Generator", title=3, collapsible=False) %}
41 {{ textinput("gen_engine", "Generator Engine", value=generator._engine or '') }}
42 {{ textinput("gen_date", "Generator Date", now.isoformat(), generator._date and generator._date.isoformat() or None, type="datetime") }}
43 {% endcall %}
44
45 <button class="btn btn-primary" type="submit">Update</button>
46 <a class="btn btn-danger" href="{{ url_for('document') }}">Cancel</a>
47 </form>
48 {% endblock %}

http://farol.wald.intevation.org