1
0
Fork 0
forked from OpenNeo/impress
impress/app/views/closet_lists/_closet_list.html.haml

23 lines
1 KiB
Text
Raw Normal View History

.closet-list{'data-id' => closet_list.id, 'data-hangers-count' => closet_list.hangers.count, :id => "closet-list-#{closet_list.id}"}
2011-07-29 07:52:04 -07:00
%header
- if show_controls
2011-07-30 19:47:06 -07:00
= form_for [closet_list.user, closet_list], :html => {:class => 'visibility-form'} do |f|
= f.select :visibility, closet_visibility_choices(:human_name)
= f.submit "Save"
= closet_visibility_descriptions('items in this list')
2011-07-29 07:52:04 -07:00
.closet-list-controls
= link_to 'Edit', edit_user_closet_list_path(closet_list.user, closet_list)
= form_tag user_closet_list_path(closet_list.user, closet_list), :method => 'delete' do
= submit_tag 'Delete', :confirm => closet_list_delete_confirmation(closet_list)
%h4= closet_list.name
.closet-list-content
2011-07-30 20:07:58 -07:00
- if closet_list.description?
= closet_list_description_format closet_list
.closet-list-hangers
- unless closet_list.hangers.empty?
= render_sorted_hangers(closet_list, show_controls)
%span.empty-list This list is empty.
2011-07-29 07:52:04 -07:00