2012-12-30 13:02:57 -08:00
|
|
|
- title t('modeling_hub')
|
2012-08-06 18:15:31 -07:00
|
|
|
|
2012-08-07 14:32:51 -07:00
|
|
|
= form_tag load_pet_path, :id => 'bulk-pets-form' do
|
2012-12-30 13:02:57 -08:00
|
|
|
- localized_cache :action_suffix => 'bulk_pets_content' do
|
2024-09-09 18:56:39 -07:00
|
|
|
%p= t '.explanation'
|
2012-08-06 18:15:31 -07:00
|
|
|
|
|
|
|
= origin_tag bulk_pets_path
|
|
|
|
|
|
|
|
%div.noscript
|
|
|
|
%input{:name => "name", :type => "text"}/
|
2024-09-09 18:56:39 -07:00
|
|
|
%input{:type => "submit", :value => t('.submit')}/
|
2012-08-06 18:15:31 -07:00
|
|
|
%div.script-only
|
|
|
|
%textarea
|
2024-09-09 18:56:39 -07:00
|
|
|
%button#bulk-pets-form-add{:type => "button"}= t '.add'
|
|
|
|
%button#bulk-pets-form-clear{:type => "button"}= t '.clear'
|
2012-08-06 18:15:31 -07:00
|
|
|
%ul
|
|
|
|
|
2012-12-30 13:02:57 -08:00
|
|
|
- localized_cache :action_suffix => 'templates' do
|
2012-08-06 18:15:31 -07:00
|
|
|
%script#item-template{:type => 'text/x-jquery-tmpl'}
|
|
|
|
%li{:class => 'object{{if owned}} owned{{/if}}'}
|
|
|
|
= link_to item_path(':id').sub(':id', '${id}') do
|
|
|
|
%img{:src => '${thumbnail_url}', :alt => '${description}', :title => '${description}'}
|
|
|
|
%span.name ${name}
|
|
|
|
|
|
|
|
{{if nc}}
|
|
|
|
= nc_icon
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
.closeted-icons
|
|
|
|
{{if owned}}
|
|
|
|
= owned_icon
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{if wanted}}
|
|
|
|
= wanted_icon
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{if owned}}
|
2012-12-30 13:02:57 -08:00
|
|
|
%span.object-owned= t '.needed_items.item_owned'
|
2012-08-06 18:15:31 -07:00
|
|
|
{{/if}}
|
2012-12-30 13:02:57 -08:00
|
|
|
|
|
|
|
%script#needed-items-pet-header-template{:type => 'text/x-jquery/tmpl'}
|
|
|
|
= t '.needed_items.pet_header', :pet_name => '${pet_name}'
|
|
|
|
|
|
|
|
%script#bulk-pets-submission-template{:type => 'text/x-jquery/tmpl'}
|
|
|
|
%li.waiting
|
2024-08-31 12:07:52 -07:00
|
|
|
%img{:src => '${pet_thumbnail}'}
|
2012-12-30 13:02:57 -08:00
|
|
|
%span.name ${pet_name}
|
2024-09-09 18:56:39 -07:00
|
|
|
%span.waiting-message= t '.waiting'
|
|
|
|
%span.loading-message= t '.loading'
|
2012-12-30 13:02:57 -08:00
|
|
|
%span.response
|
|
|
|
|
|
|
|
%script#bulk-pets-submission-success-template{:type => 'text/x-jquery/tmpl'}
|
2024-09-09 18:56:39 -07:00
|
|
|
= t '.submission_success', :points => '${points}'
|
2012-08-06 18:15:31 -07:00
|
|
|
|
2010-12-06 15:50:13 -08:00
|
|
|
- content_for :javascripts do
|
2012-08-06 18:15:31 -07:00
|
|
|
= include_javascript_libraries :jquery, :jquery_tmpl
|
2024-03-13 21:26:22 -07:00
|
|
|
= javascript_include_tag 'ajax_auth', defer: true
|
|
|
|
|
|
|
|
- content_for :javascripts_body do
|
|
|
|
= javascript_include_tag 'pets/bulk', defer: true
|