Sha256: f9f7b92ea35fb23c5b6d40bbe8478207458a05708a343137d6a2a580b7dbfe48

Contents?: true

Size: 900 Bytes

Versions: 1

Compression:

Stored size: 900 Bytes

Contents

= semantic_form_for domain, :url => domain_path, :simple => true do |f|
  = f.semantic_errors :name
  .control-group.control-group-important{:class => domain.errors[:name].present? || domain.errors[:namespace].present? ? 'error' : '', :id => "domain_name_group", :data => domain.errors[:name].present? || domain.errors[:namespace].present? ? {:"server-error" => 'server-error'} : {}}
    .controls.first
      .input-prepend.input-append
        %span.add-on> http://applicationname–
        = f.text_field :name, :autofocus => true, :placeholder => 'Namespace', :class => 'domain_name'
        %span.add-on>= ".#{RestApi.application_domain_suffix}"
      .help-block Your namespace must be letters or numbers with no spaces or symbols.
  = f.buttons do
    = link_to "Cancel", account_path, :class => 'btn'
    = f.commit_button :label => domain.persisted? ? 'Save' : 'Create'
    = f.loading

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
openshift-origin-console-1.3.4 app/views/domains/_form.html.haml