Sha256: b027f786ded32ecc37b08a332d847daa9199000a8faa78b6cea8144a8da99258

Contents?: true

Size: 1.73 KB

Versions: 3

Compression:

Stored size: 1.73 KB

Contents

= semantic_form_for 'media', { html: { id: 'mercury_media', style: 'width:600px' } } do |f|

  .mercury-modal-pane-container
    .mercury-modal-pane

      = f.inputs 'Images' do
        = f.input :image_url, required: false, input_html: { class: 'selectable' },
                  label: '<input name="media_type" type="radio" value="image_url" checked="checked"/>URL'.html_safe

      = f.inputs 'Videos' do
        = f.input :youtube_url, required: false, input_html: { class: 'selectable' },
                  label: '<input name="media_type" type="radio" value="youtube_url"/>YouTube Share URL'.html_safe
        = f.input :vimeo_url, required: false, input_html: { class: 'selectable' },
                  label: '<input name="media_type" type="radio" value="vimeo_url"/>Vimeo URL'.html_safe

      = f.inputs 'Options' do

        #image_url.media-options
          = f.input :image_alignment, as: :select, required: false, label: 'Alignment', include_blank: 'None',
                    collection: [['Left', 'left'], ['Right', 'right'], ['Top', 'top'], ['Middle', 'middle'], ['Bottom', 'bottom'], ['Absolute Middle', 'absmiddle'], ['Absolute Bottom', 'absbottom']]

        #youtube_url.media-options{ :style => 'display:none' }
          = f.input :youtube_width, required: false, label: 'Width', input_html: { value: '560' }
          = f.input :youtube_height, required: false, label: 'Height', input_html: { value: '349' }

        #vimeo_url.media-options{ :style => 'display:none' }
          = f.input :vimeo_width, required: false, label: 'Width', input_html: { value: '400' }
          = f.input :vimeo_height, required: false, label: 'Height', input_html: { value: '225' }

  .mercury-modal-controls

    = f.buttons do
      = f.commit_button 'Insert Media'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mercury-rails-0.1.2 app/views/mercury/modals/media.html.haml
mercury-rails-0.1.1 app/views/mercury/modals/media.html.haml
mercury-rails-0.1.0 app/views/mercury/modals/media.html.haml