Sha256: db64ed30fe8eb5ee58e1b2e277de26b43c605d0a52da911f352772b9c84baf13
Contents?: true
Size: 1.48 KB
Versions: 34
Compression:
Stored size: 1.48 KB
Contents
<%= bootstrap_form_for @contact, url: @contact.new_record? ? exhibit_contacts_path(@exhibit) : [@exhibit, @contact], layout: :horizontal, label_col: 'col-sm-2', control_col: 'col-sm-10', html: {class: 'col-md-9' } do |f| %> <%= f.text_field :name, placeholder: t(:'.name.placeholder') %> <%= f.fields_for(:contact_info) do |contact_info| %> <% Spotlight::Contact.fields.keys.each do |field| %> <%= contact_info.text_field field, value: @contact.contact_info[field], placeholder: t(:".#{field}.placeholder") %> <% end %> <% end %> <%= f.fields_for :avatar, (@contact.avatar || @contact.build_avatar) do |af| %> <div data-cropper="<%= af.object.model_name.singular_route_key %>" data-form-prefix="<%= form_prefix(af) %>"> <%= field_set_tag(t(:'.avatar.header')) do %> <p class="instructions"><%= t(:'featured_images.form.crop_area.help_html', scope: [:spotlight], thing: 'contact photo') %></p> <div> <%= af.radio_button(:source, :remote, label: t(:'.source.remote.label')) %> <%= iiif_upload_tag(af) %> <small class="form-text text-muted"> <%= t(:'.source.remote.help') %> </small> </div> <%= iiif_cropper_tags af, initial_crop_selection: Spotlight::Engine.config.contact_square_size %> <% end %> </div> <% end %> <div class="form-group primary-actions"> <%= cancel_link @contact, exhibit_about_pages_path(@contact.exhibit) %> <%= f.submit nil, class: 'btn btn-primary' %> </div> <% end %>
Version data entries
34 entries across 34 versions & 1 rubygems