@@ -3,13 +3,15 @@ package WebGUI::Wizard::Setup;
3
3
use strict;
4
4
use base ' WebGUI::Wizard' ;
5
5
6
+ use WebGUI::Wizard::HomePage;
7
+
6
8
=head1 NAME
7
9
8
10
WebGUI::Wizard::Setup -- Initial site setup
9
11
10
12
=head1 DESCRIPTION
11
13
12
- A WebGUI::Wizard to perform initial site setup tasks like defining the Admin
14
+ A WebGUI::Wizard to perform initial site setup tasks like defining the Admin
13
15
account, entering basic information, and choosing a default style.
14
16
15
17
=head1 METHODS
@@ -27,7 +29,7 @@ sub _get_steps {
27
29
28
30
# ----------------------------------------------------------------------------
29
31
30
- =head2 canView ( )
32
+ =head2 canView ( )
31
33
32
34
A user can view this wizard if the site is newly created or if they are the
33
35
admin user
@@ -39,13 +41,13 @@ sub canView {
39
41
my $session = $self -> session;
40
42
41
43
# Only specialState="init" or admin user
42
- return $session -> setting-> get(' specialState' ) eq ' init'
44
+ return $session -> setting-> get(' specialState' ) eq ' init'
43
45
|| $session -> user-> getId eq ' 3' ;
44
46
}
45
47
46
48
# ----------------------------------------------------------------------------
47
49
48
- =head2 wrapStyle ( $output )
50
+ =head2 wrapStyle ( $output )
49
51
50
52
Wrap the output in the wizard style.
51
53
@@ -81,11 +83,11 @@ body {
81
83
}
82
84
83
85
h1 {
84
- position: absolute;
86
+ position: absolute;
85
87
top: 10px;
86
88
padding: 0;
87
89
margin: 0;
88
- padding-left: 120px;
90
+ padding-left: 120px;
89
91
90
92
background: url(' . $session -> url-> extras(' wg.png' ) . ' ) no-repeat;
91
93
line-height: 100px;
125
127
126
128
# ----------------------------------------------------------------------------
127
129
128
- =head2 www_adminAccount ( )
130
+ =head2 www_adminAccount ( )
129
131
130
132
Display the form to configure the admin account
131
133
@@ -179,7 +181,7 @@ sub www_adminAccount {
179
181
180
182
# ----------------------------------------------------------------------------
181
183
182
- =head2 www_adminAccountSave ( )
184
+ =head2 www_adminAccountSave ( )
183
185
184
186
Process the form and update the Admin account
185
187
@@ -225,7 +227,7 @@ sub www_adminAccountSave {
225
227
226
228
# ----------------------------------------------------------------------------
227
229
228
- =head2 www_companyInformation ( )
230
+ =head2 www_companyInformation ( )
229
231
230
232
Enter basic company information
231
233
@@ -268,7 +270,7 @@ sub www_companyInformation {
268
270
269
271
# ----------------------------------------------------------------------------
270
272
271
- =head2 www_companyInformationSave ( )
273
+ =head2 www_companyInformationSave ( )
272
274
273
275
Update the company information
274
276
@@ -286,7 +288,7 @@ sub www_companyInformationSave {
286
288
287
289
# ----------------------------------------------------------------------------
288
290
289
- =head2 www_siteStats ( )
291
+ =head2 www_siteStats ( )
290
292
291
293
Opt-in to the global WebGUI statistics
292
294
@@ -321,7 +323,7 @@ sub www_siteStats {
321
323
322
324
# ----------------------------------------------------------------------------
323
325
324
- =head2 www_siteStatsSave ( )
326
+ =head2 www_siteStatsSave ( )
325
327
326
328
Opt-in to the global WebGUI statistics
327
329
@@ -337,7 +339,7 @@ sub www_siteStatsSave {
337
339
338
340
# ----------------------------------------------------------------------------
339
341
340
- =head2 www_defaultStyle ( )
342
+ =head2 www_defaultStyle ( )
341
343
342
344
Choose the default site style
343
345
@@ -349,7 +351,7 @@ sub www_defaultStyle {
349
351
350
352
# ----------------------------------------------------------------------------
351
353
352
- =head2 www_defaultStyleSave ( )
354
+ =head2 www_defaultStyleSave ( )
353
355
354
356
Save the default style to all existing pages and the user function style
355
357
@@ -369,7 +371,7 @@ sub www_defaultStyleSave {
369
371
370
372
# ----------------------------------------------------------------------------
371
373
372
- =head2 www_cleanup ( )
374
+ =head2 www_cleanup ( )
373
375
374
376
Give the user a choice to do the Home Page wizard
375
377
0 commit comments