1
0
Fork 0
forked from OpenNeo/impress
impress/app/views/neopets_page_import_tasks/new.html.haml

68 lines
2.2 KiB
Text
Raw Permalink Normal View History

2015-07-27 10:25:24 -07:00
- title t('.title', :name => @import_task.page.name, :index => @import_task.page.expected_index)
- content_for :before_flashes do
2012-12-30 14:07:29 -08:00
= link_to t('.your_items_link'), user_closet_hangers_path(current_user), :id => 'back-to-items'
2011-07-12 21:25:14 -07:00
2015-07-27 10:25:24 -07:00
= form_for @import_task, :html => {:id => 'closet-page-form'} do |f|
2011-07-12 21:25:14 -07:00
#closet-page-frame-wrapper
%span
2012-12-30 14:07:29 -08:00
%strong
2015-07-27 10:25:24 -07:00
= t '.frame_header', :name => @import_task.page.name,
:index => @import_task.page.expected_index
%iframe#closet-page-frame{:src => @import_task.page.url}
2011-07-12 21:25:14 -07:00
#closet-page-source
2015-07-27 10:25:24 -07:00
= fields_for @import_task.page do |p|
= p.label :source, t('.source_header')
= p.text_area :source
2013-04-09 13:50:33 -07:00
= f.select :list_id, neopets_page_list_options(current_user)
2012-12-30 14:07:29 -08:00
= f.submit t('.submit')
2011-07-12 21:25:14 -07:00
2012-12-30 14:07:29 -08:00
- localized_cache :action_suffix => 'explanation' do
%p
2015-07-27 10:25:24 -07:00
= t '.help.welcome', :name => @import_task.page.name
= t '.help.intro', :name => @import_task.page.name
2012-12-30 14:07:29 -08:00
%ol
%li
2015-07-27 10:25:24 -07:00
= twl '.help.check_frame.header', :page_link_url => @import_task.page.url,
:name => @import_task.page.name, :index => @import_task.page.expected_index
2012-12-30 14:07:29 -08:00
%ul
%li
%strong= t '.help.check_frame.check_login.summary'
= t '.help.check_frame.check_login.details'
%li
%strong
2013-01-09 16:21:44 -08:00
= twl '.help.check_frame.login.summary',
:login_link_url => neopets_login_url
= twl '.help.check_frame.login.details',
:login_link_url => neopets_login_url
2012-12-30 14:07:29 -08:00
%li
%strong
= t '.help.check_frame.check_content.summary',
2015-07-27 10:25:24 -07:00
:name => @import_task.page.name
2012-12-30 14:07:29 -08:00
= t '.help.check_frame.check_content.details'
%li
= t '.help.view_source.header'
%ul
%li
= t '.help.view_source.chrome_html'
%li
= t '.help.view_source.firefox_html'
%li
2013-01-09 16:21:44 -08:00
= t '.help.view_source.other'
2012-12-30 14:07:29 -08:00
%li
2013-01-09 16:21:44 -08:00
= twl '.help.view_source.troubleshooting',
2015-07-27 10:25:24 -07:00
:page_link_url => @import_task.page.url
2012-12-30 14:07:29 -08:00
%li
= t '.help.copy_source.header'
%ul
%li
= t '.help.copy_source.shortcuts'
%li
= t '.help.submit.header'
%ul
%li
2015-07-27 10:25:24 -07:00
= t '.help.submit.description', :name => @import_task.page.name