diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_pf_add.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_pf_add.html.ep index e86c920..896517c 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/partials/_pf_add.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/partials/_pf_add.html.ep @@ -1,95 +1,118 @@
- %= dumper $c->current_route - %= dumper $c->stash("ret") -
% } - - %= form_for '/portforwardingb' => (method => 'POST') => begin -- %=l "pf_SUMMARY_ADD_DESC" -
-
- %= submit_button "$btn", class => ""
-
+ <%= dumper $c->current_route %> + <%= dumper $c->stash("ret") %> ++ % } + +
<%= dumper $c->current_route %> <%= dumper $c->stash("ret") %> @@ -23,11 +22,17 @@ <%= l 'pf_SUMMARY_REMOVE_DESC' %>
  | +  | + -
---|---|
- <% l 'pf_LABEL_PROTOCOL' %> + <%= l 'pf_LABEL_PROTOCOL' %> | <%= $proto %> @@ -35,7 +40,7 @@ |
- <% l 'pf_LABEL_SOURCE_PORT' %> + <%= l 'pf_LABEL_SOURCE_PORT' %> | <%= $sport %> @@ -43,7 +48,7 @@ |
- <% l 'pf_LABEL_DESTINATION_HOST' %> + <%= l 'pf_LABEL_DESTINATION_HOST' %> | <%= $dport %> @@ -51,7 +56,7 @@ |
- <% l 'pf_LABEL_DESTINATION_PORT' %> + <%= l 'pf_LABEL_DESTINATION_PORT' %> | <%= $dhost %> @@ -59,7 +64,7 @@ |
- <% l 'pf_RULE_COMMENT' %> + <%= l 'pf_RULE_COMMENT' %> | <%= $cmmnt %> @@ -67,7 +72,7 @@ |
- <% l 'pf_ALLOW_HOSTS' %> + <%= l 'pf_ALLOW_HOSTS' %> | <%= $allow %> @@ -76,9 +81,13 @@ |
+ %= dumper { ret_data => \%ret } ++ % } % if ($ret{ret} eq "") { <%= $c->render_to_string(inline => l('pf_FIRST_PAGE_DESCRIPTION')); %> + % } elsif (index($ret{ret},"SUCCESS") != -1) {