incubator-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] Added new UI to new firewall form
Date Wed, 17 Aug 2011 09:24:38 GMT
From: Michal Fojtik <mfojtik@redhat.com>


Signed-off-by: Michal fojtik <mfojtik@redhat.com>
---
 server/views/firewalls/new.html.haml |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/server/views/firewalls/new.html.haml b/server/views/firewalls/new.html.haml
index 4a230a6..3960bf8 100644
--- a/server/views/firewalls/new.html.haml
+++ b/server/views/firewalls/new.html.haml
@@ -1,11 +1,11 @@
-%h1 New Firewall
+=header "New firewall"
 
-%form{:action => firewalls_url, :method => :post}
-  %label
-    Firewall Name
-    %input{:name => 'name', :size => 25}/
-    %br
-  %label
-    Firewall Description
-    %input{:name => 'description', :size => 100}/
-  %input{:type => :submit, :name => "commit", :value=>"create"}
\ No newline at end of file
+%div{ :'data-role' => :content, :'data-theme' => 'c', :class => 'middle-dialog',
:id => "new_rule_form"}
+  %form{ :action => firewalls_url, :method => :post}
+    %div{ 'data-role' => :fieldcontain }
+      %label{ :for => :name} Name:
+      %input{ :type => :text, :id => :name, :name => :name, :value => '', :size
=> 25 }
+    %div{ 'data-role' => :fieldcontain }
+      %label{ :for => :description} Description:
+      %input{ :type => :text, :id => :description, :name => :description, :value
=> '', :size => 100 }
+    %button{ :type => :submit} Create
-- 
1.7.4.1


Mime
View raw message