Sha256: 46c7fb6143c65e9aff80f196db45c6c3b234dc0225ba91f75f374bd40165eb44

Contents?: true

Size: 1.11 KB

Versions: 14

Compression:

Stored size: 1.11 KB

Contents

<% if Rails::VERSION::MAJOR >= 5 %>
  <% form_prefix = f.object_name.parameterize(separator: '_') %>
<% else %>
  <% form_prefix = f.object_name.parameterize('_') %>
<% end %>
<%= field_set_tag do %>
  <%= f.check_box(:display) %>
<% end if f.object.is_a? Spotlight::Masthead %>
<%= field_set_tag(t(:'.source.header')) do %>
  <div>
    <%= f.hidden_field(:source, value: :remote, label: t(:'.source.remote.label')) %>
    <%= f.file_field_without_bootstrap(:image, data: jcrop_options.merge(input_select_target: "##{form_prefix}_source_remote")) %>
  </div>
<% end %>
<%= field_set_tag(t(:'.source.remote.header')) do %>
  <p class="instructions"><%= t(:'.source.remote.help') %></p>
  <div class="form-group croppable-loading-area <%= "missing-croppable" unless f.object.try(:image).present? %>">
    <%= hidden_field_tag :"#{jcrop_options.fetch(:selector, "image")}_crop", ([f.object.image_crop_x.to_i, f.object.image_crop_y.to_i, f.object.image_crop_x.to_i + f.object.image_crop_w.to_i, f.object.image_crop_y.to_i + f.object.image_crop_h.to_i].to_json if f.object.try(:image_crop_x)) %>
    <%= f.cropbox :image %>
  </div>
<% end %>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
blacklight-spotlight-0.32.0 app/views/spotlight/featured_images/_upload_form.html.erb
blacklight-spotlight-0.31.0 app/views/spotlight/featured_images/_upload_form.html.erb
blacklight-spotlight-0.30.0 app/views/spotlight/featured_images/_upload_form.html.erb
blacklight-spotlight-0.29.1 app/views/spotlight/featured_images/_upload_form.html.erb
blacklight-spotlight-0.29.0 app/views/spotlight/featured_images/_upload_form.html.erb
blacklight-spotlight-0.28.3 app/views/spotlight/featured_images/_upload_form.html.erb
blacklight-spotlight-0.28.2 app/views/spotlight/featured_images/_upload_form.html.erb
blacklight-spotlight-0.28.1 app/views/spotlight/featured_images/_upload_form.html.erb
blacklight-spotlight-0.28.0 app/views/spotlight/featured_images/_upload_form.html.erb
blacklight-spotlight-0.27.0 app/views/spotlight/featured_images/_upload_form.html.erb
blacklight-spotlight-0.26.1 app/views/spotlight/featured_images/_upload_form.html.erb
blacklight-spotlight-0.26.0 app/views/spotlight/featured_images/_upload_form.html.erb
blacklight-spotlight-0.25.0 app/views/spotlight/featured_images/_upload_form.html.erb
blacklight-spotlight-0.24.0 app/views/spotlight/featured_images/_upload_form.html.erb