locomotivecms/engine

View on GitHub
app/views/locomotive/shared/rte/_image_popover.html.slim

Summary

Maintainability
Test Coverage
- cache base_cache_key_without_site do

  .image-dialog-content style='display: none'
    = locomotive_form_for image_form, url: '#', defaults: { placeholder: false, hint: false } do |f|
      = f.inputs do
        = f.input :src
        = f.input :title
        = f.input :alt
        = f.input :alignment, include_blank: false, collection: [[:default, ''],
          [:left, 'wysiwyg-float-left'],
          [:right, 'wysiwyg-float-right']],
          label_method: ->(el) { t("simple_form.options.locomotive.rte_input_image_form.alignment.#{el.first}") }

      p.text-right
        a.btn.btn-success.btn-sm.apply
          = f.submit_text

        |  

        a.btn.btn-default.btn-sm.cancel
          = f.submit_text :cancel