engine/app/views/locomotive/import/new.html.haml

33 lines
1007 B
Plaintext

- title t('.title')
- content_for :submenu do
= render_cell 'admin/settings_menu', :show
%p!= t('.help')
= form_tag 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
.inline-errors
%p= @error
%p.inline-hints= t('formtastic.hints.import.source')
%li.input.toggle
= label_tag 'samples', t('formtastic.labels.import.new.samples')
= check_box_tag 'samples'
%p.inline-hints= t('formtastic.hints.import.samples')
%li.input.toggle
= 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