Mercurial > farol
changeset 10:6594ff7c37b4
Fix a few links
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Mon, 29 Sep 2014 14:18:37 +0200 |
parents | 5b84a2c4f30c |
children | a32f9b86edb4 |
files | farol/templates/document/edit_acknowledgment.j2 farol/templates/document/edit_distribution.j2 farol/templates/document/edit_note.j2 farol/templates/document/edit_publisher.j2 farol/templates/document/edit_reference.j2 farol/templates/document/edit_revision.j2 farol/templates/document/edit_severity.j2 farol/templates/document/edit_title.j2 farol/templates/document/edit_tracking.j2 farol/templates/producttree/edit_branch.j2 farol/templates/producttree/edit_group.j2 farol/templates/producttree/edit_product.j2 farol/templates/producttree/edit_relationship.j2 |
diffstat | 13 files changed, 13 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/farol/templates/document/edit_acknowledgment.j2 Mon Sep 29 14:15:21 2014 +0200 +++ b/farol/templates/document/edit_acknowledgment.j2 Mon Sep 29 14:18:37 2014 +0200 @@ -36,6 +36,6 @@ {{ textinput("url", "URL", "http://...", url, type="url") }} <button class="btn btn-primary" type="submit">{{ action }}</button> -<a class="btn btn-danger" href="{{ url_for('document') }}">Cancel</a> +<a class="btn btn-danger" href="{{ url_for('.view') }}">Cancel</a> </form> {% endblock %}
--- a/farol/templates/document/edit_distribution.j2 Mon Sep 29 14:15:21 2014 +0200 +++ b/farol/templates/document/edit_distribution.j2 Mon Sep 29 14:18:37 2014 +0200 @@ -31,6 +31,6 @@ <form role="form" method="POST"> {{ textarea("distribution", "Document Distribution", "", distribution) }} <button class="btn btn-primary" type="submit">Update</button> -<a class="btn btn-danger" href="{{ url_for('document') }}">Cancel</a> +<a class="btn btn-danger" href="{{ url_for('.view') }}">Cancel</a> </form> {% endblock %}
--- a/farol/templates/document/edit_note.j2 Mon Sep 29 14:15:21 2014 +0200 +++ b/farol/templates/document/edit_note.j2 Mon Sep 29 14:18:37 2014 +0200 @@ -37,6 +37,6 @@ {{ textarea("note", "Note", "", note and note._note or '', 10, required=True) }} <button class="btn btn-primary" type="submit">{{ action or 'Update' }}</button> -<a class="btn btn-danger" href="{% if action=='Add' %}{{ url_for('document') }}{% else %}{{ url_for('view_note', ordinal=note._ordinal) }}{% endif %}">Cancel</a> +<a class="btn btn-danger" href="{% if action=='Add' %}{{ url_for('.view') }}{% else %}{{ url_for('view_note', ordinal=note._ordinal) }}{% endif %}">Cancel</a> </form> {% endblock %}
--- a/farol/templates/document/edit_publisher.j2 Mon Sep 29 14:15:21 2014 +0200 +++ b/farol/templates/document/edit_publisher.j2 Mon Sep 29 14:18:37 2014 +0200 @@ -36,6 +36,6 @@ {{ textarea("authority", "Issuing Authority", "", publisher._authority or '', 3) }} <button class="btn btn-primary" type="submit">Update</button> -<a class="btn btn-danger" href="{{ url_for('document') }}">Cancel</a> +<a class="btn btn-danger" href="{{ url_for('.view') }}">Cancel</a> </form> {% endblock %}
--- a/farol/templates/document/edit_reference.j2 Mon Sep 29 14:15:21 2014 +0200 +++ b/farol/templates/document/edit_reference.j2 Mon Sep 29 14:18:37 2014 +0200 @@ -35,6 +35,6 @@ {{ textinput("description", "Description", "", description, required=True) }} <button class="btn btn-primary" type="submit">{{ action or 'Update' }}</button> -<a class="btn btn-danger" href="{{ url_for('document') }}">Cancel</a> +<a class="btn btn-danger" href="{{ url_for('.view') }}">Cancel</a> </form> {% endblock %}
--- a/farol/templates/document/edit_revision.j2 Mon Sep 29 14:15:21 2014 +0200 +++ b/farol/templates/document/edit_revision.j2 Mon Sep 29 14:18:37 2014 +0200 @@ -42,6 +42,6 @@ </div> {% endif %} <button class="btn btn-primary" type="submit">{{ action or 'Update' }}</button> - <a class="btn btn-danger" href="{{ url_for('document') }}">Cancel</a> + <a class="btn btn-danger" href="{{ url_for('.view') }}">Cancel</a> </form> {% endblock %}
--- a/farol/templates/document/edit_severity.j2 Mon Sep 29 14:15:21 2014 +0200 +++ b/farol/templates/document/edit_severity.j2 Mon Sep 29 14:18:37 2014 +0200 @@ -32,6 +32,6 @@ {{ textinput("namespace", "Namespace", "https://", severity._namespace, type='url') }} {{ textinput("severity", "Severity", "", severity._severity, help="If left empty, no Aggregate Severity will be set (i.e. no Namespace either).") }} <button class="btn btn-primary" type="submit">Update</button> -<a class="btn btn-danger" href="{{ url_for('document') }}">Cancel</a> +<a class="btn btn-danger" href="{{ url_for('.view') }}">Cancel</a> </form> {% endblock %}
--- a/farol/templates/document/edit_title.j2 Mon Sep 29 14:15:21 2014 +0200 +++ b/farol/templates/document/edit_title.j2 Mon Sep 29 14:18:37 2014 +0200 @@ -32,6 +32,6 @@ {{ textinput("title", "Document Title", "", title, required=True) }} {{ textinput("type", "Document Type", "", _type, required=True) }} <button class="btn btn-primary" type="submit">Update</button> -<a class="btn btn-danger" href="{{ url_for('document') }}">Cancel</a> +<a class="btn btn-danger" href="{{ url_for('.view') }}">Cancel</a> </form> {% endblock %}
--- a/farol/templates/document/edit_tracking.j2 Mon Sep 29 14:15:21 2014 +0200 +++ b/farol/templates/document/edit_tracking.j2 Mon Sep 29 14:18:37 2014 +0200 @@ -43,6 +43,6 @@ {% endcall %} <button class="btn btn-primary" type="submit">Update</button> -<a class="btn btn-danger" href="{{ url_for('document') }}">Cancel</a> +<a class="btn btn-danger" href="{{ url_for('.view') }}">Cancel</a> </form> {% endblock %}
--- a/farol/templates/producttree/edit_branch.j2 Mon Sep 29 14:15:21 2014 +0200 +++ b/farol/templates/producttree/edit_branch.j2 Mon Sep 29 14:18:37 2014 +0200 @@ -35,6 +35,6 @@ {{ selectinput2('parent', "Path to Parent Branch", branches, branch.getParentPath()) }} <button class="btn btn-primary" type="submit">{{ action or 'Update' }}</button> -<a class="btn btn-danger" href="{{ url_for('document') }}">Cancel</a> +<a class="btn btn-danger" href="{{ url_for('document.view') }}">Cancel</a> </form> {% endblock %}
--- a/farol/templates/producttree/edit_group.j2 Mon Sep 29 14:15:21 2014 +0200 +++ b/farol/templates/producttree/edit_group.j2 Mon Sep 29 14:18:37 2014 +0200 @@ -35,6 +35,6 @@ {{ selectinput2('products', "Products", products, productids, multiple=True) }} <button class="btn btn-primary" type="submit">{{ action or 'Update' }}</button> -<a class="btn btn-danger" href="{{ url_for('document') }}">Cancel</a> +<a class="btn btn-danger" href="{{ url_for('document.view') }}">Cancel</a> </form> {% endblock %}
--- a/farol/templates/producttree/edit_product.j2 Mon Sep 29 14:15:21 2014 +0200 +++ b/farol/templates/producttree/edit_product.j2 Mon Sep 29 14:18:37 2014 +0200 @@ -41,6 +41,6 @@ {{ selectinput2('parent_relationship', "Parent relationship", orphaned_relationships, current_rel) }} <button class="btn btn-primary" type="submit">{{ action }}</button> -<a class="btn btn-danger" href="{{ url_for('document') }}">Cancel</a> +<a class="btn btn-danger" href="{{ url_for('document.view') }}">Cancel</a> </form> {% endblock %}
--- a/farol/templates/producttree/edit_relationship.j2 Mon Sep 29 14:15:21 2014 +0200 +++ b/farol/templates/producttree/edit_relationship.j2 Mon Sep 29 14:18:37 2014 +0200 @@ -35,6 +35,6 @@ {{ selectinput2('relatestoproductreference', "Relates to Product Reference", products, relatestoproductreference) }} <button class="btn btn-primary" type="submit">{{ action or 'Update' }}</button> -<a class="btn btn-danger" href="{{ url_for('document') }}">Cancel</a> +<a class="btn btn-danger" href="{{ url_for('document.view') }}">Cancel</a> </form> {% endblock %}