Sha256: 0ec7d11c886029bc857eca15732b7c7e9b238ce5c9661ba8e198a3da23185217

Contents?: true

Size: 846 Bytes

Versions: 14

Compression:

Stored size: 846 Bytes

Contents

- if auth.configurable?
  %form
    %table
      - if auth.configurable.include?(:subdomain)
        %tr
          %td
            %label= "Subdomain: "
          %td
            - if auth.subdomains.any?
              - if auth.subdomains.size > 1
                %select{ name: 'subdomain' }
                  - auth.subdomains.each do |subdomain|
                    %option{ value: subdomain }= subdomain
              - else
                = auth.subdomains.first
                %input{ type: 'hidden', name: 'subdomain', value: auth.subdomains.first }
            - else
              %input{ type: 'text', name: 'subdomain', value: '' }

      - (auth.configurable - [:subdomain]).each do |attr|
        %tr
          %td
            %label= "#{attr.capitalize}: "
          %td
            %input{ type: 'text', name: attr, value: '' }

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
cabbage_doc-0.1.4 web/views/authentication.haml
cabbage_doc-0.1.3 web/views/authentication.haml
cabbage_doc-0.1.2 web/views/authentication.haml
cabbage_doc-0.1.1 web/views/authentication.haml
cabbage_doc-0.1.0 web/views/authentication.haml
cabbage_doc-0.0.9 web/views/authentication.haml
cabbage_doc-0.0.8 web/views/authentication.haml
cabbage_doc-0.0.7 web/views/authentication.haml
cabbage_doc-0.0.6 web/views/authentication.haml
cabbage_doc-0.0.5 web/views/authentication.haml
cabbage_doc-0.0.4 web/views/authentication.haml
cabbage_doc-0.0.3 web/views/authentication.haml
cabbage_doc-0.0.2 web/views/authentication.haml
cabbage_doc-0.0.1 web/views/authentication.haml