2010-10-27 00:11:44 +00:00
|
|
|
- content_for :head_title do
|
|
|
|
= t('admin.installation.common.title')
|
|
|
|
|
|
|
|
- title t('.title')
|
|
|
|
|
2010-12-14 17:00:12 +00:00
|
|
|
- content_for :head do
|
|
|
|
= include_stylesheets :installation
|
2011-05-29 02:45:29 +00:00
|
|
|
= include_javascripts :installation
|
2010-10-27 00:11:44 +00:00
|
|
|
|
2011-04-05 00:18:17 +00:00
|
|
|
= semantic_form_for(@site, :url => admin_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-04-05 00:18:17 +00:00
|
|
|
= box_button_tag t('.next')
|