The working basics
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
= form_for @conference_registraton_form_field do |f|
|
||||
- if @conference_registraton_form_field.errors.any?
|
||||
#error_explanation
|
||||
%h2= "#{pluralize(@conference_registraton_form_field.errors.count, "error")} prohibited this conference_registraton_form_field from being saved:"
|
||||
%ul
|
||||
- @conference_registraton_form_field.errors.full_messages.each do |msg|
|
||||
%li= msg
|
||||
|
||||
.field
|
||||
= f.label :conference_id
|
||||
= f.number_field :conference_id
|
||||
.field
|
||||
= f.label :registration_form_field_id
|
||||
= f.number_field :registration_form_field_id
|
||||
.field
|
||||
= f.label :order
|
||||
= f.number_field :order
|
||||
.actions
|
||||
= f.submit 'Save'
|
||||
@@ -0,0 +1,7 @@
|
||||
%h1 Editing conference_registraton_form_field
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Show', @conference_registraton_form_field
|
||||
\|
|
||||
= link_to 'Back', conference_registraton_form_fields_path
|
||||
@@ -0,0 +1,23 @@
|
||||
%h1 Listing conference_registraton_form_fields
|
||||
|
||||
%table
|
||||
%tr
|
||||
%th Conference
|
||||
%th Registration form field
|
||||
%th Order
|
||||
%th
|
||||
%th
|
||||
%th
|
||||
|
||||
- @conference_registraton_form_fields.each do |conference_registraton_form_field|
|
||||
%tr
|
||||
%td= conference_registraton_form_field.conference_id
|
||||
%td= conference_registraton_form_field.registration_form_field_id
|
||||
%td= conference_registraton_form_field.order
|
||||
%td= link_to 'Show', conference_registraton_form_field
|
||||
%td= link_to 'Edit', edit_conference_registraton_form_field_path(conference_registraton_form_field)
|
||||
%td= link_to 'Destroy', conference_registraton_form_field, :method => :delete, :data => { :confirm => 'Are you sure?' }
|
||||
|
||||
%br
|
||||
|
||||
= link_to 'New Conference registraton form field', new_conference_registraton_form_field_path
|
||||
@@ -0,0 +1,5 @@
|
||||
%h1 New conference_registraton_form_field
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Back', conference_registraton_form_fields_path
|
||||
@@ -0,0 +1,15 @@
|
||||
%p#notice= notice
|
||||
|
||||
%p
|
||||
%b Conference:
|
||||
= @conference_registraton_form_field.conference_id
|
||||
%p
|
||||
%b Registration form field:
|
||||
= @conference_registraton_form_field.registration_form_field_id
|
||||
%p
|
||||
%b Order:
|
||||
= @conference_registraton_form_field.order
|
||||
|
||||
= link_to 'Edit', edit_conference_registraton_form_field_path(@conference_registraton_form_field)
|
||||
\|
|
||||
= link_to 'Back', conference_registraton_form_fields_path
|
||||
Reference in New Issue
Block a user