crowbar/crowbar-openstack

View on GitHub
crowbar_framework/app/views/barclamp/keystone/_edit_attributes.html.haml

Summary

Maintainability
Test Coverage
= attributes_for @proposal do
  .panel-sub
    = header show_raw_deployment?, true

  .panel-body
    = instance_field :database
    = instance_field :rabbitmq
    = string_field %w(api region)

    %fieldset
      %legend
        = t(".default_credentials")

      = string_field %w(default project)
      = string_field %w(admin username)
      = password_field %w(admin password)

      = boolean_field %w(default create_user),
        "data-showit" => "true",
        "data-showit-target" => "#default_user_container",
        "data-showit-direct" => "true"

      #default_user_container
        = string_field %w(default username)
        = password_field %w(default password)

    %fieldset
      %legend
        = t(".ssl_header")

      = select_field %w(api protocol),
        :collection => :api_protocols_for_keystone,
        "data-sslprefix" => "ssl",
        "data-sslcert" => "/etc/keystone/ssl/certs/signing_cert.pem",
        "data-sslkey" => "/etc/keystone/ssl/private/signing_key.pem"

      #ssl_container
        = boolean_field %w(ssl generate_certs)
        = string_field %w(ssl certfile)
        = string_field %w(ssl keyfile)
        = boolean_field %w(ssl insecure)
        = string_field %w(ssl ca_certs)