Skip to content

Commit

Permalink
bug #2358 Replace VichUploader trans delete keys (mpiot)
Browse files Browse the repository at this point in the history
This PR was submitted for the master branch but it was merged into the 1.x branch instead (closes #2358).

Discussion
----------

Replace VichUploader trans delete keys

It appear a translation key have change in VichUploader.

Actually, the vich form use action.delete key, but the correct key is: form.label.delete.

Commits
-------

8fbe9fb Replace VichUploader trans keys
  • Loading branch information
javiereguiluz committed Sep 22, 2018
2 parents 1403a3d + 8fbe9fb commit e59e56d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Resources/views/form/bootstrap_3_layout.html.twig
Expand Up @@ -412,7 +412,7 @@
<div class="row">
{% if form.delete is defined %}
<div class="col-sm-3 col-md-2">
{{ form_row(form.delete, { label: 'action.delete' }) }}
{{ form_row(form.delete, { label: 'form.label.delete' }) }}
</div>
{% endif %}
<div class="{{ form.delete is defined ? 'col-sm-9 col-md-10' : 'col-sm-12' }}">
Expand All @@ -433,7 +433,7 @@
<div class="easyadmin-vich-image">
{{ form_widget(form.file) }}
{% if form.delete is defined %}
{{ form_row(form.delete, { label: 'action.delete' }) }}
{{ form_row(form.delete, { label: 'form.label.delete' }) }}
{% endif %}

{% if download_uri|default('') is not empty %}
Expand Down

0 comments on commit e59e56d

Please sign in to comment.