diff --git a/Resources/views/Translation/grid.html.twig b/Resources/views/Translation/grid.html.twig index 64bb78f7..81bdf914 100644 --- a/Resources/views/Translation/grid.html.twig +++ b/Resources/views/Translation/grid.html.twig @@ -10,15 +10,13 @@ {% block lexik_title %}{{ 'translations.page_title'|trans({}, 'LexikTranslationBundle') }}{% endblock %} {% block lexik_content %} -
- {% block lexik_toolbar %} - {% include 'LexikTranslationBundle:Translation:_gridToolbar.html.twig' %} - {% endblock lexik_toolbar %} + {% block lexik_toolbar %} + {% include 'LexikTranslationBundle:Translation:_gridToolbar.html.twig' %} + {% endblock lexik_toolbar %} - {% block lexik_data_grid %} - {% include 'LexikTranslationBundle:Translation:_ngGrid.html.twig' %} - {% endblock lexik_data_grid %} -
+ {% block lexik_data_grid %} + {% include 'LexikTranslationBundle:Translation:_ngGrid.html.twig' %} + {% endblock lexik_data_grid %} {% endblock %} {% block lexik_javascript_footer %} diff --git a/Resources/views/Translation/new.html.twig b/Resources/views/Translation/new.html.twig index 2f974fd6..1413f4de 100644 --- a/Resources/views/Translation/new.html.twig +++ b/Resources/views/Translation/new.html.twig @@ -1,57 +1,55 @@ {% extends layout %} {% block lexik_content %} -
-
-
-

{{ 'translations.add_translation'|trans({}, 'LexikTranslationBundle') }}

-
-
+
+
+

{{ 'translations.add_translation'|trans({}, 'LexikTranslationBundle') }}

+
+
-
+
- {{ form_start(form, {'action': path('lexik_translation_new'), 'method': 'POST', 'attr': {'class': 'form form-vertical'}}) }} + {{ form_start(form, {'action': path('lexik_translation_new'), 'method': 'POST', 'attr': {'class': 'form form-vertical'}}) }} -
- {{ form_label(form.key) }} - {{ form_widget(form.key, { 'attr': {'class': 'form-control'} }) }} - {{ form_errors(form.key) }} -
+
+ {{ form_label(form.key) }} + {{ form_widget(form.key, { 'attr': {'class': 'form-control'} }) }} + {{ form_errors(form.key) }} +
-
- {{ form_label(form.domain) }} - {{ form_widget(form.domain, { 'attr': {'class': 'form-control'} }) }} - {{ form_errors(form.domain) }} -
+
+ {{ form_label(form.domain) }} + {{ form_widget(form.domain, { 'attr': {'class': 'form-control'} }) }} + {{ form_errors(form.domain) }} +
-
- {{ form_label(form.translations) }} -
+
+ {{ form_label(form.translations) }} +
-
- {% for translation in form.translations %} - {{ form_label(translation) }} - {{ form_widget(translation.content, { 'attr': {'class': 'form-control'} }) }} - {{ form_errors(translation.content) }} - {{ form_widget(translation.locale) }} - {% endfor %} -
+
+ {% for translation in form.translations %} + {{ form_label(translation) }} + {{ form_widget(translation.content, { 'attr': {'class': 'form-control'} }) }} + {{ form_errors(translation.content) }} + {{ form_widget(translation.locale) }} + {% endfor %} +
-
- - - {{ 'translations.back_to_list'|trans({}, 'LexikTranslationBundle') }} - +
+ + + {{ 'translations.back_to_list'|trans({}, 'LexikTranslationBundle') }} + -
- {{ form_widget(form.save, { 'attr': {'id': 'trans-unit-submit', 'name': 'trans-unit-submit', 'class': 'btn btn-primary'} }) }} - {{ form_widget(form.save_add, { 'attr': {'id': 'trans-unit-submit-2', 'name': 'trans-unit-submit-2', 'class': 'btn btn-primary'} }) }} -
+
+ {{ form_widget(form.save, { 'attr': {'id': 'trans-unit-submit', 'name': 'trans-unit-submit', 'class': 'btn btn-primary'} }) }} + {{ form_widget(form.save_add, { 'attr': {'id': 'trans-unit-submit-2', 'name': 'trans-unit-submit-2', 'class': 'btn btn-primary'} }) }}
+
- {{ form_end(form) }} + {{ form_end(form) }} -
{% endblock %} diff --git a/Resources/views/Translation/overview.html.twig b/Resources/views/Translation/overview.html.twig index dc9a4330..11c42fe2 100644 --- a/Resources/views/Translation/overview.html.twig +++ b/Resources/views/Translation/overview.html.twig @@ -10,72 +10,70 @@ {% block lexik_title %}{{ 'overview.page_title'|trans }}{% endblock %} {% block lexik_content %} -
- {% block lexik_toolbar %} - - {% endblock lexik_toolbar %} + {% block lexik_toolbar %} + + {% endblock lexik_toolbar %} -

{{ 'overview.msg_latest_translation'|trans({'%date%': latestTrans|date('Y-m-d H:i')}) }}

+

{{ 'overview.msg_latest_translation'|trans({'%date%': latestTrans|date('Y-m-d H:i')}) }}

-
-
-
- {% if not stats|length %} -
{{ 'overview.no_stats'|trans }}
- {% else %} - - - - + {% endfor %} + +
- {{ 'overview.domain'|trans }} +
+
+
+ {% if not stats|length %} +
{{ 'overview.no_stats'|trans }}
+ {% else %} + + + + + {% for locale in locales %} + - {% for locale in locales %} - - {% endfor %} - - - - {% for domain in domains %} - - - {% for locale in locales %} - + + + {% for domain in domains %} + + + {% for locale in locales %} + - {% endfor %} - - {% endfor %} - -
+ {{ 'overview.domain'|trans }} + + {{ locale|upper }} - {{ locale|upper }} -
{{ domain }} - - {{ stats[domain][locale]['translated'] }} / {{ stats[domain][locale]['keys']|default(0) }} - -
-
-
+ {% endfor %} +
{{ domain }} + + {{ stats[domain][locale]['translated'] }} / {{ stats[domain][locale]['keys']|default(0) }} + +
+
-
- {% endif %} -
+
+ + {% endfor %} +
+ {% endif %}
-
+ {% endblock %} {% block lexik_javascript_footer %} diff --git a/Resources/views/layout.html.twig b/Resources/views/layout.html.twig index c3af978a..439e794a 100644 --- a/Resources/views/layout.html.twig +++ b/Resources/views/layout.html.twig @@ -26,7 +26,9 @@
{% endblock lexik_flash_message %} - {% block lexik_content '' %} +
+ {% block lexik_content '' %} +
{% block lexik_javascript_footer %}