about summary refs log tree commit diff stats
path: root/app/views/admin/games/_form.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/admin/games/_form.html.haml')
-rw-r--r--app/views/admin/games/_form.html.haml35
1 files changed, 35 insertions, 0 deletions
diff --git a/app/views/admin/games/_form.html.haml b/app/views/admin/games/_form.html.haml new file mode 100644 index 0000000..bc31c26 --- /dev/null +++ b/app/views/admin/games/_form.html.haml
@@ -0,0 +1,35 @@
1%fieldset#content
2 .title-field
3 = f.label :title
4 = f.text_field :title, placeholder: "Title"
5 .description-field
6 = f.label :description
7 = f.text_area :description
8%fieldset#details
9 - if f.object.errors.any?
10 #errors.details-module
11 %h3 Error!
12 %ul
13 - f.object.errors.full_messages.each do |error|
14 %li= error
15 .details-module
16 .progress-field
17 = f.label :progress
18 = f.text_area :progress
19 .details-module
20 .score-field
21 = f.label :score
22 = f.select :score, 1..10, include_blank: true
23 .details-module
24 .started-field
25 = f.label :started_on
26 = f.text_field :started_on, class: "datepicker"
27 .details-module
28 .finished-field
29 = f.label :finished_on
30 = f.text_field :finished_on, class: "datepicker"
31 .details-module
32 .status-field
33 = f.select :status, options_for_select(Game.status.values, f.object.status)
34 = f.label :status
35 .details-module= f.submit