Sha256: 6b5270294fde9c94be13cd6ccbdd7fe93cdee5b96302ceebd4676c22bf33d8c0
Contents?: true
Size: 1.99 KB
Versions: 2
Compression:
Stored size: 1.99 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 %> <%= f.form_group :confirmed do %> <%= f.check_box :confirmed %> <%= f.label :confirmed %> <%= f.errors :confirmed %> <% 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mr_common-2.1.0 | app/views/mr_common/registrations/registrations/_form.html.erb |
mr_common-2.0.0 | app/views/mr_common/registrations/registrations/_form.html.erb |