Sha256: c8f9985e83fdca586070536a434fb0767e9026502d47541a4dceb9bbefb53656
Contents?: true
Size: 1.66 KB
Versions: 19
Compression:
Stored size: 1.66 KB
Contents
<div class="row contact"> <%= contact.hidden_field :id %> <div class="col-md-8<%= ' has-error' if contact.object.errors[:email].present? %>"> <%= text_field_tag "#{contact.object_name}[email]", contact.object.email, class: 'exhibit-contact form-control', id: "exhibit_contact_email_#{contact.index}", 'aria-label': t('.email_input_aria_label', index: contact.index + 1) %> <% if contact.object.errors[:email].present? %> <div class="form-text text-muted mb-3"><%=contact.object.errors[:email].join(", ".html_safe) %></div> <% end %> <p> <span class="contact-email-delete-error text-danger bg-danger" style="display: none;"><%= t('.email_delete_error') %> <span class="error-msg"></span></span> </p> </div> <div class="col-md-4"> <% if contact.object.id %> <span class="contact-email-delete-wrapper"> <%= link_to exhibit_contact_email_path(exhibit_id: exhibit.id, id: contact.object.id), class: 'contact-email-delete btn btn-sm btn-danger', data: { method: :delete, turbo_method: :delete, confirm: t('.email_delete_confirmation'), turbo_confirm: t('.email_delete_confirmation'), remote: true } do %> <%= t('.email_delete_button') %> <% end %> </span> <% end %> <%= render partial: 'confirmation_status', locals: {contact_email: contact.object} unless contact.object.new_record? %> </div> </div>
Version data entries
19 entries across 19 versions & 1 rubygems