The working basics

This commit is contained in:
Godwin
2014-03-09 14:43:33 -06:00
parent b490a97852
commit db60933506
628 changed files with 81918 additions and 1060 deletions
@@ -0,0 +1,19 @@
= form_for @workshop_presentation_style do |f|
- if @workshop_presentation_style.errors.any?
#error_explanation
%h2= "#{pluralize(@workshop_presentation_style.errors.count, "error")} prohibited this workshop_presentation_style from being saved:"
%ul
- @workshop_presentation_style.errors.full_messages.each do |msg|
%li= msg
.field
= f.label :name
= f.text_field :name
.field
= f.label :slug
= f.text_field :slug
.field
= f.label :info
= f.text_field :info
.actions
= f.submit 'Save'
@@ -0,0 +1,7 @@
%h1 Editing workshop_presentation_style
= render 'form'
= link_to 'Show', @workshop_presentation_style
\|
= link_to 'Back', workshop_presentation_styles_path
@@ -0,0 +1,23 @@
%h1 Listing workshop_presentation_styles
%table
%tr
%th Name
%th Slug
%th Info
%th
%th
%th
- @workshop_presentation_styles.each do |workshop_presentation_style|
%tr
%td= workshop_presentation_style.name
%td= workshop_presentation_style.slug
%td= workshop_presentation_style.info
%td= link_to 'Show', workshop_presentation_style
%td= link_to 'Edit', edit_workshop_presentation_style_path(workshop_presentation_style)
%td= link_to 'Destroy', workshop_presentation_style, :method => :delete, :data => { :confirm => 'Are you sure?' }
%br
= link_to 'New Workshop presentation style', new_workshop_presentation_style_path
@@ -0,0 +1,5 @@
%h1 New workshop_presentation_style
= render 'form'
= link_to 'Back', workshop_presentation_styles_path
@@ -0,0 +1,15 @@
%p#notice= notice
%p
%b Name:
= @workshop_presentation_style.name
%p
%b Slug:
= @workshop_presentation_style.slug
%p
%b Info:
= @workshop_presentation_style.info
= link_to 'Edit', edit_workshop_presentation_style_path(@workshop_presentation_style)
\|
= link_to 'Back', workshop_presentation_styles_path