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
-78
View File
@@ -1,78 +0,0 @@
- disabled ||= false
.form-horizontal
.form-group
= f.label "Log Number", class: "col-sm-2 control-label"
.col-sm-10
= f.text_field :log_number, class: "form-control", disabled: disabled
.form-group
= f.label "Bike Entry Date:", class: "col-sm-2 control-label"
.col-sm-10
= f.text_field :entry_date, class: "form-control datepicker", disabled: disabled
.form-group
= f.label "Brand:", class: "col-sm-2 control-label"
.col-sm-10
= f.text_field :brand, class: "form-control", disabled: disabled
.form-group
= f.label "Color:", class: "col-sm-2 control-label"
.col-sm-10
= f.text_field :color, class: "form-control", disabled: disabled
.form-group
= f.label "Top Tube Size:", class: "col-sm-2 control-label"
.col-sm-10
= f.text_field :top_tube_size, class: "form-control", disabled: disabled
.form-group
= f.label "Seat Tube Size:", class: "col-sm-2 control-label"
.col-sm-10
= f.text_field :seat_tube_size, class: "form-control", disabled: disabled
.form-group
= f.label "Model:", class: "col-sm-2 control-label"
.col-sm-10
= f.text_field :model, class: "form-control", disabled: disabled
.form-group
= f.label "Type:", class: "col-sm-2 control-label"
.col-sm-10
= f.select :bike_type, [["BMX", "BMX"], ["Cruiser", "Cruiser"], ["Hybrid", "Hybrid"], ["Mountain", "Mountain"], ["Road", "Road"], ["Touring", "Touring"], ["Track", "Track"], ["Utility", "Utility"]], {}, class: "selectpicker", disabled: disabled
.form-group
= f.label "Purpose:", class: "col-sm-2 control-label"
.col-sm-10
= f.select :purpose, [["Freecyclery", "Freecyclery"], ["Sale", "Sale"]], {}, class: "selectpicker", disabled: disabled
.form-group
= f.label "Serial Number", class: "col-sm-2 control-label"
.col-sm-10
= f.text_field :serial_number, class: "form-control", disabled: disabled
.form-group
= f.label "Notes", class: "col-sm-2 control-label"
.col-sm-10
= f.text_area :notes, class: "form-control", disabled: disabled
.form-group
= f.label "Tag Info", class: "col-sm-2 control-label"
.col-sm-10
= f.text_area :tag_info, class: "form-control", disabled: disabled
.form-group
= f.label "Mechanic:", class: "col-sm-2 control-label"
.col-sm-10
= f.text_field :mechanic, class: "form-control", disabled: disabled
.form-group
= f.label "Completion Date:", class: "col-sm-2 control-label"
.col-sm-10
= f.text_field :completion_date, class: "form-control datepicker", disabled: disabled
.form-group
= f.label "Price", class: "col-sm-2 control-label"
.col-sm-10
.input-group
%span.input-group-addon $
= f.text_field :price, class: "form-control", disabled: disabled
-12
View File
@@ -1,12 +0,0 @@
.container
= form_for @bike, html: {class: 'form-horizontal'} do |f|
- if @bike.errors.any?
#error_explanation
%h2= pluralize(@bike.errors.count, "error") + " prohibited this bike from being saved:"
%ul
- @bike.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 bike
= render 'form'
= link_to 'Show', @bike
|
= link_to 'Back', bikes_path
-22
View File
@@ -1,22 +0,0 @@
.container
%h1 Bikes
%table.table.table-striped.table-bordered.table-hover
%thead
%tr
%th Brand
%th Model
%th
%th
%th
%tbody
- @bikes.each do |bike|
%tr
%td= bike.brand
%td= bike.model
%td= link_to 'Show', bike
%td= link_to 'Edit', edit_bike_path(bike)
%td= link_to 'Destroy', bike, method: :delete, data: { confirm: 'Are you sure?' }
%br
= link_to ' + Log Bike', new_bike_path, class: "btn btn-default"
-3
View File
@@ -1,3 +0,0 @@
%h1 New bike
= render 'form'
= link_to 'Back', bikes_path
-7
View File
@@ -1,7 +0,0 @@
.container
%p#notice= notice
= form_for(@bike) do |f|
= render 'fields', f: f, disabled: true
= link_to 'Edit', edit_bike_path(@bike)
|
= link_to 'Back', bikes_path