Sha256: c874b6af33efdf753ca96502b11cd36ebbd939ac8a16b4cb73e0944e85597275

Contents?: true

Size: 1.84 KB

Versions: 9

Compression:

Stored size: 1.84 KB

Contents

<%= form_with model: @registration, local: true do |f| %>
  <fieldset>
    <legend>Registration Details</legend>
    <%= f.form_group :first_name, required: true do %>
      <%= f.label :first_name %>
      <%= f.text_field :first_name %>
      <%= f.errors :first_name %>
    <% end %>

    <%= f.form_group :last_name, required: true do %>
      <%= f.label :last_name %>
      <%= f.text_field :last_name %>
      <%= f.errors :last_name %>
    <% end %>

    <%= f.form_group :email, required: true do %>
      <%= f.label :email %>
      <%= f.email_field :email %>
      <%= f.errors :email %>
    <% end %>

    <%= f.form_group :company_name, required: true do %>
      <%= f.label :company_name %>
      <%= f.text_field :company_name %>
      <%= f.errors :company_name %>
    <% end %>

    <%= f.form_group :telephone, required: true do %>
      <%= f.label :telephone %>
      <%= f.text_field :telephone %>
      <%= f.errors :telephone %>
    <% end %>

    <%= f.form_group :job_title, required: true do %>
      <%= f.label :job_title %>
      <%= f.text_field :job_title %>
      <%= f.errors :job_title %>
    <% end %>

    <%= f.form_group :contact_via_email do %>
      <%= f.check_box :contact_via_email %>
      <%= f.label :contact_via_email %>
      <%= f.errors :contact_via_email %>
    <% end %>

    <%= f.form_group :contact_via_phone do %>
      <%= f.check_box :contact_via_phone %>
      <%= f.label :contact_via_phone %>
      <%= f.errors :contact_via_phone %>
    <% end %>
  </fieldset>

  <div class="form-group">
    <div class="button-group">
      <%= f.submit "Save" %>
      <% if @registration.new_record? %>
        <%= link_to "Cancel", registrations_path, class: 'button-secondary' %>
      <% else %>
        <%= link_to "Cancel", registration_path(@registration), class: 'button-secondary' %>
      <% end %>
    </div>
  </div>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mr_common-1.3.0 app/views/mr_common/registrations/registrations/_form.html.erb
mr_common-1.2.0 app/views/mr_common/registrations/registrations/_form.html.erb
mr_common-1.1.0 app/views/mr_common/registrations/registrations/_form.html.erb
mr_common-1.0.5 app/views/mr_common/registrations/registrations/_form.html.erb
mr_common-1.0.4 app/views/mr_common/registrations/registrations/_form.html.erb
mr_common-1.0.3 app/views/mr_common/registrations/registrations/_form.html.erb
mr_common-1.0.2 app/views/mr_common/registrations/registrations/_form.html.erb
mr_common-1.0.1 app/views/mr_common/registrations/registrations/_form.html.erb
mr_common-1.0.0 app/views/mr_common/registrations/registrations/_form.html.erb