summaryrefslogtreecommitdiff
path: root/app/views/admin/forums/_form.html.slim
blob: 9a6bcbe695cb8822f1b046040f5f1cbb6f4f11dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
= form_for [:admin, @forum] do |f|
  = render partial: 'layouts/errors', locals: { errors: @forum.errors }
  .field
    => f.label :name, 'Name:'
    = f.text_field :name, class: 'input input--wide'
  .field
    => f.label :short_name, 'Slug:'
    = f.text_field :short_name, class: 'input input--wide'
  .field
    => f.label :description, 'Description:'
    = f.text_area :description, class: 'input input--wide'
  .field
    => f.label :access_level, 'Access level:'
    = f.select :access_level, options_for_select({ Normal: 'normal', Assistant: 'assistant', Moderator: 'staff' }, @forum.access_level), {}, class: 'input'
  .field
    => f.label :post_access_level, 'Reply access level:'
    = f.select :post_access_level, options_for_select({Normal: 'normal', Assistant: 'assistant', Moderator: 'staff'}, @forum.post_access_level), {}, class: 'input'
  = f.submit 'Save Forum', class: 'button'