From c638e4c28bdeb0ad18798cf06fa8afec4bc061ab Mon Sep 17 00:00:00 2001 From: Nils Bartels Date: Thu, 21 Dec 2023 10:20:20 +0100 Subject: [PATCH] cosmetics --- app/views/limitations/_form.html.haml | 4 ++-- app/views/reservations/_form.html.haml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/limitations/_form.html.haml b/app/views/limitations/_form.html.haml index 7225882..8da5be2 100644 --- a/app/views/limitations/_form.html.haml +++ b/app/views/limitations/_form.html.haml @@ -3,7 +3,7 @@ .col-md-12 = f.input :name - = f.input :start_date, as: :datetime, html5: true, input_html: { value: DateTime.now.utc.beginning_of_day + 1.day } - = f.input :end_date, as: :datetime, html5: true, input_html: { value: DateTime.now.utc.beginning_of_day + 2.days } + = f.input :start_date, as: :datetime, html5: true + = f.input :end_date, as: :datetime, html5: true = f.button :submit, class: 'btn btn-success' diff --git a/app/views/reservations/_form.html.haml b/app/views/reservations/_form.html.haml index 11be39d..3d25d04 100644 --- a/app/views/reservations/_form.html.haml +++ b/app/views/reservations/_form.html.haml @@ -2,7 +2,7 @@ .row .col-md-12 - = f.input :start_date, as: :datetime, html5: true, input_html: { value: DateTime.now.utc.beginning_of_day + 1.day } + = f.input :start_date, as: :datetime, html5: true = f.input :desk_id, collection: Desk.order("name ASC").all, label_method: :name, value_method: :id - if @current_role == "admin" = f.input :user_id, collection: User.order("email ASC").all, label_method: :email, value_method: :id