Mercurial > farol
changeset 41:abf549d56fd9
Add Descriptions for the edit_reference fields
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Mon, 06 Oct 2014 15:40:44 +0200 |
parents | 5e6eed63ff07 |
children | 3b56ea034f2f |
files | farol/templates/document/edit_reference.j2 |
diffstat | 1 files changed, 15 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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 %} <form role="form" method="POST"> -{{ 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) %} +<p>The <em>Type</em> attribute denotes the type of the document reference relative to the given document. The following types are available:</p> +<dl class="dl-horizontal"> + <dt>External:</dt> + <dd>The default value indicates the reference is external to the document.</dd> + <dt>Self:</dt> + <dd>This indicates the related document is actually a direct reference to itself.</dd> +</dl> +{% endcall %} +{% call textinput("url", "URL", "http://...", url, type="url", required=True) %} +<p><strong>URL</strong> is the fixed URL or location of the reference.</p> +{% endcall %} +{% call textinput("description", "Description", "", description, required=True) %} +<p><strong>Description</strong> is a descriptive title or the name of the reference.</p> +{% endcall %} <button class="btn btn-primary" type="submit">{{ action or 'Update' }}</button> <a class="btn btn-danger" href="{{ url_for('.view') }}">Cancel</a>