move rails app into src/, add Vagrantfile & puppet/ assets and add src/.gitignore file

This commit is contained in:
noi narisak
2014-09-02 21:02:38 -05:00
parent 2a9d5f782f
commit 30a48aca8d
226 changed files with 4510 additions and 51 deletions
-17
View File
@@ -1,17 +0,0 @@
- 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
@@ -1,12 +0,0 @@
.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
@@ -1,6 +0,0 @@
.container
%h1 Editing Volunteer Information
= render 'form'
= link_to 'Show', @volunteer
|
= link_to 'Back', volunteers_path
-23
View File
@@ -1,23 +0,0 @@
.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
@@ -1,3 +0,0 @@
%h1 New Volunteer
= render 'form'
= link_to 'Back', volunteers_path
-7
View File
@@ -1,7 +0,0 @@
.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