2010-09-28 22:08:11 +00:00
|
|
|
- title t('.title')
|
|
|
|
|
|
|
|
- content_for :submenu do
|
2011-07-25 21:07:32 +00:00
|
|
|
= render_cell 'admin/settings_menu', :show
|
2010-09-28 22:08:11 +00:00
|
|
|
|
|
|
|
%p!= t('.help')
|
|
|
|
|
|
|
|
= form_tag admin_import_url, :multipart => true, :class => 'formtastic import' do
|
|
|
|
|
|
|
|
%fieldset.inputs
|
|
|
|
%legend
|
|
|
|
%span= t('formtastic.titles.upload')
|
|
|
|
%ol
|
|
|
|
%li{ :class => "file #{'error' if @error} required" }
|
|
|
|
= label_tag 'zipfile', t('formtastic.labels.import.new.source')
|
|
|
|
= file_field_tag 'zipfile'
|
|
|
|
- if @error
|
2011-07-04 21:11:35 +00:00
|
|
|
.inline-errors
|
|
|
|
%p= @error
|
2010-09-28 22:08:11 +00:00
|
|
|
%p.inline-hints= t('formtastic.hints.import.source')
|
|
|
|
|
2010-10-29 15:12:57 +00:00
|
|
|
%li.input.toggle
|
2010-10-29 14:19:41 +00:00
|
|
|
= label_tag 'samples', t('formtastic.labels.import.new.samples')
|
|
|
|
= check_box_tag 'samples'
|
|
|
|
%p.inline-hints= t('formtastic.hints.import.samples')
|
|
|
|
|
2010-10-29 15:12:57 +00:00
|
|
|
%li.input.toggle
|
2010-10-29 14:19:41 +00:00
|
|
|
= label_tag 'reset', t('formtastic.labels.import.new.reset')
|
|
|
|
= check_box_tag 'reset'
|
|
|
|
%p.inline-hints= t('formtastic.hints.import.reset')
|
|
|
|
|
|
|
|
|
2010-09-28 22:08:11 +00:00
|
|
|
= render 'admin/shared/form_actions', :button_label => :send
|