# HG changeset patch # User BenoƮt Allard # Date 1412602844 -7200 # Node ID abf549d56fd9b14610bb03794164e915845819e6 # Parent 5e6eed63ff0705095b206c9d8609652d64b4f4a6 Add Descriptions for the edit_reference fields diff -r 5e6eed63ff07 -r abf549d56fd9 farol/templates/document/edit_reference.j2 --- a/farol/templates/document/edit_reference.j2 Mon Oct 06 15:40:14 2014 +0200 +++ b/farol/templates/document/edit_reference.j2 Mon Oct 06 15:40:44 2014 +0200 @@ -30,9 +30,21 @@ {% block content %}
-{{ selectinput("type", "Type", types, _type) }} -{{ textinput("url", "URL", "http://...", url, type="url", required=True) }} -{{ textinput("description", "Description", "", description, required=True) }} +{% call selectinput("type", "Type", types, _type) %} +

The Type attribute denotes the type of the document reference relative to the given document. The following types are available:

+
+
External:
+
The default value indicates the reference is external to the document.
+
Self:
+
This indicates the related document is actually a direct reference to itself.
+
+{% endcall %} +{% call textinput("url", "URL", "http://...", url, type="url", required=True) %} +

URL is the fixed URL or location of the reference.

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

Description is a descriptive title or the name of the reference.

+{% endcall %} Cancel