%div{ :'data-role' => :content, :'data-theme' => 'c', :class => 'middle-dialog', :id => “new_rule_form”}
%orm{ :action => "#{firewall_url(firewall_name)}/rules", :method => :post, :'data-ajax' => 'false'} %iv{ 'data-role' => :fieldcontain } %abel{ :for => :name} Protocol: %nput{ :type => :text, :id => :protocol, :name => :protocol, :value => '', :size => 10 } %iv{ 'data-role' => :fieldcontain } %abel{ :for => :name} From port: %nput{ :type => :text, :id => :port_from, :name => :port_from, :value => '', :size => 10 } %iv{ 'data-role' => :fieldcontain } %abel{ :for => :name} To port: %nput{ :type => :text, :id => :port_to, :name => :port_to, :value => '', :size => 10 } %iv{ 'data-role' => :fieldcontain } %{ :href => "javascript:;", :onclick => "make_fields('address');"} Add source IP address %r %{ :href => "javascript:;", :onclick => "make_fields('group');"} Add source group %r #new_rule_form_fields %utton{ :type => :submit} Create