Louis | reverts fa110, which was branched instead

This commit is contained in:
Loos
2014-09-16 20:23:43 -04:00
parent fa110546c8
commit 3c8962fa49
228 changed files with 27 additions and 4656 deletions
+17
View File
@@ -0,0 +1,17 @@
- disabled ||= false
.form-group
= f.label "Name", class: "col-sm-2 control-label"
.col-sm-10
= f.text_field :name, class: "form-control", disabled: disabled
.form-group
= f.label "Email address:", class: "col-sm-2 control-label"
.col-sm-10
= f.text_field :email, class: "form-control", disabled: disabled
.form-group
= f.label "Phone Number:", class: "col-sm-2 control-label"
.col-sm-10
= f.text_field :phone, class: "form-control", disabled: disabled
+12
View File
@@ -0,0 +1,12 @@
.container
= form_for @volunteer, html: {class: 'form-horizontal'} do |f|
- if @volunteer.errors.any?
#error_explanation
%h2= pluralize(@volunteer.errors.count, "error") + "prohibited this volunteer from being saved:"
%ul
- @volunteer.errors.full_messages.each do |msg|
%li= msg
= render 'fields', f: f
.row
.actions.col-sm-offset-2
= f.submit class: "btn btn-default"
+6
View File
@@ -0,0 +1,6 @@
.container
%h1 Editing Volunteer Information
= render 'form'
= link_to 'Show', @volunteer
|
= link_to 'Back', volunteers_path
+23
View File
@@ -0,0 +1,23 @@
.container
%h1 Volunteers
%table.table.table-striped.table-bordered.table-hover
%thead
%tr
%th Name
%th Phone
%th Email
%th
%th
%th
%tbody
- @volunteers.each do |volunteer|
%tr
%td= volunteer.name
%td= volunteer.phone
%td= volunteer.email
%td= link_to 'Show', volunteer
%td= link_to 'Edit', edit_volunteer_path(volunteer)
%td= link_to 'Destroy', volunteer, method: :delete, data: { confirm: 'Are you sure?' }
= link_to '+ Add Volunteer', new_volunteer_path, class: "btn btn-default"
+3
View File
@@ -0,0 +1,3 @@
%h1 New Volunteer
= render 'form'
= link_to 'Back', volunteers_path
+7
View File
@@ -0,0 +1,7 @@
.container
%p#notice= notice
= form_for(@volunteer) do |f|
= render 'fields', f: f, disabled: true
= link_to 'Edit', edit_volunteer_path(@volunteer)
|
= link_to 'Back', volunteers_path