Mercurial > farol > farol
annotate farol/templates/producttree/edit_group.j2 @ 138:43cd11ba7928
Fix missing space
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Mon, 27 Oct 2014 11:22:59 +0100 |
parents | 309330b215d3 |
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" %} | |
47
309330b215d3
Add description fields to edit_group and edit_relationship
Benoît Allard <benoit.allard@greenbone.net>
parents:
45
diff
changeset
|
27 {% from "macros.j2" import textinput, selectinput2, examples %} |
0 | 28 {% block title %}Edit the product{% endblock %} |
29 | |
30 {% block content %} | |
47
309330b215d3
Add description fields to edit_group and edit_relationship
Benoît Allard <benoit.allard@greenbone.net>
parents:
45
diff
changeset
|
31 <p>If groups are defined, products can be referred to using the Group ID attribute in many other parts of the document, rather than repeatedly having to list all members individually.</p> |
309330b215d3
Add description fields to edit_group and edit_relationship
Benoît Allard <benoit.allard@greenbone.net>
parents:
45
diff
changeset
|
32 <p>Whether groups are defined or not, the ability to reference each product individually in other parts of the document is not affected. In fact, the creator of a document can choose to use either direct product references or group references.</p> |
309330b215d3
Add description fields to edit_group and edit_relationship
Benoît Allard <benoit.allard@greenbone.net>
parents:
45
diff
changeset
|
33 <p><strong>Note:</strong></p> |
309330b215d3
Add description fields to edit_group and edit_relationship
Benoît Allard <benoit.allard@greenbone.net>
parents:
45
diff
changeset
|
34 <p>Given that a single product can be a member of more than one group, some areas of the CVRF document may not allow product references by group to avoid ambiguity.</p> |
309330b215d3
Add description fields to edit_group and edit_relationship
Benoît Allard <benoit.allard@greenbone.net>
parents:
45
diff
changeset
|
35 <p>Each <strong>Group</strong> container defines a new logical group of products that can then be referred to in other parts of the document to address a group of products with a single identifier. <strong>Group</strong> members are defined by adding one <strong>Product ID</strong> element for each member of the group.</p> |
0 | 36 <form role="form" method="POST"> |
37 | |
47
309330b215d3
Add description fields to edit_group and edit_relationship
Benoît Allard <benoit.allard@greenbone.net>
parents:
45
diff
changeset
|
38 {% call textinput('groupid', "Group ID", value=groupid, required=True) %} |
309330b215d3
Add description fields to edit_group and edit_relationship
Benoît Allard <benoit.allard@greenbone.net>
parents:
45
diff
changeset
|
39 <p>The <em>Group ID</em> attribute is required to identify a <strong>Group</strong> so that it can be referred to from other parts in the document. There is no predefined or required format for the <em>Group ID</em> as long as it uniquely identifies a group in the context of the current document. Examples include incremental integers or GUIDs.</p> |
309330b215d3
Add description fields to edit_group and edit_relationship
Benoît Allard <benoit.allard@greenbone.net>
parents:
45
diff
changeset
|
40 {{ examples(['CVRFGID-0001', 'GRP-0001']) }} |
309330b215d3
Add description fields to edit_group and edit_relationship
Benoît Allard <benoit.allard@greenbone.net>
parents:
45
diff
changeset
|
41 {% endcall %} |
309330b215d3
Add description fields to edit_group and edit_relationship
Benoît Allard <benoit.allard@greenbone.net>
parents:
45
diff
changeset
|
42 {% call textinput('description', "Description", '', description) %} |
309330b215d3
Add description fields to edit_group and edit_relationship
Benoît Allard <benoit.allard@greenbone.net>
parents:
45
diff
changeset
|
43 <p><strong>Description</strong> is a short, optional description of the group.</p> |
309330b215d3
Add description fields to edit_group and edit_relationship
Benoît Allard <benoit.allard@greenbone.net>
parents:
45
diff
changeset
|
44 {{ examples(['The x64 versions of the operating system.']) }} |
309330b215d3
Add description fields to edit_group and edit_relationship
Benoît Allard <benoit.allard@greenbone.net>
parents:
45
diff
changeset
|
45 {% endcall %} |
0 | 46 {{ selectinput2('products', "Products", products, productids, multiple=True) }} |
47 | |
48 <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
|
49 <a class="btn btn-danger" href="{{ url_for('.view') }}">Cancel</a> |
0 | 50 </form> |
51 {% endblock %} |