mirror of
https://github.com/fspc/bike-database.git
synced 2026-09-16 16:41:38 -04:00
move rails app into src/, add Vagrantfile & puppet/ assets and add src/.gitignore file
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
@@ -1,6 +0,0 @@
|
||||
.container
|
||||
%h1 Editing Volunteer Information
|
||||
= render 'form'
|
||||
= link_to 'Show', @volunteer
|
||||
|
|
||||
= link_to 'Back', volunteers_path
|
||||
@@ -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"
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
%h1 New Volunteer
|
||||
= render 'form'
|
||||
= link_to 'Back', volunteers_path
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user