Sha256: f3676a0d00eca09218d1efc9f0c44a8dedc18894f53308a18b12e403414be03b
Contents?: true
Size: 1.89 KB
Versions: 12
Compression:
Stored size: 1.89 KB
Contents
<% provide :page_title, I18n.t('hyrax.contact_form.title') %> <div class="alert alert-info"> <%= render 'directions' %> </div> <h1> <%= t('hyrax.contact_form.header') %> </h1> <% if user_signed_in? %> <% nm = current_user.name %> <% em = current_user.email %> <% else %> <% nm = '' %> <% em = '' %> <% end %> <%= form_for @contact_form, url: hyrax.contact_form_index_path, html: { class: 'form-horizontal' } do |f| %> <%= f.text_field :contact_method, class: 'hide' %> <div class="form-group"> <%= f.label :category, t('hyrax.contact_form.type_label'), class: "col-sm-2 control-label" %> <div class="col-sm-10"> <%= f.select 'category', options_for_select(contact_form_issue_type_options), { include_blank: t('hyrax.contact_form.select_type') }, {class: 'form-control', required: true } %> </div> </div> <div class="form-group"> <%= f.label :name, t('hyrax.contact_form.name_label'), class: "col-sm-2 control-label" %> <div class="col-sm-10"><%= f.text_field :name, value: nm, class: 'form-control', required: true %></div> </div> <div class="form-group"> <%= f.label :email, t('hyrax.contact_form.email_label'), class: "col-sm-2 control-label" %> <div class="col-sm-10"><%= f.text_field :email, value: em, class: 'form-control', required: true %></div> </div> <div class="form-group"> <%= f.label :subject, t('hyrax.contact_form.subject_label'), class: "col-sm-2 control-label" %> <div class="col-sm-10"><%= f.text_field :subject, class: 'form-control', required: true %></div> </div> <div class="form-group"> <%= f.label :message, t('hyrax.contact_form.message_label'), class: "col-sm-2 control-label" %> <div class="col-sm-10"><%= f.text_area :message, rows: 4, class: 'form-control', required: true %></div> </div> <%= f.submit value: t('hyrax.contact_form.button_label'), class: "btn btn-primary" %> <% end %>
Version data entries
12 entries across 12 versions & 1 rubygems