engine/app/views/admin/imports/new.html.haml

32 lines
995 B
Plaintext
Raw Normal View History

- title t('.title')
- content_for :submenu do
= render 'admin/shared/menu/settings'
%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
%p.inline-errors= @error
%p.inline-hints= t('formtastic.hints.import.source')
%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')
%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')
= render 'admin/shared/form_actions', :button_label => :send