benoit@0: {# benoit@0: # Description: benoit@0: # Web Template used in Farol Design benoit@0: # benoit@0: # Authors: benoit@0: # Benoît Allard benoit@0: # benoit@0: # Copyright: benoit@0: # Copyright (C) 2014 Greenbone Networks GmbH benoit@0: # benoit@0: # This program is free software; you can redistribute it and/or benoit@0: # modify it under the terms of the GNU General Public License benoit@0: # as published by the Free Software Foundation; either version 2 benoit@0: # of the License, or (at your option) any later version. benoit@0: # benoit@0: # This program is distributed in the hope that it will be useful, benoit@0: # but WITHOUT ANY WARRANTY; without even the implied warranty of benoit@0: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the benoit@0: # GNU General Public License for more details. benoit@0: # benoit@0: # You should have received a copy of the GNU General Public License benoit@0: # along with this program; if not, write to the Free Software benoit@0: # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. benoit@0: -#} benoit@0: benoit@0: {% extends "base.j2" %} benoit@37: {% from "macros.j2" import textinput, textarea, examples %} benoit@0: {% block title %}Edit Revision{% endblock %} benoit@0: benoit@0: {% block content %} benoit@43:

Revision contains all the elements required to track the evolution of a CVRF document. Each change to a CVRF document should be accompanied by Number, Date, and Description elements.

benoit@0:
benoit@126: {% call textinput("number", "Number", "a.b.c.d", number, required=True, regex='(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*)){0,3}') %} benoit@37:

Number should contain the numeric version of the document. Like the Version element above, it is a numeric tokenized field of the format “nn” with up to four fields “nn.nn.nn.nn”. It is recommended that this be a monotonically increasing value. Minor revisions should be used for less-significant changes (for example, 1.0.0.0 to 1.0.0.1). Major, actionable changes should lead to a major increase of the version number (for example, 1.0 to 2.0).

benoit@37:

Examples of such changes include:

benoit@37: benoit@37:

The most recent Number element should always match the Version element. It is validated using the following regular expression: (0|[1-9][0-9]*)(\.(0|[1-9][0-9]*)){0,3}.

benoit@37: {% endcall %} benoit@37: {% call textinput("date", "Date", "", date and date.isoformat() or '', required=True, type="datetime") %} benoit@37:

Date should record the date the revision was made. All dateTime values in CVRF require a time, and we recommend the inclusion of a time zone as well (ICASI endorses the use of Greenwich mean time [GMT] or “Zulu time”). If a time zone is excluded, Zulu should be assumed.

benoit@37: {% endcall %} benoit@37: {% call textarea("description", "Description", "", description, 3, required=True) %} benoit@37:

Description should be a short description of the changes made. It can describe the conditions that prompted the change or be a short list of the items changed.

benoit@37: {{ examples(['initial public release']) }} benoit@37: {% endcall %} benoit@0: {% if action == 'Add' %} benoit@0:
benoit@0:
benoit@0: benoit@0:
benoit@0:
benoit@0: {% endif %} benoit@0: benoit@10: Cancel benoit@0:
benoit@0: {% endblock %}