# HG changeset patch # User Benoît Allard # Date 1412600018 -7200 # Node ID 0c726d873c7a0a55c5a77a928ba921b9b9cb9752 # Parent 3b49063d76e04c070dae84573840bab095cdff39 Add Description fields for the edit_revision fields diff -r 3b49063d76e0 -r 0c726d873c7a farol/templates/document/edit_revision.j2 --- a/farol/templates/document/edit_revision.j2 Mon Oct 06 14:44:33 2014 +0200 +++ b/farol/templates/document/edit_revision.j2 Mon Oct 06 14:53:38 2014 +0200 @@ -24,14 +24,29 @@ -#} {% extends "base.j2" %} -{% from "macros.j2" import textinput, textarea %} +{% from "macros.j2" import textinput, textarea, examples %} {% block title %}Edit Revision{% endblock %} {% block content %}
- {{ textinput("number", "Version", "a.b.c.d", number, required=True) }} - {{ textinput("date", "Date", "", date and date.isoformat() or '', required=True, type="datetime") }} - {{ textarea("description", "Description", "", description, 3, required=True) }} + {% call textinput("number", "Number", "a.b.c.d", number, required=True) %} +

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).

+

Examples of such changes include:

+ +

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}.

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

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.

+ {% endcall %} + {% call textarea("description", "Description", "", description, 3, required=True) %} +

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.

+ {{ examples(['initial public release']) }} + {% endcall %} {% if action == 'Add' %}