From: Michal Fojtik <[email protected]>
Signed-off-by: Michal fojtik <[email protected]> --- server/views/load_balancers/new.html.haml | 69 +++++++++++++++-------------- 1 file changed, 35 insertions(+), 34 deletions(-) diff --git a/server/views/load_balancers/new.html.haml b/server/views/load_balancers/new.html.haml index 4685b69..1dffd61 100644 --- a/server/views/load_balancers/new.html.haml +++ b/server/views/load_balancers/new.html.haml @@ -1,38 +1,39 @@ -%h1 New Load Balancer +=header "Create new load balancer" -%form{ :action => load_balancers_url, :method => :post } - %p - %label - Name: - %input{ :name => 'name', :size => 30 }/ - -if @instances +%div{ :'data-role' => :content, :'data-theme' => 'c', :class => 'middle-dialog'} + %form{ :action => load_balancers_url, :method => :post } %p %label - Running instance: - %select{ :name => 'instance_id'} - - @instances.select{|i| i.state=="RUNNING"}.each do |instance| - %option{ :value => instance.id } #{instance.id} - %p - %label - Realm: - %select{ :name => 'realm_id'} - - @realms.each do |realm| - %option{ :value => realm.id } #{realm.id} - #{realm.name} - %hr - %p - %label - Protocol: - %select{ :name => 'listener_protocol'} - %option{ :value => 'HTTP'} HTTP - %option{ :value => 'TCP'} TCP - %p - %label - Load balancer port: - %input{ :name => "listener_balancer_port", :size => 30} - %p - %label - Instances port: - %input{ :name => "listener_instance_port", :size => 30} - %p - %input{ :type => :submit, :name => "commit", :value => "create" }/ + Name: + %input{ :name => 'name', :size => 30 }/ + -if @instances + %p + %label + Running instance: + %select{ :name => 'instance_id'} + - @instances.select{|i| i.state=="RUNNING"}.each do |instance| + %option{ :value => instance.id } #{instance.id} + %p + %label + Realm: + %select{ :name => 'realm_id'} + - @realms.each do |realm| + %option{ :value => realm.id } #{realm.id} - #{realm.name} + %hr + %p + %label + Protocol: + %select{ :name => 'listener_protocol'} + %option{ :value => 'HTTP'} HTTP + %option{ :value => 'TCP'} TCP + %p + %label + Load balancer port: + %input{ :name => "listener_balancer_port", :size => 30} + %p + %label + Instances port: + %input{ :name => "listener_instance_port", :size => 30} + %p + %input{ :type => :submit, :name => "commit", :value => "create" }/ -- 1.7.10.2
