Sha256: 77c0a061ed31ffb013f52e1eba34033ad36a62d9657355bdeb4c50bde9c23976

Contents?: true

Size: 1.85 KB

Versions: 6

Compression:

Stored size: 1.85 KB

Contents

- content_for :head do
  = javascript_include_tag 'admin/site'

= f.foldable_inputs :name => :information, :style => "#{'display: none' unless @site.new_record?}" do
  = f.input :name, :required => false

= f.foldable_inputs :name => :meta do

  = f.input :meta_keywords
  = f.input :meta_description

= 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

  - @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 'current_site[domains][]', name
       
      = 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'
     
    %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')

= 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
      - if account != current_admin
        %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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
locomotive_cms-0.0.4.beta5 app/views/admin/current_sites/_form.html.haml
locomotive_cms-0.0.4.beta4 app/views/admin/current_sites/_form.html.haml
locomotive_cms-0.0.4.beta3 app/views/admin/current_sites/_form.html.haml
locomotive_cms-0.0.4.beta2 app/views/admin/current_sites/_form.html.haml
locomotive_cms-0.0.4.beta1 app/views/admin/current_sites/_form.html.haml
locomotive_cms-0.0.4 app/views/admin/current_sites/_form.html.haml