Begin to i18n the Site Starter. Added a Save tag to the WebGUI
namespace so we don't have to put one in every other namespace anymore.
This commit is contained in:
parent
6edcd7ab61
commit
c59b48a3db
2 changed files with 87 additions and 125 deletions
|
|
@ -151,19 +151,18 @@ sub handler {
|
||||||
$session->setting->set('companyName',$form->text("companyName")) if ($form->get("companyName"));
|
$session->setting->set('companyName',$form->text("companyName")) if ($form->get("companyName"));
|
||||||
$session->setting->set('companyURL',$form->url("companyURL")) if ($form->get("companyURL"));
|
$session->setting->set('companyURL',$form->url("companyURL")) if ($form->get("companyURL"));
|
||||||
$session->setting->set('companyEmail',$form->email("companyEmail")) if ($form->get("companyEmail"));
|
$session->setting->set('companyEmail',$form->email("companyEmail")) if ($form->get("companyEmail"));
|
||||||
$legend = "Site Starter";
|
$legend = $i18n->get('site starter title');
|
||||||
$output .= ' <p>Do you wish to use the WebGUI Site Starter, which will lead you through options to create a custom
|
$output .= ' <p>'.$i18n->get('site starter body').'</p>
|
||||||
look and feel for your site, and set up some basic content areas?</p>
|
<p><a href="'.$session->url->gateway(undef, "step=7").'">'.$i18n->get('no thanks').'</a>
|
||||||
<p><a href="'.$session->url->gateway(undef, "step=7").'">No, thanks.</a>
|
<a href="'.$session->url->gateway(undef,"step=4").'">'.$i18n->get('yes please').'</a></p>
|
||||||
<a href="'.$session->url->gateway(undef,"step=4").'">Yes, please!</a></p>
|
|
||||||
';
|
';
|
||||||
}
|
}
|
||||||
elsif ($session->form->process("step") eq "4") {
|
elsif ($session->form->process("step") eq "4") {
|
||||||
my $f = WebGUI::HTMLForm->new($session,action=>$session->url->gateway());
|
my $f = WebGUI::HTMLForm->new($session,action=>$session->url->gateway());
|
||||||
$f->hidden( name=>"step", value=>"5",);
|
$f->hidden( name=>"step", value=>"5",);
|
||||||
$f->file(name=>"logo", label=>"Logo");
|
$f->file(name=>"logo", label=>$i18n->get('logo'));
|
||||||
$f->submit;
|
$f->submit;
|
||||||
$legend = "Upload Your Logo";
|
$legend = $i18n->get('upload logo');
|
||||||
$output .= $f->print;
|
$output .= $f->print;
|
||||||
}
|
}
|
||||||
elsif ($session->form->process("step") eq "5") {
|
elsif ($session->form->process("step") eq "5") {
|
||||||
|
|
@ -198,7 +197,7 @@ sub handler {
|
||||||
$style->setScript($url->extras('/colorpicker/colorpicker.js'),{ type=>'text/javascript' });
|
$style->setScript($url->extras('/colorpicker/colorpicker.js'),{ type=>'text/javascript' });
|
||||||
$style->setScript($url->extras("/styleDesigner/styleDesigner.js"), {type=>"text/javascript"});
|
$style->setScript($url->extras("/styleDesigner/styleDesigner.js"), {type=>"text/javascript"});
|
||||||
$style->setLink($url->extras("/styleDesigner/styleDesigner.css"), {rel=>"stylesheet", type=>"text/css"});
|
$style->setLink($url->extras("/styleDesigner/styleDesigner.css"), {rel=>"stylesheet", type=>"text/css"});
|
||||||
$legend = "Style Designer";
|
$legend = $i18n->get("style designer");
|
||||||
$output .= '
|
$output .= '
|
||||||
<form method="post">
|
<form method="post">
|
||||||
<input type="submit" value="Save">
|
<input type="submit" value="Save">
|
||||||
|
|
@ -207,7 +206,7 @@ sub handler {
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
document.write(WebguiStyleDesigner.draw("^c;","'.$logoUrl.'","'.$storageId.'"));
|
document.write(WebguiStyleDesigner.draw("^c;","'.$logoUrl.'","'.$storageId.'"));
|
||||||
</script>
|
</script>
|
||||||
<input type="submit" value="Save">
|
<input type="submit" value="'.$i18n->get('save').'">
|
||||||
</form>
|
</form>
|
||||||
';
|
';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1901,91 +1901,6 @@ This group could then be named "Employees in HMO 1", and would allow you to rest
|
||||||
lastUpdated => 1056151382
|
lastUpdated => 1056151382
|
||||||
},
|
},
|
||||||
|
|
||||||
'890' => {
|
|
||||||
message => q|<p>WebGUI has a sub-system that can create tabs. You'll see these in complex forms such as page editing. In order to make the tabs system look good and match your site, you'll need to add a section to your style's style sheet specifically for the tabs.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>The following style sheet classes are available:
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p><b>.tab</b><br />
|
|
||||||
The default look of each tab.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p><b>div.tabs</b><br />
|
|
||||||
This also sets some properties for all of the tabs. This should be used for the text labels in the tabs.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p><b>.tabBody</b><br />
|
|
||||||
The content area for each tab. This is where the form will show up. Note that for best results the background color of this should match the background color of .tabActive.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p><b>.tabHover</b><br />
|
|
||||||
The look of a tab as the mouse hovers over it.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p><b>.tabActive</b><br />
|
|
||||||
The look of the tab that is currently visible.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p><i>Examples</i><br />
|
|
||||||
You can use these instead of creating your own if you wish. Or just use these as guidelines for creating your own.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<table width="100%"><tr><td valign="top">
|
|
||||||
<b>White or Light Colored Styles</b>
|
|
||||||
<pre>
|
|
||||||
.tab {
|
|
||||||
border: 1px solid black;
|
|
||||||
background-color: #eeeeee;
|
|
||||||
}
|
|
||||||
.tabBody {
|
|
||||||
border: 1px solid black;
|
|
||||||
border-top: 1px solid black;
|
|
||||||
border-left: 1px solid black;
|
|
||||||
background-color: #dddddd;
|
|
||||||
}
|
|
||||||
div.tabs {
|
|
||||||
line-height: 15px;
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
|
||||||
.tabHover {
|
|
||||||
background-color: #cccccc;
|
|
||||||
}
|
|
||||||
.tabActive {
|
|
||||||
background-color: #dddddd;
|
|
||||||
}
|
|
||||||
</pre>
|
|
||||||
</td><td valign="top">
|
|
||||||
<b>Black or Dark Colored Styles</b>
|
|
||||||
<pre>
|
|
||||||
.tab {
|
|
||||||
border: 1px solid white;
|
|
||||||
background-color: #333333;
|
|
||||||
}
|
|
||||||
.tabBody {
|
|
||||||
border: 1px solid white;
|
|
||||||
border-top: 1px solid white;
|
|
||||||
border-left: 1px solid white;
|
|
||||||
background-color: #444444;
|
|
||||||
}
|
|
||||||
div.tabs {
|
|
||||||
line-height: 15px;
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
|
||||||
.tabHover {
|
|
||||||
background-color: #555555;
|
|
||||||
}
|
|
||||||
.tabActive {
|
|
||||||
background-color: #444444;
|
|
||||||
}
|
|
||||||
</pre>
|
|
||||||
</td></tr></table>
|
|
||||||
|
|
||||||
|,
|
|
||||||
lastUpdated => 1146592150
|
|
||||||
},
|
|
||||||
|
|
||||||
'440' => {
|
'440' => {
|
||||||
message => q|Contact Information|,
|
message => q|Contact Information|,
|
||||||
lastUpdated => 1031514049
|
lastUpdated => 1031514049
|
||||||
|
|
@ -4017,6 +3932,54 @@ LongTruncOk=1</p>
|
||||||
context => q{Description for site setting},
|
context => q{Description for site setting},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
'site starter title' => {
|
||||||
|
message => q{Site Starter},
|
||||||
|
lastUpdated => 0,
|
||||||
|
context => q{Title for the site starter screen.},
|
||||||
|
},
|
||||||
|
|
||||||
|
'site starter body' => {
|
||||||
|
message => q{Do you wish to use the WebGUI Site Starter, which will lead you through options to create a custom look and feel for your site, and set up some basic content areas?},
|
||||||
|
lastUpdated => 0,
|
||||||
|
context => q{Body for the site starter screen.},
|
||||||
|
},
|
||||||
|
|
||||||
|
'no thanks' => {
|
||||||
|
message => q{No, thanks},
|
||||||
|
lastUpdated => 0,
|
||||||
|
context => q{Option in site starter to not run it},
|
||||||
|
},
|
||||||
|
|
||||||
|
'yes please' => {
|
||||||
|
message => q{Yes, please},
|
||||||
|
lastUpdated => 0,
|
||||||
|
context => q{Option in site starter to run the site starter},
|
||||||
|
},
|
||||||
|
|
||||||
|
'logo' => {
|
||||||
|
message => q{Logo},
|
||||||
|
lastUpdated => 0,
|
||||||
|
context => q{Label for the Logo upload field in the site starter.},
|
||||||
|
},
|
||||||
|
|
||||||
|
'upload logo' => {
|
||||||
|
message => q{Upload Your Logo},
|
||||||
|
lastUpdated => 0,
|
||||||
|
context => q{Title for the Logo upload screen in the site starter.},
|
||||||
|
},
|
||||||
|
|
||||||
|
'style designer' => {
|
||||||
|
message => q{Style Designer},
|
||||||
|
lastUpdated => 0,
|
||||||
|
context => q{Title for the style designer screen in the site starter.},
|
||||||
|
},
|
||||||
|
|
||||||
|
'save' => {
|
||||||
|
message => q{Save},
|
||||||
|
lastUpdated => 0,
|
||||||
|
context => q{General purpose, similar to submit.},
|
||||||
|
},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue