2011-11-25 14:10:56 +00:00
|
|
|
- content_for :head do
|
2011-11-27 16:22:54 +00:00
|
|
|
= render 'locomotive/sites/domains'
|
2011-11-29 13:58:19 +00:00
|
|
|
= render 'locomotive/sites/memberships'
|
2011-11-25 14:10:56 +00:00
|
|
|
|
|
|
|
- content_for :backbone_view_data do
|
|
|
|
:plain
|
2012-02-02 15:53:26 +00:00
|
|
|
site: #{@site.to_json(:current_account => current_locomotive_account, :current_site => current_site)},
|
|
|
|
errors: #{@site.errors.to_json}
|
2011-11-25 14:10:56 +00:00
|
|
|
|
2012-01-10 01:24:34 +00:00
|
|
|
= f.inputs :name => :information do
|
|
|
|
= f.input :name, :wrapper_html => { :style => 'display: none' }
|
|
|
|
= f.input :locales, :as => '::Locomotive::Locales', :collection => ordered_current_site_locales, :input_html => { :class => 'locales' }
|
2010-05-10 22:39:52 +00:00
|
|
|
|
2011-11-08 14:34:25 +00:00
|
|
|
- if can?(:point, Locomotive::Site)
|
2011-06-27 15:27:07 +00:00
|
|
|
- if manage_subdomain_or_domains?
|
2011-11-21 01:27:05 +00:00
|
|
|
= f.inputs :name => :access_points do
|
2011-11-25 14:10:56 +00:00
|
|
|
= f.input :subdomain, :as => :'Locomotive::Subdomain', :domain => application_domain, :input_html => { :readonly => !manage_subdomain? }
|
|
|
|
|
|
|
|
- if manage_domains?
|
|
|
|
= f.input :domains, :as => :'Locomotive::Empty'
|
2011-04-01 00:34:19 +00:00
|
|
|
|
2012-01-10 01:24:34 +00:00
|
|
|
|
|
|
|
= f.inputs :name => :seo, :class => "inputs foldable #{'folded' if inputs_folded?(@site)}" do
|
|
|
|
= f.input :seo_title
|
|
|
|
= f.input :meta_keywords
|
|
|
|
= f.input :meta_description
|
|
|
|
|
2011-11-08 14:34:25 +00:00
|
|
|
- if can?(:index, Locomotive::Membership)
|
2011-06-25 16:25:31 +00:00
|
|
|
|
2011-11-21 01:27:05 +00:00
|
|
|
= f.inputs :name => :memberships do
|
2011-11-29 13:58:19 +00:00
|
|
|
= f.input :memberships, :as => :'Locomotive::Empty', :label => false, :wrapper_html => { :id => 'site_memberships_input' }
|
2011-07-05 20:34:15 +00:00
|
|
|
|
|
|
|
- if can?(:manage, current_site)
|
|
|
|
|
2011-11-21 01:27:05 +00:00
|
|
|
= f.inputs :name => :robots_txt, :class => "inputs foldable #{'folded' if inputs_folded?(@site)}" do
|
2012-01-04 01:07:53 +00:00
|
|
|
= f.input :robots_txt, :as => :'Locomotive::Code', :picker => false, :wrapper_html => { :class => 'small no-label' }
|