--- lib/A3C/View/Strix.pm 2008/06/16 21:29:50 182 +++ lib/A3C/View/Strix.pm 2008/06/16 21:33:59 183 @@ -53,6 +53,11 @@ title is _('Strix name differences'); + render_region( + name => 'selected-instances', + path => '/strix/selected-instances' + ); + my $name_diff = A3C::SQL->new({ query => qq{ select instance,hreduorgurl, @@ -66,13 +71,15 @@ table { row { + th {} th { _('Instance') } th { _('Strix instance name') } th { _('hrEduOrg.o') } }; while ( my $row = $name_diff->next ) { row { - cell { hyperlink( url => 'http://' . $row->hreduorgurl, label => $row->instance ) } + cell { show( 'instance-op', 'Create', '+', $row->instance ) } + cell { $row->instance } cell { $row->_site_name } cell { $row->o } } @@ -120,6 +127,11 @@ title is _('Sitemap'); + render_region( + name => 'selected-instances', + path => '/strix/selected-instances' + ); + my $site_id = get('site_id') || 1; my $sitemap = strix->site_navigation( $site_id ); @@ -145,6 +157,7 @@ ul { foreach my $p ( @{ $c->{children} } ) { li { + { class is $p->{class} }; full_url( $p ); children( $p ); } @@ -209,12 +222,12 @@ sticky_on_success => 1, sticky_on_failure => 1, arguments => { - strix => get('strix') + instance => get('instance') } ); form { - render_action( $action => [ 'strix', 'sql' ] ); + render_action( $action => [ 'instance', 'sql' ] ); form_submit( label => _('Execute SQL') ); }; @@ -317,13 +330,18 @@ if ( $selected->count > 0 ) { - div { _('%1 instances selected', $selected->count ) } + div { _('%1 instances selected', $selected->count ) }; table { while (my $s = $selected->next) { row { - cell { tt { $s->strix->instance } } - cell { $s->strix->_site_name } - cell { show( 'instance-op', 'Delete', '-', $s->strix->instance ) } + cell { tt { + hyperlink( + url => '?instance=' . $s->instance->instance, + label => $s->instance->instance + ) + } } + cell { $s->instance->_site_name } + cell { show( 'instance-op', 'Delete', '-', $s->instance->instance ) } } } }