Browse Source

fix merge conflicts

menu-feature
Brigitte Warner 10 years ago
parent
commit
1b7e40b827
  1. 2
      app/views/layouts/application.html.haml
  2. 35
      app/views/time_entries/new.haml

2
app/views/layouts/application.html.haml

@ -36,7 +36,7 @@
%a{href: bike_path(@bike)} View Your Bike %a{href: bike_path(@bike)} View Your Bike
%ul{class: "nav navbar-nav navbar-right"} %ul{class: "nav navbar-nav navbar-right"}
%li %li
%input{id: "index_logout", value: "Logout", "data-url" => destroy_user_session_path } %a{href: destroy_user_session_path } Log Out
.container .container
- if flash[:notice] - if flash[:notice]

35
app/views/time_entries/new.haml

@ -2,30 +2,31 @@
%p %p
.control-group .control-group
.controls .controls{ class: "bootstrap-timepicker col-xs-12 col-sm-12 col-md-12 input-group"}
%input{id: "date_id", placeholder: "Date", type: "text", class: "datepicker input-small" } .span{ class: "input-group-addon", style: "min-width: 100px; font-size: large"} Date
%input{id: "date_id", placeholder: "Date", type: "text", class: "datepicker input-large col-xs-12 col-sm-12 col-md-12 form-control" }
.help-block .help-block
.control-group .control-group
.controls{ class: "bootstrap-timepicker"} .controls{ class: "bootstrap-timepicker col-xs-12 col-sm-12 col-md-12 input-group"}
%label Start .span{ class: "input-group-addon", style: "min-width: 100px; font-size: large"} Start
%input{id: "start_time_id", placeholder: "Time ID", type: "text", class: "input-small" } %input{id: "start_time_id", placeholder: "Time ID", type: "text", class: "input-large col-xs-12 col-sm-12 col-md-12 form-control" }
.hidden{ id: "start_date" } .hidden{ id: "start_date" }
.help-block .help-block
.control-group .control-group
.controls .controls{ class: "bootstrap-timepicker col-xs-12 col-sm-12 col-md-12 input-group"}
%label End .span{ class: "input-group-addon", style: "min-width: 100px; font-size: large"} End
%input{id: "end_time_id", placeholder: "Time ID", type: "text", class: "input-small" } %input{id: "end_time_id", placeholder: "Time ID", type: "text", class: "input-large col-xs-9 col-sm-9 col-md-9 form-control"}
.hidden{ id: "end_date" } .hidden{ id: "end_date" }
.help-block .help-block
.control-group .control-group{ class: "col-xs-12 col-sm-12 col-md-12"}
.controls .controls
.btn-group{ "data-toggle" => "buttons-radio"} .btn-group{ "data-toggle" => "buttons-radio", class: "btn-group btn-group-justified"}
%label{ class: "btn btn-default"} %label{ class: "btn-lg col-xs-4 col-sm-4 col-md-4"}
%input{ type: "radio", name: "action_id", value: 1} Volunteer %input{ type: "radio", name: "action_id", value: 1, radius: 20} Volunteer
%label{ class: "btn btn-default"} %label{ class: "btn-lg col-xs-4 col-sm-4 col-md-4"}
%input{ type: "radio", name: "action_id", value: 2} Personal %input{ type: "radio", name: "action_id", value: 2, radius: 20} Personal
%label{ class: "btn btn-default"} %label{ class: "btn-lg col-xs-4 col-sm-4 col-md-4"}
%input{ type: "radio", name: "action_id", value: 3} Staff %input{ type: "radio", name: "action_id", value: 3, radius: 20} Staff
.hidden{ id: "log_action_id" } .hidden{ id: "log_action_id" }
.help-block .help-block
.control-group .control-group
@ -34,7 +35,7 @@
= select_tag(:bike_id, options_for_select(@bikes)) = select_tag(:bike_id, options_for_select(@bikes))
.control-group .control-group
.controls .controls
%textarea{id: "description_id", placeholder: "Work description", class: "input-lg" } %textarea{id: "description_id", placeholder: "Work description", class: "input-lg col-xs-12 col-sm-12 col-md-12" }
.control-group .control-group
.controls .controls
%input{id: "add_time_entry_submit", value: "Add Time Entry", type: "button", class: "btn btn-lg btn-block btn-primary", "data-url" => "#{api_create_time_entry_path}", "data-forward" => "#{"."}"} %input{id: "add_time_entry_submit", value: "Add Time Entry", type: "button", class: "btn btn-lg btn-block btn-primary", "data-url" => "#{api_create_time_entry_path}", "data-forward" => "#{"."}"}

Loading…
Cancel
Save