Sha256: 2b8c2b69cf7097bea82711c028b581897220c6d9a6674704a739d91b69eed5de

Contents?: true

Size: 1.76 KB

Versions: 21

Compression:

Stored size: 1.76 KB

Contents

<div data-cropper="<%= f.object.model_name.singular_route_key %>" data-form-prefix="<%= form_prefix(f) %>">
<%= field_set_tag do %>
  <%= f.check_box(:display, layout: :vertical) %>
<% end if f.object.is_a? Spotlight::Masthead %>
<%= field_set_tag(t(:'.source.header')) do %>
  <div>
    <%= f.radio_button(:source, :exhibit, label: t(:'.source.exhibit.label')) %>
    <div>
      <%= f.hidden_field(:document_global_id) %>
      <div class="alert alert-danger" data-behavior="non-iiif-alert" role="alert" style="display:none;">
        <%= blacklight_icon('warning') %>
        <%= t(:'.non_iiif_alert_html') %>
      </div>
      <%= text_field_tag(:document_title, (document_presenter(f.object.document).heading if f.object.document), class: "form-control", data: { input_select_target: "##{form_prefix(f)}_source_exhibit", 'behavior': 'autocomplete', featured_image_typeahead: true, target_panel: "##{form_prefix(f)}-target-panel", :'id-field' => "##{form_prefix(f)}_document_global_id" }) %>
      <div id="<%= form_prefix(f) %>-target-panel" style="display:none">
        <div class="card-header">
          <div data-item-title="true"></div>
          <div data-panel-image-pagination="true"></div>
        </div>
      </div>
      <div class="form-text text-muted mb-3"><%= t(:'.source.exhibit.help') %></div>
    </div>
  </div>
  <div>
    <%= f.radio_button(:source, :remote, label: t(:'.source.remote.label')) %>
    <%= iiif_upload_tag(f) %>
    <div class="form-text text-muted mb-3">
      <%= t(:'.source.remote.help') %>
    </div>
  </div>
<% end %>
<%= field_set_tag(t(:'.source.remote.header')) do %>
  <p class="instructions"><%= t(:'.crop_area.help_html', thing: crop_type) %></p>
  <%= iiif_cropper_tags f, initial_crop_selection: initial_crop_selection %>
<% end %>
</div>

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
blacklight-spotlight-4.7.1 app/views/spotlight/featured_images/_form.html.erb
blacklight-spotlight-4.7.0 app/views/spotlight/featured_images/_form.html.erb
blacklight-spotlight-4.6.1 app/views/spotlight/featured_images/_form.html.erb
blacklight-spotlight-4.6.0 app/views/spotlight/featured_images/_form.html.erb
blacklight-spotlight-4.5.0 app/views/spotlight/featured_images/_form.html.erb
blacklight-spotlight-4.4.0 app/views/spotlight/featured_images/_form.html.erb
blacklight-spotlight-4.3.6 app/views/spotlight/featured_images/_form.html.erb
blacklight-spotlight-4.3.5 app/views/spotlight/featured_images/_form.html.erb
blacklight-spotlight-4.3.4 app/views/spotlight/featured_images/_form.html.erb
blacklight-spotlight-4.3.3 app/views/spotlight/featured_images/_form.html.erb
blacklight-spotlight-4.3.2 app/views/spotlight/featured_images/_form.html.erb
blacklight-spotlight-4.3.1 app/views/spotlight/featured_images/_form.html.erb
blacklight-spotlight-4.3.0 app/views/spotlight/featured_images/_form.html.erb
blacklight-spotlight-4.2.0 app/views/spotlight/featured_images/_form.html.erb
blacklight-spotlight-4.1.2 app/views/spotlight/featured_images/_form.html.erb
blacklight-spotlight-4.1.1 app/views/spotlight/featured_images/_form.html.erb
blacklight-spotlight-4.1.0 app/views/spotlight/featured_images/_form.html.erb
blacklight-spotlight-4.0.3 app/views/spotlight/featured_images/_form.html.erb
blacklight-spotlight-4.0.2 app/views/spotlight/featured_images/_form.html.erb
blacklight-spotlight-4.0.1 app/views/spotlight/featured_images/_form.html.erb