2013-01-01 19:10:49 -08:00
|
|
|
- title t('.title')
|
2011-07-30 23:48:16 -07:00
|
|
|
- secondary_nav do
|
2013-01-01 19:10:49 -08:00
|
|
|
= link_to t('.your_items_link'), user_closet_hangers_path(current_user), :class => 'button'
|
2011-07-30 23:48:16 -07:00
|
|
|
|
|
|
|
#intro
|
2013-01-01 19:10:49 -08:00
|
|
|
%p= t '.description'
|
2013-01-09 15:32:56 -08:00
|
|
|
%p= twl '.instructions',
|
2023-10-25 15:16:46 -07:00
|
|
|
:edit_petpage_link_url => 'https://www.neopets.com/edithomepage.phtml'
|
2011-07-30 23:48:16 -07:00
|
|
|
|
2012-04-08 13:59:51 -07:00
|
|
|
= form_tag petpage_user_closet_hangers_path(@user), :method => :get, :id => 'petpage-closet-lists' do
|
|
|
|
= hidden_field_tag 'filter', '1'
|
|
|
|
- @closet_lists_by_owned.each do |owned, closet_lists|
|
|
|
|
%div
|
2013-01-01 19:10:49 -08:00
|
|
|
%h4= closet_lists_group_name(:you, owned)
|
2012-04-08 13:59:51 -07:00
|
|
|
%ul
|
|
|
|
- closet_lists.each do |closet_list|
|
|
|
|
%li
|
|
|
|
= label_tag do
|
|
|
|
= check_box_tag "lists[#{closet_list.id}]", '1', petpage_closet_list_checked(closet_list, owned)
|
|
|
|
= closet_list.name
|
|
|
|
%li.unlisted
|
|
|
|
= label_tag do
|
|
|
|
= check_box_tag "groups[#{owned}]", '1', petpage_group_checked(owned)
|
2013-01-01 19:10:49 -08:00
|
|
|
= t 'closet_lists.unlisted_name'
|
|
|
|
= submit_tag t('.submit')
|
2012-04-08 13:59:51 -07:00
|
|
|
|
2011-07-30 23:48:16 -07:00
|
|
|
%textarea#petpage-output
|
|
|
|
= '' + render('petpage_content',
|
2012-04-08 13:59:51 -07:00
|
|
|
:lists_by_owned => @visible_closet_lists_by_owned,
|
|
|
|
:unlisted_hangers_by_owned => @visible_unlisted_closet_hangers_by_owned)
|
2011-07-30 23:48:16 -07:00
|
|
|
|
2012-04-08 13:59:51 -07:00
|
|
|
= include_javascript_libraries :jquery
|
|
|
|
= javascript_include_tag 'closet_hangers/petpage'
|