Skip to content

Commit

Permalink
Merge pull request #152 from jmsche/master
Browse files Browse the repository at this point in the history
MultipleUpload: Fixed asset link & added remove translation
  • Loading branch information
Jérôme Poskin committed Aug 6, 2015
2 parents 34552b8 + b696b73 commit 590a9d3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
3 changes: 3 additions & 0 deletions Resources/translations/SnowcapAdminBundle.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,3 +193,6 @@ error:
slug_alert:
title: ATTENTION
message: If you change the slug, you can break links on other pages!

multiupload_widget:
remove: Remove
5 changes: 4 additions & 1 deletion Resources/translations/SnowcapAdminBundle.fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,4 +192,7 @@ error:

slug_alert:
title: ATTENTION
message: Si vous modifiez le slug, vous pouvez casser des liens sur d'autres pages !
message: Si vous modifiez le slug, vous pouvez casser des liens sur d'autres pages !

multiupload_widget:
remove: Supprimer
10 changes: 5 additions & 5 deletions Resources/views/Form/form_admin_layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,9 @@
{% block snowcap_admin_multiupload_url_widget %}
{% spaceless %}
<li class="multiupload-file-preview">
<button class="btn btn-mini remove">Remove</button>&nbsp;
<button class="btn btn-mini remove">{{ 'multiupload_widget.remove'|trans({}, 'SnowcapAdminBundle') }}</button>&nbsp;

<a href="{{ value }}" target="_blank">
<a href="{{ asset(value) }}" target="_blank">
{{ value }}
</a>

Expand All @@ -200,10 +200,10 @@
{% block snowcap_admin_multiupload_image_widget %}
{% spaceless %}
<li class="multiupload-file-preview">
<button class="btn btn-mini remove remove-image">Remove</button>
<button class="btn btn-mini remove remove-image">{{ 'multiupload_widget.remove'|trans({}, 'SnowcapAdminBundle') }}</button>

<a href="{{ form.vars.value }}" target="_blank">
<img src="{{ value|imresize(im_resize) }}" alt="{{ value }}" />
<a href="{{ asset(value) }}" target="_blank">
<img src="{{ asset(value)|imresize(im_resize) }}" alt="{{ value }}" />
</a>

{{ block('hidden_widget') }}
Expand Down

0 comments on commit 590a9d3

Please sign in to comment.