30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
- content_for :head_title do
|
|
= t('locomotive.installation.common.title')
|
|
|
|
- title t('.title')
|
|
|
|
= semantic_form_for(@site, :url => installation_step_url(2), :html => { :multipart => true }) do |f|
|
|
.inner
|
|
|
|
%p.explanations
|
|
!= t('.explanations')
|
|
|
|
= f.inputs do
|
|
= f.input :name, :required => true
|
|
|
|
- if multi_sites?
|
|
= f.input :subdomain, :required => true
|
|
|
|
- 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?}" }
|
|
%label{ :for => 'zipfile' }= t('formtastic.labels.import.new.source')
|
|
= file_field_tag 'zipfile'
|
|
- if Locomotive.default_site_template_present?
|
|
%p.inline-hints!= t('.back_to_default_template')
|
|
|
|
.footer
|
|
= submit_tag t('.next') |