2011-11-29 01:24:02 +00:00
|
|
|
- content_for :head do
|
2011-12-02 14:59:41 +00:00
|
|
|
= render 'locomotive/sites/domains'
|
2011-11-29 01:24:02 +00:00
|
|
|
|
2011-12-02 14:59:41 +00:00
|
|
|
= f.inputs :name => :information do
|
|
|
|
= f.input :name
|
2011-11-29 01:24:02 +00:00
|
|
|
|
|
|
|
- if manage_subdomain_or_domains?
|
2011-12-02 14:59:41 +00:00
|
|
|
= f.inputs :name => :access_points do
|
|
|
|
= f.input :subdomain, :as => :'Locomotive::Subdomain', :domain => application_domain, :input_html => { :readonly => !manage_subdomain? }
|
2011-11-29 01:24:02 +00:00
|
|
|
|
|
|
|
- if manage_domains?
|
2011-12-02 14:59:41 +00:00
|
|
|
= f.input :domains, :as => :'Locomotive::Empty'
|
|
|
|
|
2011-11-29 01:24:02 +00:00
|
|
|
|
2011-12-02 14:59:41 +00:00
|
|
|
/ - if manage_subdomain_or_domains?
|
|
|
|
/ = f.foldable_inputs :name => :access_points, :class => 'editable-list off' do
|
|
|
|
/
|
|
|
|
/ = f.custom_input :subdomain, :css => 'path' do
|
|
|
|
/ %em
|
|
|
|
/ http://
|
|
|
|
/ = f.text_field :subdomain
|
|
|
|
/ \.
|
|
|
|
/ %em
|
|
|
|
/ = application_domain
|
|
|
|
/
|
|
|
|
/ - if manage_domains?
|
|
|
|
/ - @site.domains_without_subdomain.each_with_index do |name, index|
|
|
|
|
/ %li{ :class => "item added #{'last' if index == @site.domains.size - 1}" }
|
|
|
|
/ %em
|
|
|
|
/ http://
|
|
|
|
/ = text_field_tag 'site[domains][]', name, :class => 'string label void domain'
|
|
|
|
/
|
|
|
|
/ = error_on_domain(@site, name)
|
|
|
|
/ %span.actions
|
|
|
|
/ = link_to image_tag('admin/form/icons/trash.png'), '#', :class => 'remove first', :confirm => t('locomotive.messages.confirm')
|
|
|
|
/
|
|
|
|
/ %li.item.template
|
|
|
|
/ %em
|
|
|
|
/ http://
|
|
|
|
/ = text_field_tag 'label', t('formtastic.hints.site.domain_name'), :class => 'string label void domain'
|
|
|
|
/
|
|
|
|
/ %span.actions
|
|
|
|
/ = link_to image_tag('admin/form/icons/trash.png'), '#', :class => 'remove first', :confirm => t('locomotive.messages.confirm')
|
|
|
|
/ %button{ :class => 'button light add', :type => 'button' }
|
|
|
|
/ %span!= t('locomotive.buttons.new_item')
|