mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
18 lines
586 B
Plaintext
18 lines
586 B
Plaintext
= simple_form_for [:admin, photo] do |f|
|
|
%ul.categories
|
|
- @categories.each do |photo_category|
|
|
%li
|
|
= check_box_tag "photo[category_ids][]", photo_category.id, @photo.categories.include?(photo_category), :id => "photo_category_ids_#{photo_category.id}"
|
|
= label_tag "photo_category_ids_#{photo_category.id}", photo_category.name
|
|
|
|
= inputs_field_set do
|
|
= f.input :photo
|
|
= f.input :title
|
|
= f.input :description
|
|
= f.input :flickr_url
|
|
= f.input :featured
|
|
= f.input :enabled
|
|
= f.input :taken_at
|
|
= actions_field_set do
|
|
= f.submit
|