deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject [PATCH core 2/2] Core: Fixed formatting for new loadbalancer UI
Date Mon, 13 Aug 2012 13:39:51 GMT
From: Michal Fojtik <mfojtik@redhat.com>


Signed-off-by: Michal fojtik <mfojtik@redhat.com>
---
 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


Mime
View raw message