2010-05-10 22:39:52 +00:00
|
|
|
- content_for :head do
|
2010-12-14 17:00:12 +00:00
|
|
|
= include_javascripts :site
|
2010-05-10 22:39:52 +00:00
|
|
|
|
|
|
|
= f.foldable_inputs :name => :information, :style => "#{'display: none' unless @site.new_record?}" do
|
|
|
|
= f.input :name, :required => false
|
2010-07-21 23:56:42 +00:00
|
|
|
|
2010-06-16 14:43:29 +00:00
|
|
|
= f.foldable_inputs :name => :meta do
|
|
|
|
|
|
|
|
= f.input :meta_keywords
|
|
|
|
= f.input :meta_description
|
2010-05-10 22:39:52 +00:00
|
|
|
|
2011-04-01 00:34:19 +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
|
2010-05-10 22:39:52 +00:00
|
|
|
%em
|
|
|
|
http://
|
2011-04-07 09:53:07 +00:00
|
|
|
= f.text_field :subdomain, :readonly => !manage_subdomain?
|
2011-04-01 00:34:19 +00:00
|
|
|
\.
|
|
|
|
%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('admin.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('admin.messages.confirm')
|
|
|
|
%button{ :class => 'button light add', :type => 'button' }
|
|
|
|
%span!= t('admin.buttons.new_item')
|
2010-07-21 23:56:42 +00:00
|
|
|
|
2010-05-10 22:39:52 +00:00
|
|
|
= f.foldable_inputs :name => :memberships, :class => 'memberships' do
|
|
|
|
- @site.memberships.each_with_index do |membership, index|
|
|
|
|
- account = membership.account
|
|
|
|
%li{ :class => "item #{'last' if index == @site.memberships.size - 1}" }
|
|
|
|
%strong= account.name
|
|
|
|
%em= account.email
|
2010-06-10 22:07:59 +00:00
|
|
|
- if account != current_admin
|
2010-05-10 22:39:52 +00:00
|
|
|
%span.actions
|
2010-07-21 23:56:42 +00:00
|
|
|
= link_to image_tag('admin/form/icons/trash.png'), admin_membership_url(membership), :class => 'remove first', :confirm => t('admin.messages.confirm'), :method => :delete
|