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