9 lines
263 B
Text
9 lines
263 B
Text
|
= simple_form_for subcreddit do |f|
|
||
|
.form-inputs
|
||
|
- if subcreddit.new_record?
|
||
|
= f.input :name
|
||
|
- unless subcreddit.new_record?
|
||
|
= f.input :closed, as: :boolean, input_html: { checked: subcreddit.closed? }
|
||
|
.form-actions
|
||
|
= f.button :submit
|