Added New Time Entry Front End

This commit is contained in:
Jason Denney
2014-04-19 16:20:14 -04:00
parent 98b136e4f4
commit 80b2b7ff60
13 changed files with 1973 additions and 2 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
%meta{:charset => "utf-8"}/
%title= content_for?(:title) ? yield(:title) : "Velocipede"
= csrf_meta_tags
= stylesheet_link_tag "bootstrap_and_overrides", :media => "all"
= stylesheet_link_tag "bootstrap_and_overrides", "datepicker", "bootstrap-timepicker", :media => "all"
/[if lt IE 9]
= javascript_include_tag "http://html5shim.googlecode.com/svn/trunk/html5.js"
:css
+1 -1
View File
@@ -3,7 +3,7 @@
%p
%p
%a{class: "btn btn-lg btn-block btn-primary"} Add Time Entry
%a{class: "btn btn-lg btn-block btn-primary", href: new_time_entry_path} Add Time Entry
%p
%a{class: "btn btn-lg btn-block btn-primary"} View Timesheet
%p
+41
View File
@@ -0,0 +1,41 @@
%a{ class: "btn btn-default btn-lg", href: root_path}
%span{ class:"icon-home"}
%h2 Add Time Entry
%p
.control-group
.controls
%input{id: "date_id", placeholder: "Date", type: "text", class: "datepicker input-small" }
.help-block
.control-group
.controls{ class: "bootstrap-timepicker"}
%label Start
%input{id: "start_time_id", placeholder: "Time ID", type: "text", class: "input-small" }
.help-block
.control-group
.controls
%label End
%input{id: "end_time_id", placeholder: "Time ID", type: "text", class: "input-small" }
.help-block
.control-group
.controls
.btn-group{ "data-toggle" => "buttons-radio"}
%label{ class: "btn btn-default"}
%input{ type: "radio", name: "action_id", value: 3} Volunteer
%label{ class: "btn btn-default"}
%input{ type: "radio", name: "action_id", value: 1} Personal
%label{ class: "btn btn-default"}
%input{ type: "radio", name: "action_id", value: 2} Staff
%input{ id: "bike_style_id", type: "hidden"}
.help-block
.control-group
.controls
%label
Worked on a bike?
%input{ type: "checkbox"}
.control-group
.controls
%textarea{id: "work_description", placeholder: "Work description", class: "input-lg" }
.control-group
.controls
%input{id: "add_bike_submit", value: "Add Time Entry", type: "button", class: "btn btn-lg btn-block btn-primary", "data-url" => "#{api_create_bike_path}"}