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
|
|
|
|
2011-06-24 07:49:12 +00:00
|
|
|
= f.foldable_inputs :name => :seo do
|
|
|
|
= 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-06-27 15:27:07 +00:00
|
|
|
- if can?(:point, Site)
|
|
|
|
- if manage_subdomain_or_domains?
|
|
|
|
= f.foldable_inputs :name => :access_points, :class => 'editable-list off' do
|
2011-04-01 00:34:19 +00:00
|
|
|
|
2011-06-27 15:27:07 +00:00
|
|
|
= f.custom_input :subdomain, :css => 'path' do
|
|
|
|
%em
|
|
|
|
http://
|
|
|
|
= f.text_field :subdomain, :readonly => !manage_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('admin.messages.confirm')
|
2011-04-01 00:34:19 +00:00
|
|
|
|
2011-06-27 15:27:07 +00:00
|
|
|
%li.item.template
|
2011-04-01 00:34:19 +00:00
|
|
|
%em
|
|
|
|
http://
|
2011-06-27 15:27:07 +00:00
|
|
|
= text_field_tag 'label', t('formtastic.hints.site.domain_name'), :class => 'string label void domain'
|
2011-04-01 00:34:19 +00:00
|
|
|
|
|
|
|
%span.actions
|
|
|
|
= link_to image_tag('admin/form/icons/trash.png'), '#', :class => 'remove first', :confirm => t('admin.messages.confirm')
|
2011-06-27 15:27:07 +00:00
|
|
|
%button{ :class => 'button light add', :type => 'button' }
|
|
|
|
%span!= t('admin.buttons.new_item')
|
2010-07-21 23:56:42 +00:00
|
|
|
|
2011-07-06 18:48:04 +00:00
|
|
|
- if can?(:index, Membership)
|
2011-06-25 16:25:31 +00:00
|
|
|
|
|
|
|
= f.foldable_inputs :name => :memberships, :class => 'memberships off' do
|
|
|
|
= f.semantic_fields_for :memberships do |fm|
|
|
|
|
|
|
|
|
- membership, account = fm.object, fm.object.account
|
|
|
|
|
|
|
|
%li.item.membership{ :'data-role' => membership.role }
|
|
|
|
%strong= account.name
|
|
|
|
|
|
|
|
%em.email= account.email
|
|
|
|
|
2011-09-17 14:23:43 +00:00
|
|
|
- if can?(:update, membership)
|
2011-06-25 16:25:31 +00:00
|
|
|
.role
|
|
|
|
%em.editable= t("admin.memberships.roles.#{membership.role}")
|
|
|
|
|
2011-09-17 14:23:43 +00:00
|
|
|
- if can?(:grant_admin, membership)
|
|
|
|
= fm.select :role, Ability::ROLES.map { |r| [t("admin.memberships.roles.#{r}"), r] }, :include_blank => false
|
|
|
|
- else
|
|
|
|
= fm.select :role, (Ability::ROLES - ['admin']).map { |r| [t("admin.memberships.roles.#{r}"), r] }, :include_blank => false
|
2011-06-25 16:25:31 +00:00
|
|
|
|
|
|
|
%span.actions
|
|
|
|
= link_to image_tag('admin/form/icons/trash.png'), admin_membership_url(membership), :class => 'remove first', :confirm =>t('admin.messages.confirm'), :method => :delete
|
|
|
|
|
|
|
|
- else
|
|
|
|
.role
|
|
|
|
%em.locked= t("admin.memberships.roles.#{membership.role}")
|
2011-07-05 20:34:15 +00:00
|
|
|
|
|
|
|
- if can?(:manage, current_site)
|
|
|
|
|
|
|
|
= f.foldable_inputs :name => :robots_txt do
|
|
|
|
= f.custom_input :robots_txt, :css => 'code full', :with_label => false do
|
|
|
|
= f.label :robots_txt
|
|
|
|
%code{ :class => 'html' }
|
2011-09-17 14:23:43 +00:00
|
|
|
= f.text_area :robots_txt, :class => 'small'
|