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
|
2011-11-29 13:58:19 +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
|
|
|
|
2011-12-02 14:59:41 +00:00
|
|
|
= f.inputs :name => :information, :style => 'display: none' do
|
|
|
|
= f.input :name
|
2010-07-21 23:56:42 +00:00
|
|
|
|
2011-11-21 01:27:05 +00:00
|
|
|
= f.inputs :name => :seo, :class => "inputs foldable #{'folded' if inputs_folded?(@site)}" do
|
2011-06-24 07:49:12 +00:00
|
|
|
= f.input :seo_title
|
2010-06-16 14:43:29 +00:00
|
|
|
= f.input :meta_keywords
|
|
|
|
= f.input :meta_description
|
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
|
|
|
|
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
|
2011-11-27 16:22:54 +00:00
|
|
|
= f.input :robots_txt, :as => :'Locomotive::Code', :picker => false, :wrapper_html => { :class => 'small' }
|