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.haml23
1 files changed, 23 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..4b17664 --- /dev/null +++ b/app/views/admin/games/_form.html.haml
@@ -0,0 +1,23 @@
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.cktext_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 .status-field
21 = f.select :status, options_for_select(Game.status.values)
22 = f.label :status
23 .details-module= f.submit