Browse Source

BS3: cleanup

master
Ilya Konanykhin 8 years ago
parent
commit
b503ec6fbd
  1. 2
      app/views/bikes/new.html.haml
  2. 2
      app/views/bikes/show.html.haml
  3. 2
      app/views/devise/passwords/new.html.haml
  4. 4
      app/views/devise/sessions/new.html.haml
  5. 2
      app/views/layouts/application.html.haml
  6. 2
      app/views/site/index.html.haml
  7. 2
      app/views/task_lists/edit.haml
  8. 2
      app/views/time_entries/index.haml
  9. 2
      app/views/time_entries/new.haml

2
app/views/bikes/new.html.haml

@ -61,7 +61,7 @@
.form-group .form-group
.input-group .input-group
= number_field_tag nil, nil, id: 'seat_tube_height', placeholder: 'Seat Tube', min: 0, max: 100, class: "form-control" = number_field_tag nil, nil, id: 'seat_tube_height', placeholder: 'Seat Tube', min: 0, max: 100, class: 'form-control'
.input-group-addon cm .input-group-addon cm
.help-block .help-block

2
app/views/bikes/show.html.haml

@ -30,7 +30,7 @@
- unless @bike.color.nil? - unless @bike.color.nil?
%dt Color %dt Color
%dd %dd
.bike-color{style: "background-color: ##{@bike.color}"} #{@bike.color} .bike-color(style="background-color: ##{@bike.color}")= @bike.color
- if @task_list - if @task_list
- tasks = @task_list.tasks.to_a - tasks = @task_list.tasks.to_a

2
app/views/devise/passwords/new.html.haml

@ -2,7 +2,7 @@
.row .row
.col-xs-12.col-sm-6.col-lg-4 .col-xs-12.col-sm-6.col-lg-4
= form_for resource, as: resource_name, url: password_path(resource_name), html: {method: :post } do |f| = form_for resource, as: resource_name, url: password_path(resource_name), html: {method: :post} do |f|
= devise_error_messages! = devise_error_messages!
%fieldset %fieldset

4
app/views/devise/sessions/new.html.haml

@ -25,8 +25,8 @@
.pull-right .pull-right
%span.btn-group %span.btn-group
= f.button 'CHECK IN', id: 'checkin', name: 'checkin', type: 'button', value: 'CHECK IN', class: 'btn btn-xsя btn-success' = f.button 'Check in', id: 'checkin', name: 'checkin', type: 'button', class: 'btn btn-success'
= f.button 'CHECK OUT', id: 'checkout', name: 'checkout', type: 'button', value: 'CHECK OUT', class: 'btn btn-xsя btn-danger' = f.button 'Check out', id: 'checkout', name: 'checkout', type: 'button', class: 'btn btn-danger'
.clearfix .clearfix

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

@ -1,5 +1,5 @@
!!! 5 !!! 5
%html{lang: 'en'} %html(lang="en")
%head %head
%meta(charset="utf-8")/ %meta(charset="utf-8")/
%meta(name="viewport" content="width=device-width" initial-scale="1.0")/ %meta(name="viewport" content="width=device-width" initial-scale="1.0")/

2
app/views/site/index.html.haml

@ -28,4 +28,4 @@
.row.fieldset .row.fieldset
.col-xs-12.col-sm-3.col-lg-2 .col-xs-12.col-sm-3.col-lg-2
%p %p
%input{id: 'index_logout', value: 'Logout', type: 'button', class: 'btn btn-danger btn-block', 'data-url' => destroy_user_session_path} = button_tag 'Logout', id: 'index_logout', class: 'btn btn-danger btn-block', data: {url: destroy_user_session_path}

2
app/views/task_lists/edit.haml

@ -6,7 +6,7 @@
= link_to bike_path(@task_list.item) do = link_to bike_path(@task_list.item) do
#{@task_list.item.shop_id}: #{@task_list.item.bike_brand} #{@task_list.item.shop_id}: #{@task_list.item.bike_brand}
%h4 #{@task_list.item.model} %h4= @task_list.item.model
%fieldset %fieldset
.form-group .form-group

2
app/views/time_entries/index.haml

@ -18,7 +18,7 @@
- @user_time_entries.each do |entry| - @user_time_entries.each do |entry|
-# data: {start_date: ..} gets transformed to data-start-date instead of data-start_date, we don't want this -# data: {start_date: ..} gets transformed to data-start-date instead of data-start_date, we don't want this
%tr{data: {id: entry.id, description: entry.description, duration: entry.duration_in_hours}, %tr{data: {id: entry.id, description: entry.description, duration: entry.duration_in_hours},
"data-start_date" => entry.start_date.to_date.to_formatted_s(:rfc822)} 'data-start_date' => entry.start_date.to_date.to_formatted_s(:rfc822)}
%td= entry.start_date.to_date.to_formatted_s(:rfc822) %td= entry.start_date.to_date.to_formatted_s(:rfc822)
%td= entry.duration_in_hours %td= entry.duration_in_hours
%td= entry.type %td= entry.type

2
app/views/time_entries/new.haml

@ -53,4 +53,4 @@
.control-group .control-group
.controls .controls
= button_tag 'Add Time Entry', id: 'add_time_entry_submit', class: 'btn btn-primary', data: {url: "#{api_create_time_entry_path}", forward: "#{"."}"} = button_tag 'Add Time Entry', id: 'add_time_entry_submit', class: 'btn btn-primary', data: {url: api_create_time_entry_path, forward: '.'}

Loading…
Cancel
Save