From bcf6445d92f1a57dff0b97bd9309f40b70088448 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 13 Mar 2019 10:18:45 -0400 Subject: Added started/finished on dates to Game --- app/views/admin/games/_form.html.haml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'app/views/admin/games') diff --git a/app/views/admin/games/_form.html.haml b/app/views/admin/games/_form.html.haml index 4b17664..ed0982e 100644 --- a/app/views/admin/games/_form.html.haml +++ b/app/views/admin/games/_form.html.haml @@ -16,8 +16,16 @@ .progress-field = f.label :progress = f.text_area :progress + .details-module + .started-field + = f.label :started_on + = f.text_field :started_on, class: "datepicker" + .details-module + .finished-field + = f.label :finished_on + = f.text_field :finished_on, class: "datepicker" .details-module .status-field - = f.select :status, options_for_select(Game.status.values) + = f.select :status, options_for_select(Game.status.values, f.object.status) = f.label :status .details-module= f.submit -- cgit 1.4.1