about summary refs log tree commit diff stats
path: root/app/views/admin/games/_form.html.haml
blob: bc31c26813bc3a9f64fd22f844821bc2a9125dbb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
%fieldset#content
  .title-field
    = f.label :title
    = f.text_field :title, placeholder: "Title"
  .description-field
    = f.label :description
    = f.text_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
    .score-field
      = f.label :score
      = f.select :score, 1..10, include_blank: true
  .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.object.status)
      = f.label :status
  .details-module= f.submit