startup cleaning
This commit is contained in:
parent
a9b4ba168e
commit
38d4631312
3 changed files with 27 additions and 14 deletions
|
|
@ -113,7 +113,8 @@ sub www_pickStyle {
|
|||
my $f = $self->getForm;
|
||||
my $i18n = WebGUI::International->new( $session, "WebGUI" );
|
||||
|
||||
my $output = '<h1>' . $i18n->get('1073') . '</h1>';
|
||||
my $output = '<h1>' . $i18n->get('pick style') . '</h1>'
|
||||
. '<p>' . $i18n->get('pick style description') . '</p>';
|
||||
|
||||
my @styleIds
|
||||
= $session->db->buildArray(
|
||||
|
|
@ -144,8 +145,9 @@ sub www_pickStyle {
|
|||
my $class = ++$row % 2 ? " odd" : "";
|
||||
|
||||
# Prepare the synopsis
|
||||
my $synopsis = WebGUI::HTML::format( $style->get('synopsis') );
|
||||
my $synopsis = $style->get('synopsis');
|
||||
$synopsis =~ s{(https?://\S+)}{<a href="$1">$1</a>}g;
|
||||
$synopsis = WebGUI::HTML::format( $synopsis );
|
||||
|
||||
$f->raw(
|
||||
'<div class="stylePicker' . $class . '"><label><input type="radio" name="styleTemplateId" value="' . $style->getId . '"/>'
|
||||
|
|
|
|||
|
|
@ -399,14 +399,13 @@ sub www_cleanup {
|
|||
$starterForm->hidden( name => "styleTemplateId", value => $self->get('styleTemplateId') );
|
||||
$starterForm->submit( value => $i18n->get( 'yes please' ) );
|
||||
|
||||
my $output = '<h1>' . $i18n->get('site starter title') . '</h1>';
|
||||
$output .= ' <p>' . $i18n->get('site starter body') . '</p>'
|
||||
my $homeForm = WebGUI::HTMLForm->new( $session, { action => $session->url->gateway, method => "GET" } );
|
||||
$homeForm->submit( value => $i18n->get('no thanks') );
|
||||
|
||||
my $output = '<h1>' . $i18n->get('page builder title') . '</h1>';
|
||||
$output .= ' <p>' . $i18n->get('page builder body') . '</p>'
|
||||
. '<div style="float: left">' . $starterForm->print . '</div>'
|
||||
. sprintf(
|
||||
'<div style="float: left"><a href="%s">%s</a></div>',
|
||||
$session->url->gateway,
|
||||
$i18n->get('no thanks'),
|
||||
)
|
||||
. '<div style="float: left">' . $homeForm->print . '</div>'
|
||||
. '<div style="clear: both"> </div>'
|
||||
;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue