19 |
<% $action->form_field('sql_query') %> |
<% $action->form_field('sql_query') %> |
20 |
<% $action->form_field('database') %> |
<% $action->form_field('database') %> |
21 |
<% Jifty->web->form->submit( label => 'Try it!' ) %> |
<% Jifty->web->form->submit( label => 'Try it!' ) %> |
|
<% Jifty->web->form->end() %> |
|
|
</&> |
|
22 |
|
|
23 |
% if ( defined($sth) ) { |
% if ( defined($sth) ) { |
24 |
|
|
25 |
|
<hr/> |
26 |
|
|
27 |
<table cellpadding="3" cellspacing="0" border="1"> |
<table cellpadding="3" cellspacing="0" border="1"> |
28 |
|
|
29 |
<tr> |
<tr> |
42 |
|
|
43 |
</table> |
</table> |
44 |
|
|
45 |
|
<hr/> |
46 |
|
|
47 |
|
<%perl> |
48 |
|
my $save = Jifty->web->new_action( |
49 |
|
class => 'CreatePage', |
50 |
|
arguments => { |
51 |
|
sql_query => $action->form_field('sql_query'), |
52 |
|
on_database => $action->form_field('database'), |
53 |
|
} |
54 |
|
); |
55 |
|
|
56 |
|
</%perl> |
57 |
|
|
58 |
|
<% $save->form_field('name') %> |
59 |
|
<% $save->button( label => 'Save' ) %> |
60 |
|
|
61 |
% } |
% } |
62 |
|
|
63 |
|
<% Jifty->web->form->end() %> |
64 |
|
</&> |
65 |
|
|