From 7789e2138fc0479846c20bc68d68973636a4a760 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 12 Mar 2019 21:50:00 -0400 Subject: Started game tracker --- app/views/admin/games/_form.html.haml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 app/views/admin/games/_form.html.haml (limited to 'app/views/admin/games/_form.html.haml') diff --git a/app/views/admin/games/_form.html.haml b/app/views/admin/games/_form.html.haml new file mode 100644 index 0000000..4b17664 --- /dev/null +++ b/app/views/admin/games/_form.html.haml @@ -0,0 +1,23 @@ +%fieldset#content + .title-field + = f.label :title + = f.text_field :title, placeholder: "Title" + .description-field + = f.label :description + = f.cktext_area :description +%fieldset#details + - if f.object.errors.any? + #errors.details-module + %h3 Error! + %ul + - f.object.errors.full_messages.each do |error| + %li= error + .details-module + .progress-field + = f.label :progress + = f.text_area :progress + .details-module + .status-field + = f.select :status, options_for_select(Game.status.values) + = f.label :status + .details-module= f.submit -- cgit 1.4.1