2010-10-27 00:11:44 +00:00
|
|
|
- content_for :head_title do
|
2011-10-30 23:02:41 +00:00
|
|
|
= t('locomotive.installation.common.title')
|
2010-10-27 00:11:44 +00:00
|
|
|
|
|
|
|
- title t('.title')
|
|
|
|
|
2011-10-31 23:44:23 +00:00
|
|
|
= semantic_form_for(@site, :url => installation_step_url(2), :html => { :multipart => true }) do |f|
|
2010-10-27 00:11:44 +00:00
|
|
|
.inner
|
2011-04-24 23:21:38 +00:00
|
|
|
|
2011-04-05 00:18:17 +00:00
|
|
|
%p.explanations
|
|
|
|
!= t('.explanations')
|
|
|
|
|
|
|
|
= f.inputs do
|
|
|
|
= f.input :name, :required => true
|
|
|
|
|
2011-04-06 09:44:52 +00:00
|
|
|
- if multi_sites?
|
2011-04-05 00:18:17 +00:00
|
|
|
= f.input :subdomain, :required => true
|
|
|
|
|
2011-05-29 02:45:29 +00:00
|
|
|
- if Locomotive.default_site_template_present?
|
|
|
|
%li{ :class => 'question', :id => 'default_site_template_input' }
|
|
|
|
= check_box_tag 'default_site_template', '1', params[:default_site_template].blank? || params[:default_site_template] == '1'
|
|
|
|
%label{ :for => 'default_site_template' }!= t('formtastic.labels.import.new.default_site_template')
|
|
|
|
|
|
|
|
%li{ :class => 'string optional', :id => 'zipfile_input', :style => "#{'display: none' if Locomotive.default_site_template_present?}" }
|
2011-04-05 00:18:17 +00:00
|
|
|
%label{ :for => 'zipfile' }= t('formtastic.labels.import.new.source')
|
|
|
|
= file_field_tag 'zipfile'
|
2011-05-29 02:45:29 +00:00
|
|
|
- if Locomotive.default_site_template_present?
|
|
|
|
%p.inline-hints!= t('.back_to_default_template')
|
2010-10-27 00:11:44 +00:00
|
|
|
|
|
|
|
.footer
|
2011-11-03 13:01:08 +00:00
|
|
|
= submit_tag t('.next')
|