forked from OpenNeo/impress
23 lines
1,023 B
Text
23 lines
1,023 B
Text
.closet-list{'data-id' => closet_list.id, 'data-hangers-count' => closet_list.hangers.size, :id => "closet-list-#{closet_list.id}"}
|
|
%header
|
|
- if show_controls
|
|
= form_for [current_user, closet_list], :html => {:class => 'visibility-form'} do |f|
|
|
= f.select :visibility, closet_visibility_choices(:human_name)
|
|
= f.submit t('.submit')
|
|
= closet_visibility_descriptions(:list)
|
|
.closet-list-controls
|
|
= link_to t('.edit'), edit_user_closet_list_path(closet_list.user_id, closet_list)
|
|
= form_tag user_closet_list_path(closet_list.user_id, closet_list), :method => 'delete' do
|
|
= submit_tag t('.delete'), :confirm => closet_list_delete_confirmation(closet_list)
|
|
%h4= closet_list.name
|
|
|
|
.closet-list-content
|
|
- 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= t('.empty')
|
|
|