Sha256: b546dcfe399e77d0f894ab0d180101a45070a1898d075c8a37539821edceb76d

Contents?: true

Size: 1.84 KB

Versions: 15

Compression:

Stored size: 1.84 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 do |f| %>
  <%= f.hidden_field :contact_method %>
  <div class="form-group row">
    <%= f.label :category, t('hyrax.contact_form.type_label'), class: "col-sm-2 col-form-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 row">
    <%= f.label :name, t('hyrax.contact_form.name_label'), class: "col-sm-2 col-form-label" %>
    <div class="col-sm-10"><%= f.text_field :name, value: nm, class: 'form-control', required: true %></div>
  </div>

  <div class="form-group row">
    <%= f.label :email, t('hyrax.contact_form.email_label'), class: "col-sm-2 col-form-label" %>
    <div class="col-sm-10"><%= f.text_field :email, value: em, class: 'form-control', required: true %></div>
  </div>

  <div class="form-group row">
    <%= f.label :subject, t('hyrax.contact_form.subject_label'), class: "col-sm-2 col-form-label" %>
    <div class="col-sm-10"><%= f.text_field :subject, class: 'form-control', required: true %></div>
  </div>

  <div class="form-group row">
    <%= f.label :message, t('hyrax.contact_form.message_label'), class: "col-sm-2 col-form-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

15 entries across 15 versions & 1 rubygems

Version Path
hyrax-5.1.0.pre.beta1 app/views/hyrax/contact_form/new.html.erb
hyrax-5.0.4 app/views/hyrax/contact_form/new.html.erb
hyrax-5.0.3 app/views/hyrax/contact_form/new.html.erb
hyrax-5.0.2 app/views/hyrax/contact_form/new.html.erb
hyrax-5.0.1 app/views/hyrax/contact_form/new.html.erb
hyrax-5.0.0 app/views/hyrax/contact_form/new.html.erb
hyrax-5.0.0.rc3 app/views/hyrax/contact_form/new.html.erb
hyrax-5.0.0.rc2 app/views/hyrax/contact_form/new.html.erb
hyrax-5.0.0.rc1 app/views/hyrax/contact_form/new.html.erb
hyrax-4.0.0 app/views/hyrax/contact_form/new.html.erb
hyrax-4.0.0.rc3 app/views/hyrax/contact_form/new.html.erb
hyrax-4.0.0.rc2 app/views/hyrax/contact_form/new.html.erb
hyrax-4.0.0.rc1 app/views/hyrax/contact_form/new.html.erb
hyrax-4.0.0.beta2 app/views/hyrax/contact_form/new.html.erb
hyrax-4.0.0.beta1 app/views/hyrax/contact_form/new.html.erb