Workshop and event scaffolds
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
= form_for @workshop_facilitator do |f|
|
||||
- if @workshop_facilitator.errors.any?
|
||||
#error_explanation
|
||||
%h2= "#{pluralize(@workshop_facilitator.errors.count, "error")} prohibited this workshop_facilitator from being saved:"
|
||||
%ul
|
||||
- @workshop_facilitator.errors.full_messages.each do |msg|
|
||||
%li= msg
|
||||
|
||||
.field
|
||||
= f.label :user_id
|
||||
= f.number_field :user_id
|
||||
.field
|
||||
= f.label :workshop_id
|
||||
= f.number_field :workshop_id
|
||||
.field
|
||||
= f.label :role
|
||||
= f.text_field :role
|
||||
.actions
|
||||
= f.submit 'Save'
|
||||
@@ -0,0 +1,7 @@
|
||||
%h1 Editing workshop_facilitator
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Show', @workshop_facilitator
|
||||
\|
|
||||
= link_to 'Back', workshop_facilitators_path
|
||||
@@ -0,0 +1,23 @@
|
||||
%h1 Listing workshop_facilitators
|
||||
|
||||
%table
|
||||
%tr
|
||||
%th User
|
||||
%th Workshop
|
||||
%th Role
|
||||
%th
|
||||
%th
|
||||
%th
|
||||
|
||||
- @workshop_facilitators.each do |workshop_facilitator|
|
||||
%tr
|
||||
%td= workshop_facilitator.user_id
|
||||
%td= workshop_facilitator.workshop_id
|
||||
%td= workshop_facilitator.role
|
||||
%td= link_to 'Show', workshop_facilitator
|
||||
%td= link_to 'Edit', edit_workshop_facilitator_path(workshop_facilitator)
|
||||
%td= link_to 'Destroy', workshop_facilitator, :method => :delete, :data => { :confirm => 'Are you sure?' }
|
||||
|
||||
%br
|
||||
|
||||
= link_to 'New Workshop facilitator', new_workshop_facilitator_path
|
||||
@@ -0,0 +1,5 @@
|
||||
%h1 New workshop_facilitator
|
||||
|
||||
= render 'form'
|
||||
|
||||
= link_to 'Back', workshop_facilitators_path
|
||||
@@ -0,0 +1,15 @@
|
||||
%p#notice= notice
|
||||
|
||||
%p
|
||||
%b User:
|
||||
= @workshop_facilitator.user_id
|
||||
%p
|
||||
%b Workshop:
|
||||
= @workshop_facilitator.workshop_id
|
||||
%p
|
||||
%b Role:
|
||||
= @workshop_facilitator.role
|
||||
|
||||
= link_to 'Edit', edit_workshop_facilitator_path(@workshop_facilitator)
|
||||
\|
|
||||
= link_to 'Back', workshop_facilitators_path
|
||||
Reference in New Issue
Block a user