comparison farol/templates/common_edits.j2 @ 64:aad7db3f93b6

Add support for Acknowledgments with multiple names and organizations
author Benoît Allard <benoit.allard@greenbone.net>
date Wed, 08 Oct 2014 14:28:29 +0200
parents 4ac1dd522998
children
comparison
equal deleted inserted replaced
63:b4fb652484b4 64:aad7db3f93b6
94 {% call textinput("description", "Description", "", description, required=True) %} 94 {% call textinput("description", "Description", "", description, required=True) %}
95 <p><strong>Description</strong> is a descriptive title or the name of the reference.</p> 95 <p><strong>Description</strong> is a descriptive title or the name of the reference.</p>
96 {% endcall %} 96 {% endcall %}
97 {% endmacro %} 97 {% endmacro %}
98 98
99 {% macro edit_acknowledgment(name, organization, description, url) %} 99 {% macro edit_acknowledgment(names, organizations, description, url) %}
100 <p><strong>Acknowledgment</strong> contains recognition of external parties that reported noncritical/low-severity security issues or provided information, observations, or suggestions that contributed to improved security or improved documentation in future releases of the document producer's products. This may also contain recognition to external parties that contributed toward producing this document.</p> 100 <p><strong>Acknowledgment</strong> contains recognition of external parties that reported noncritical/low-severity security issues or provided information, observations, or suggestions that contributed to improved security or improved documentation in future releases of the document producer's products. This may also contain recognition to external parties that contributed toward producing this document.</p>
101 <p>This element indicates collaboration with the security community in a positive fashion and is an important part of a notice or advisory. Care should be taken to ensure that individuals would like to be acknowledged before they are included.</p> 101 <p>This element indicates collaboration with the security community in a positive fashion and is an important part of a notice or advisory. Care should be taken to ensure that individuals would like to be acknowledged before they are included.</p>
102 102
103 {% call textinput("name", "Names", "", name, help="Multiple names should be comma-separated.") %} 103 {% call textinput("names", "Names", "", names | join(', '), help="Multiple names should be comma-separated.") %}
104 <p>The <strong>Name</strong> should contain the name of the party being acknowledged.</p> 104 <p>The <strong>Name</strong> should contain the name of the party being acknowledged.</p>
105 {% endcall %} 105 {% endcall %}
106 {% call textinput("organization", "Organizations", "", organization, help="Multiple organizations should be comma-separated.") %} 106 {% call textinput("organizations", "Organizations", "", organizations | join(', '), help="Multiple organizations should be comma-separated.") %}
107 <p>The <strong>Organization</strong> should contain the organization of the party or if the <strong>Name</strong> is omitted, the organization itself that is being acknowledged.</p> 107 <p>The <strong>Organization</strong> should contain the organization of the party or if the <strong>Name</strong> is omitted, the organization itself that is being acknowledged.</p>
108 {% endcall %} 108 {% endcall %}
109 {% call textarea("description", "Description", "", description, 5) %} 109 {% call textarea("description", "Description", "", description, 5) %}
110 <p>The <strong>Description</strong> can contain any contextual details the document producers wish to make known about the acknowledgment or acknowledged parties.</p> 110 <p>The <strong>Description</strong> can contain any contextual details the document producers wish to make known about the acknowledgment or acknowledged parties.</p>
111 {{ examples (['Vendor X would like to thank [Name 3] from [OrgName] for reporting this issue.', 'Vendor X would like to thank the following researchers for their contributions to making this project more secure: [Name 1], [Name 2], [Name 3]']) }} 111 {{ examples (['Vendor X would like to thank [Name 3] from [OrgName] for reporting this issue.', 'Vendor X would like to thank the following researchers for their contributions to making this project more secure: [Name 1], [Name 2], [Name 3]']) }}

http://farol.wald.intevation.org