Merge branch 'master' of bitbucket.org:code2lab/sxrestaurant

This commit is contained in:
Yan
2017-12-08 16:31:39 +06:30
2 changed files with 7 additions and 7 deletions

View File

@@ -85,7 +85,7 @@ class DiningFacility < ApplicationRecord
checkout_at = booking.checkout_at.utc checkout_at = booking.checkout_at.utc
checkout_at_hr = (checkout_at.utc.strftime("%H").to_i).to_int checkout_at_hr = (checkout_at.utc.strftime("%H").to_i).to_int
checkout_at_min = (checkout_at.utc.strftime("%M").to_i).to_int checkout_at_min = (checkout_at.utc.strftime("%M").to_i).to_int
# checkout_at_min -= min checkout_at_min -= min
if (checkout_at_hr <= hr) && (checkout_at_min <= 15) if (checkout_at_hr <= hr) && (checkout_at_min <= 15)
return booking return booking
else else

View File

@@ -51,14 +51,14 @@
</div> </div>
<% end %> <% end %>
</div> </div>
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 align-center">
<%= f.submit "Update",:class => 'btn btn-primary btn-lg waves-effect', :style => "width: 150px" %>
</div>
</div>
</div> </div>
</div> </div>
<div class="form-actions">
<%= f.submit "Update",:class => 'btn btn-primary btn-lg waves-effect' %>
</div>
<br>
<% end %> <% end %>
</div> </div>
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3"> <div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">