diff --git a/app/Resources/views/admin/blog/_delete_form.html.twig b/app/Resources/views/admin/blog/_delete_form.html.twig index da76d1281..dba58a07b 100644 --- a/app/Resources/views/admin/blog/_delete_form.html.twig +++ b/app/Resources/views/admin/blog/_delete_form.html.twig @@ -1,5 +1,5 @@ {{ include('blog/_delete_post_confirmation.html.twig') }} -
+
diff --git a/app/Resources/views/admin/blog/_form.html.twig b/app/Resources/views/admin/blog/_form.html.twig index be01ff4a0..7dc6b8981 100644 --- a/app/Resources/views/admin/blog/_form.html.twig +++ b/app/Resources/views/admin/blog/_form.html.twig @@ -3,7 +3,7 @@ test the server-side validation errors from the browser. To temporarily disable this validation, add the 'novalidate' attribute: - {{ form_start(form, { attr: { novalidate: 'novalidate' } }) }} + {{ form_start(form, {attr: {novalidate: 'novalidate'}}) }} #} {% if show_confirmation|default(false) %} @@ -11,7 +11,7 @@ {{ include('blog/_delete_post_confirmation.html.twig') }} {% endif %} -{{ form_start(form, { attr: attr|default({}) }) }} +{{ form_start(form, {attr: attr|default({})}) }} {{ form_widget(form) }} - + {{ 'action.show_post'|trans }}
- {{ include('admin/blog/_delete_form.html.twig', { post: post }, with_context = false) }} + {{ include('admin/blog/_delete_form.html.twig', {post: post}, with_context = false) }}
{{ parent() }} diff --git a/app/Resources/views/admin/blog/index.html.twig b/app/Resources/views/admin/blog/index.html.twig index 4f225ae51..bb9903e89 100644 --- a/app/Resources/views/admin/blog/index.html.twig +++ b/app/Resources/views/admin/blog/index.html.twig @@ -23,11 +23,11 @@ {{ post.publishedAt|localizeddate('medium', 'short', null, 'UTC') }}
- + {{ 'action.show'|trans }} - + {{ 'action.edit'|trans }}
diff --git a/app/Resources/views/admin/blog/new.html.twig b/app/Resources/views/admin/blog/new.html.twig index 7c8ba0fde..97921e36b 100644 --- a/app/Resources/views/admin/blog/new.html.twig +++ b/app/Resources/views/admin/blog/new.html.twig @@ -13,7 +13,7 @@ {{ form_row(form.tags) }} - {{ form_widget(form.saveAndCreateNew, { label: 'label.save_and_create_new', attr: { class: 'btn btn-primary' } }) }} + {{ form_widget(form.saveAndCreateNew, {label: 'label.save_and_create_new', attr: {class: 'btn btn-primary'}}) }} {{ 'action.back_to_list'|trans }} diff --git a/app/Resources/views/admin/blog/show.html.twig b/app/Resources/views/admin/blog/show.html.twig index 60be00d72..93fc3c94b 100644 --- a/app/Resources/views/admin/blog/show.html.twig +++ b/app/Resources/views/admin/blog/show.html.twig @@ -21,13 +21,13 @@ {% block sidebar %}
- + {{ 'action.edit_contents'|trans }}
- {{ include('admin/blog/_delete_form.html.twig', { post: post }, with_context = false) }} + {{ include('admin/blog/_delete_form.html.twig', {post: post}, with_context = false) }}
{{ parent() }} diff --git a/app/Resources/views/base.html.twig b/app/Resources/views/base.html.twig index 61c3daa64..a9340e859 100644 --- a/app/Resources/views/base.html.twig +++ b/app/Resources/views/base.html.twig @@ -77,7 +77,7 @@ diff --git a/app/Resources/views/blog/_comment_form.html.twig b/app/Resources/views/blog/_comment_form.html.twig index 0f010a8aa..ee8764e1f 100644 --- a/app/Resources/views/blog/_comment_form.html.twig +++ b/app/Resources/views/blog/_comment_form.html.twig @@ -3,10 +3,10 @@ test the server-side validation errors from the browser. To temporarily disable this validation, add the 'novalidate' attribute: - {{ form_start(form, { method: ..., action: ..., attr: { novalidate: 'novalidate' } }) }} + {{ form_start(form, {method: ..., action: ..., attr: {novalidate: 'novalidate'}}) }} #} -{{ form_start(form, { method: 'POST', action: path('comment_new', { 'postSlug': post.slug }) }) }} +{{ form_start(form, {method: 'POST', action: path('comment_new', {'postSlug': post.slug})}) }} {# instead of displaying form fields one by one, you can also display them all with their default options and styles just by calling to this function: @@ -20,12 +20,12 @@ {{ form_errors(form) }}
- {{ form_label(form.content, 'label.content', { label_attr: { class: 'hidden' }}) }} + {{ form_label(form.content, 'label.content', {label_attr: {class: 'hidden'}}) }} {# Render any errors for the "content" field (e.g. when a class property constraint failed) #} {{ form_errors(form.content) }} - {{ form_widget(form.content, { attr: { rows: 10 } }) }} + {{ form_widget(form.content, {attr: {rows: 10}}) }}
diff --git a/app/Resources/views/blog/index.html.twig b/app/Resources/views/blog/index.html.twig index 10553e1f9..f3ab6e1d7 100644 --- a/app/Resources/views/blog/index.html.twig +++ b/app/Resources/views/blog/index.html.twig @@ -6,7 +6,7 @@ {% for post in posts %}

- + {{ post.title }}

@@ -26,7 +26,7 @@ {% if posts.haveToPaginate %} {% endif %} {% endblock %} diff --git a/app/Resources/views/blog/post_show.html.twig b/app/Resources/views/blog/post_show.html.twig index feea7cc36..5fd4d05fc 100644 --- a/app/Resources/views/blog/post_show.html.twig +++ b/app/Resources/views/blog/post_show.html.twig @@ -22,7 +22,7 @@ See http://symfony.com/doc/current/cookbook/security/remember_me.html#forcing-the-user-to-re-authenticate-before-accessing-certain-resources #} {% if is_granted('IS_AUTHENTICATED_FULLY') %} - {{ render(controller('AppBundle:Blog:commentForm', { 'id': post.id })) }} + {{ render(controller('AppBundle:Blog:commentForm', {'id': post.id})) }} {% else %}

@@ -59,7 +59,7 @@ {% block sidebar %} {% if is_granted('edit', post) %}