mirror of https://github.com/fspc/BikeShed-1.git
Ilya Konanykhin
8 years ago
6 changed files with 66 additions and 50 deletions
@ -1,42 +1,50 @@ |
|||||
%a{ class: "btn btn-default btn-lg", href: root_path} |
= link_to_dashboard |
||||
%span{ class:"icon-home"} |
|
||||
%h2 Add Time Entry |
%h1 Add Time Entry |
||||
|
|
||||
%p |
.row |
||||
.control-group |
.col-xs-12.col-sm-6.col-lg-4 |
||||
.controls |
%fieldset |
||||
%input{id: "date_id", placeholder: "Date", type: "text", class: "datepicker input-small" } |
.form-group.form-inline |
||||
.help-block |
= text_field_tag '', '', id: 'date_id', placeholder: 'Date', class: 'form-control datepicker', size: 12 |
||||
.control-group |
.help-block |
||||
.controls{ class: "bootstrap-timepicker"} |
|
||||
%label Start |
.form-group.bootstrap-timepicker.form-inline |
||||
%input{id: "start_time_id", placeholder: "Time ID", type: "text", class: "input-small" } |
.form-group |
||||
.hidden{ id: "start_date" } |
%label.visible-xs Start time |
||||
.help-block |
= text_field_tag '', '', id: 'start_time_id', placeholder: 'Start time', class: 'form-control', size: 8 |
||||
.control-group |
.hidden#start_date |
||||
.controls |
.help-block |
||||
%label End |
|
||||
%input{id: "end_time_id", placeholder: "Time ID", type: "text", class: "input-small" } |
.form-group.hidden-xs |
||||
.hidden{ id: "end_date" } |
— |
||||
.help-block |
|
||||
.control-group |
.form-group |
||||
.controls |
%label.visible-xs End time |
||||
.btn-group{ "data-toggle" => "buttons-radio"} |
= text_field_tag '', '', id: 'end_time_id', placeholder: 'End time', class: 'form-control', size: 8 |
||||
%label{ class: "btn btn-default"} |
.hidden#end_date |
||||
%input{ type: "radio", name: "action_id", value: 1} Volunteer |
.help-block |
||||
%label{ class: "btn btn-default"} |
|
||||
%input{ type: "radio", name: "action_id", value: 2} Personal |
.form-group |
||||
%label{ class: "btn btn-default"} |
.btn-group{"data-toggle": 'buttons'} |
||||
%input{ type: "radio", name: "action_id", value: 3} Staff |
%label{class: 'btn btn-default'} |
||||
.hidden{ id: "log_action_id" } |
= radio_button_tag 'action_id', 1, false, autocomplete: 'off' |
||||
.help-block |
Volunteer |
||||
.control-group |
%label{class: 'btn btn-default'} |
||||
.controls |
= radio_button_tag 'action_id', 2, false, autocomplete: 'off' |
||||
%label |
Personal |
||||
= select_tag(:bike_id, options_for_select(@bikes)) |
%label{class: 'btn btn-default'} |
||||
.control-group |
= radio_button_tag 'action_id', 3, false, autocomplete: 'off' |
||||
.controls |
Staff |
||||
%textarea{id: "description_id", placeholder: "Work description", class: "input-lg" } |
.hidden#log_action_id |
||||
.control-group |
.help-block |
||||
.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" => "#{"."}"} |
.form-group |
||||
|
= select_tag :bike_id, options_for_select(@bikes), class: 'form-control' |
||||
|
|
||||
|
.form-group |
||||
|
= text_area_tag '', '', id: 'description_id', placeholder: 'Work description', class: 'form-control', rows: 5 |
||||
|
|
||||
|
.control-group |
||||
|
.controls |
||||
|
= button_tag 'Add Time Entry', id: 'add_time_entry_submit', class: 'btn btn-primary', data: {url: "#{api_create_time_entry_path}", forward: "#{"."}"} |
||||
|
Loading…
Reference in new issue