From e29cbe8d8d89f9a28aef7af4e6e405ad0cc4a08c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Mon, 10 Jul 2017 17:37:33 +0200 Subject: [PATCH] move buttons away from pull-right --- src/c3nav/editor/templates/editor/index.html | 16 +++++++------- src/c3nav/editor/templates/editor/level.html | 22 ++++++++++++-------- src/c3nav/editor/templates/editor/list.html | 10 ++++----- src/c3nav/editor/templates/editor/space.html | 10 +++++---- 4 files changed, 33 insertions(+), 25 deletions(-) diff --git a/src/c3nav/editor/templates/editor/index.html b/src/c3nav/editor/templates/editor/index.html index b24d8fe8..3361d60e 100644 --- a/src/c3nav/editor/templates/editor/index.html +++ b/src/c3nav/editor/templates/editor/index.html @@ -1,14 +1,16 @@ {% load bootstrap3 %} {% load i18n %} -{% if can_edit %} - - {% trans 'Level' as model_title %} - {% blocktrans %}New {{ model_title }}{% endblocktrans %} - -{% endif %} -

{% trans 'Level' %}

+

{% trans 'Levels' %}

{% bootstrap_messages %} +{% if can_edit %} +

+ + {% trans 'Level' as model_title %} + {% blocktrans %}New {{ model_title }}{% endblocktrans %} + +

+{% endif %}
{% for l in levels %} diff --git a/src/c3nav/editor/templates/editor/level.html b/src/c3nav/editor/templates/editor/level.html index d7873faf..9cf643bf 100644 --- a/src/c3nav/editor/templates/editor/level.html +++ b/src/c3nav/editor/templates/editor/level.html @@ -2,10 +2,6 @@ {% load i18n %} {% include 'editor/fragment_levels.html' %} - - {% trans 'Level' as model_title %} - {% blocktrans %}Edit {{ model_title }}{% endblocktrans %} -

{{ level.title }} {% if level.on_top_of != None %} @@ -14,6 +10,12 @@ {% endwith %} {% endif %}

+

+ + {% trans 'Level' as model_title %} + {% blocktrans %}Edit {{ model_title }}{% endblocktrans %} + +

{% if level.on_top_of == None %} « {% trans 'back to overview' %} @@ -28,12 +30,14 @@

{% if level.on_top_of is None %} - {% if can_edit %} - - {% blocktrans %}New {{ model_title }}{% endblocktrans %} - - {% endif %}

{% trans 'Levels on top' %}

+ {% if can_edit %} +

+ + {% blocktrans %}New {{ model_title }}{% endblocktrans %} + +

+ {% endif %}
{% for l in levels_on_top %} diff --git a/src/c3nav/editor/templates/editor/list.html b/src/c3nav/editor/templates/editor/list.html index 832e41eb..ef72a23c 100644 --- a/src/c3nav/editor/templates/editor/list.html +++ b/src/c3nav/editor/templates/editor/list.html @@ -3,11 +3,6 @@ {% include 'editor/fragment_levels.html' %} -{% if can_edit %} - - {% blocktrans %}New {{ model_title }}{% endblocktrans %} - -{% endif %}

{{ model_title_plural }} {% if level %} @@ -22,6 +17,11 @@ {% endif %}

{% bootstrap_messages %} +{% if can_edit %} + + {% blocktrans %}New {{ model_title }}{% endblocktrans %} + +{% endif %} {% if explicit_edit %} {% trans 'Details' as edit_caption %} diff --git a/src/c3nav/editor/templates/editor/space.html b/src/c3nav/editor/templates/editor/space.html index 2b04b5fd..cad93e75 100644 --- a/src/c3nav/editor/templates/editor/space.html +++ b/src/c3nav/editor/templates/editor/space.html @@ -2,11 +2,13 @@ {% load i18n %} {% include 'editor/fragment_levels.html' %} - - {% trans 'Space' as model_title %} - {% blocktrans %}Edit {{ model_title }}{% endblocktrans %} -

{{ space.title }}

+

+ + {% trans 'Space' as model_title %} + {% blocktrans %}Edit {{ model_title }}{% endblocktrans %} + +

« {% trans 'back to overview' %}