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_stream, html: {class: 'row'} do |f|
- if @workshop_stream.errors.any?
#error_explanation
%h2= "#{pluralize(@workshop_stream.errors.count, "error")} prohibited this workshop_stream from being saved:"
%ul
- @workshop_stream.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_stream
= render 'form'
= link_to 'Show', @workshop_stream
\|
= link_to 'Back', workshop_streams_path
@@ -0,0 +1,23 @@
%h1 Listing workshop_streams
%table
%tr
%th Name
%th Slug
%th Info
%th
%th
%th
- @workshop_streams.each do |workshop_stream|
%tr
%td= workshop_stream.name
%td= workshop_stream.slug
%td= workshop_stream.info
%td= link_to 'Show', workshop_stream
%td= link_to 'Edit', edit_workshop_stream_path(workshop_stream)
%td= link_to 'Destroy', workshop_stream, :method => :delete, :data => { :confirm => 'Are you sure?' }
%br
= link_to 'New Workshop stream', new_workshop_stream_path
+5
View File
@@ -0,0 +1,5 @@
- banner_title 'New workshop_stream'
= render 'form'
= link_to 'Back', workshop_streams_path
+15
View File
@@ -0,0 +1,15 @@
%p#notice= notice
%p
%b Name:
= @workshop_stream.name
%p
%b Slug:
= @workshop_stream.slug
%p
%b Info:
= @workshop_stream.info
= link_to 'Edit', edit_workshop_stream_path(@workshop_stream)
\|
= link_to 'Back', workshop_streams_path