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
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
1 {#
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
2 # Description:
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
3 # Web Template used in Farol Design
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
4 #
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
5 # Authors:
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
6 # BenoƮt Allard <benoit.allard@greenbone.net>
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
7 #
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
8 # Copyright:
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
9 # Copyright (C) 2014 Greenbone Networks GmbH
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
10 #
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
11 # This program is free software; you can redistribute it and/or
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
12 # modify it under the terms of the GNU General Public License
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
13 # as published by the Free Software Foundation; either version 2
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
14 # of the License, or (at your option) any later version.
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
15 #
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
16 # This program is distributed in the hope that it will be useful,
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
19 # GNU General Public License for more details.
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
20 #
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
21 # You should have received a copy of the GNU General Public License
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
22 # along with this program; if not, write to the Free Software
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
23 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
24 -#}
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
25
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
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
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
28 {% block title %}Edit the product{% endblock %}
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
29
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
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
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
36 <form role="form" method="POST">
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
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
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
46 {{ selectinput2('products', "Products", products, productids, multiple=True) }}
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
47
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
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
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
50 </form>
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
51 {% endblock %}

http://farol.wald.intevation.org