Guest User

Untitled

a guest
Jul 22nd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. = simple_form_for [:admin, @content_package] do |f|
  2. = f.input :title
  3. = f.input :publisher_id, :collection => Publisher.available, :label_method => :name
  4. = f.input :subject_id, :collection => Subject.available, :label_method => :name
  5. - if @content_package.available_states.count > 1
  6. = f.input :state, :collection => @content_package.available_states
  7. = f.input :description, :as => :text
  8. = f.submit t("site.save")
Add Comment
Please, Sign In to add comment