diff --git a/app/views/admin/communication/blocks/templates/gallery/_edit.html.erb b/app/views/admin/communication/blocks/templates/gallery/_edit.html.erb index d6a74d78bd6f474f9de22f4064b466e0cc129850..dcec033f23e23e576b93e5cda147c3b540a82eae 100644 --- a/app/views/admin/communication/blocks/templates/gallery/_edit.html.erb +++ b/app/views/admin/communication/blocks/templates/gallery/_edit.html.erb @@ -25,34 +25,36 @@ <p>Envoyer les images et saisir les textes ci-dessous</p> <div v-for="(element, index) in data.elements" class="mb-5"> - <div class="text-end"> - <a class="btn btn-sm btn-danger" - v-on:click="data.elements.splice(data.elements.indexOf(element), 1)" - title="<%= t '.remove_image' %>"> - <i class="fas fa-times"></i> - </a> - </div> - <div class="row pure__row--small"> - <div class="col-lg-6"> - <%= block_component_edit :image, - template: @element, - label: t('admin.communication.blocks.components.image.input.label'), - placeholder: t('admin.communication.blocks.components.image.input.placeholder') %> + <%= osuny_panel 'Image' do %> + <div class="text-end"> + <a class="btn btn-sm btn-danger mt-n4" + v-on:click="data.elements.splice(data.elements.indexOf(element), 1)" + title="<%= t 'admin.communication.blocks.templates.gallery.edit.remove_image' %>"> + <i class="fas fa-times"></i> + </a> + </div> + <div class="row pure__row--small"> + <div class="col-lg-6"> + <%= block_component_edit :image, + template: @element, + label: t('admin.communication.blocks.components.image.input.label'), + placeholder: t('admin.communication.blocks.components.image.input.placeholder') %> </div> <div class="col-lg-6"> - <%= block_component_edit :alt, - template: @element, - label: t('admin.communication.blocks.components.image.alt.label'), - placeholder: t('admin.communication.blocks.components.image.alt.placeholder') %> - <%= block_component_edit :credit, - template: @element, - label: t('admin.communication.blocks.components.image.credit.label'), - placeholder: t('admin.communication.blocks.components.image.credit.placeholder'), - summernote_config: 'link' %> - <%= block_component_edit :text, - template: @element %> + <%= block_component_edit :alt, + template: @element, + label: t('admin.communication.blocks.components.image.alt.label'), + placeholder: t('admin.communication.blocks.components.image.alt.placeholder') %> + <%= block_component_edit :credit, + template: @element, + label: t('admin.communication.blocks.components.image.credit.label'), + placeholder: t('admin.communication.blocks.components.image.credit.placeholder'), + summernote_config: 'link' %> + <%= block_component_edit :text, + template: @element %> + </div> </div> - </div> + <% end %> </div> <%= block_component_add_element t('.add_image') %> diff --git a/app/views/admin/layouts/themes/appstack/_panel.html.erb b/app/views/admin/layouts/themes/appstack/_panel.html.erb index 7fd6e84c2cc23698790e06dfde368ba6b10843b8..318fe43b8b0baec78af4ce6de0692315515e5593 100644 --- a/app/views/admin/layouts/themes/appstack/_panel.html.erb +++ b/app/views/admin/layouts/themes/appstack/_panel.html.erb @@ -1,11 +1,11 @@ <div class="card flex-fill"> <% if title %> - <div class="card-header"> - <% if action %> - <div class="float-end"><%= raw action %></div> - <% end %> - <h2 class="card-title mb-0"><%= title %></h2> - </div> + <div class="card-header"> + <% if action %> + <div class="float-end"><%= raw action %></div> + <% end %> + <h2 class="card-title mb-0"><%= title %></h2> + </div> <% end %> <div class="card-body"> <%= yield %>