Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- = simple_form_for [:admin, @content_package] do |f|
- = f.input :title
- = f.input :publisher_id, :collection => Publisher.available, :label_method => :name
- = f.input :subject_id, :collection => Subject.available, :label_method => :name
- - if @content_package.available_states.count > 1
- = f.input :state, :collection => @content_package.available_states
- = f.input :description, :as => :text
- = f.submit t("site.save")
Add Comment
Please, Sign In to add comment