Mercurial > farol > farol
annotate farol/templates/producttree/edit_branch.j2 @ 138:43cd11ba7928
Fix missing space
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Mon, 27 Oct 2014 11:22:59 +0100 |
parents | b6a48669edb8 |
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" %} | |
27 {% from "macros.j2" import textinput, selectinput, selectinput2 %} | |
28 {% block title %}Edit a branch{% endblock %} | |
29 | |
30 {% block content %} | |
31 <form role="form" method="POST"> | |
32 | |
85
b6a48669edb8
Don't create a branch only to have empty name
Benoît Allard <benoit.allard@greenbone.net>
parents:
46
diff
changeset
|
33 {% call selectinput('type', "Type", types, _type) %} |
46
086e35c4aee7
Add description fields for edit_product and edit_branch
Benoît Allard <benoit.allard@greenbone.net>
parents:
45
diff
changeset
|
34 <p>Branch <em>Types</em>:</p> |
086e35c4aee7
Add description fields for edit_product and edit_branch
Benoît Allard <benoit.allard@greenbone.net>
parents:
45
diff
changeset
|
35 <dl class="dl-horizontal"> |
086e35c4aee7
Add description fields for edit_product and edit_branch
Benoît Allard <benoit.allard@greenbone.net>
parents:
45
diff
changeset
|
36 <dt>Vendor:</dt><dd>The name of the vendor or manufacturer that makes the product</dd> |
086e35c4aee7
Add description fields for edit_product and edit_branch
Benoît Allard <benoit.allard@greenbone.net>
parents:
45
diff
changeset
|
37 <dt>Product Family:</dt><dd>The product family that the product falls into</dd> |
086e35c4aee7
Add description fields for edit_product and edit_branch
Benoît Allard <benoit.allard@greenbone.net>
parents:
45
diff
changeset
|
38 <dt>Product Name:</dt><dd>The name of the product</dd> |
086e35c4aee7
Add description fields for edit_product and edit_branch
Benoît Allard <benoit.allard@greenbone.net>
parents:
45
diff
changeset
|
39 <dt>Product Version:</dt><dd>The product version, can be numeric or some other descriptor</dd> |
086e35c4aee7
Add description fields for edit_product and edit_branch
Benoît Allard <benoit.allard@greenbone.net>
parents:
45
diff
changeset
|
40 <dt>Patch Level:</dt><dd>The patch level of the product</dd> |
086e35c4aee7
Add description fields for edit_product and edit_branch
Benoît Allard <benoit.allard@greenbone.net>
parents:
45
diff
changeset
|
41 <dt>Service Pack:</dt><dd>The service pack of the product</dd> |
086e35c4aee7
Add description fields for edit_product and edit_branch
Benoît Allard <benoit.allard@greenbone.net>
parents:
45
diff
changeset
|
42 <dt>Architecture:</dt><dd>The architecture for which the product is intended</dd> |
086e35c4aee7
Add description fields for edit_product and edit_branch
Benoît Allard <benoit.allard@greenbone.net>
parents:
45
diff
changeset
|
43 <dt>Language:</dt><dd>The language of the product</dd> |
086e35c4aee7
Add description fields for edit_product and edit_branch
Benoît Allard <benoit.allard@greenbone.net>
parents:
45
diff
changeset
|
44 <dt>Legacy:</dt><dd>A nonspecific legacy entry</dd> |
086e35c4aee7
Add description fields for edit_product and edit_branch
Benoît Allard <benoit.allard@greenbone.net>
parents:
45
diff
changeset
|
45 <dt>Specification:</dt><dd>A specification such as a standard, best common practice, etc.</dd> |
086e35c4aee7
Add description fields for edit_product and edit_branch
Benoît Allard <benoit.allard@greenbone.net>
parents:
45
diff
changeset
|
46 </dl> |
086e35c4aee7
Add description fields for edit_product and edit_branch
Benoît Allard <benoit.allard@greenbone.net>
parents:
45
diff
changeset
|
47 {% endcall %} |
85
b6a48669edb8
Don't create a branch only to have empty name
Benoît Allard <benoit.allard@greenbone.net>
parents:
46
diff
changeset
|
48 {% call textinput('name', "Name", value=name, required=True) %} |
46
086e35c4aee7
Add description fields for edit_product and edit_branch
Benoît Allard <benoit.allard@greenbone.net>
parents:
45
diff
changeset
|
49 <p><em>Name</em> will contain the canonical descriptor or “friendly name” of the branch.</p> |
086e35c4aee7
Add description fields for edit_product and edit_branch
Benoît Allard <benoit.allard@greenbone.net>
parents:
45
diff
changeset
|
50 {% endcall %} |
85
b6a48669edb8
Don't create a branch only to have empty name
Benoît Allard <benoit.allard@greenbone.net>
parents:
46
diff
changeset
|
51 {{ selectinput2('parent', "Path to Parent Branch", branches, parentpath) }} |
0 | 52 |
53 <button class="btn btn-primary" type="submit">{{ action or 'Update' }}</button> | |
45
7c4d001839e7
Move the Display of the ProductTree to its own page
Benoît Allard <benoit.allard@greenbone.net>
parents:
10
diff
changeset
|
54 <a class="btn btn-danger" href="{{ url_for('.view') }}">Cancel</a> |
0 | 55 </form> |
56 {% endblock %} |