noesya/osuny

View on GitHub
app/views/admin/application/featured_image/_edit.html.erb

Summary

Maintainability
Test Coverage
<%= osuny_panel t('featured_image.title') do %>
  <%= f.input :featured_image,
              as: :single_deletable_file,
              label: false,
              hint: images_formats_accepted_hint,
              input_html: { accept: default_images_formats_accepted },
              preview: true,
              resize: true %>
  <%= f.input :featured_image_alt,
              label: t('featured_image.alt.label'),
              hint: t('featured_image.alt.hint'), 
              input_html: { 
                data: {
                  translatable: true
                } 
              } %>
  <%= f.input :featured_image_credit,
              as: :summernote,
              label: t('featured_image.credit.label'),
              hint: t('featured_image.credit.hint'),
              input_html: {
                data: {
                  translatable: true,
                  'summernote-config' => 'link' 
                }
              } %>
  <%= render 'admin/communication/photo_imports/selector', about: about, f:f %>
<% end %>