Bug 14676: (QA followup) remove useless patroncards-menu.inc file
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / installer / step3.tt
1 [% INCLUDE 'doc-head-open.inc' %]<title>Koha &rsaquo; Web installer &rsaquo; Step 3</title>
2 [% IF ( finish ) %]<meta http-equiv="refresh" content="10; url=/cgi-bin/koha/mainpage.pl">[% END %]
3 [% INCLUDE 'installer-doc-head-close.inc' %]
4 <div>
5 <h1 id="logo"><img alt="Koha" src="[% interface %]/[% theme %]/img/koha.org-logo.gif" /> Web installer &rsaquo; Step 3</h1>
6
7 [% IF ( selectframeworks ) %]
8     <script type="text/javascript">
9     //<![CDATA[
10
11     var surl = unescape(window.location.pathname);
12
13     function doLoad()
14     {
15         // the timeout value should be the same as in the "refresh" meta-tag
16         setTimeout( "refresh()", 2*1000 );
17     }
18
19     function refresh(value)
20     {
21         //  The argument to the location.reload function determines
22         //  if the browser should retrieve the document from the
23         //  web-server.  In our example all we need to do is cause
24         //  the JavaScript block in the document body to be
25         //  re-evaluated.  If we needed to pull the document from
26         //  the web-server again (such as where the document contents
27         //  change dynamically) we would pass the argument as 'true'.
28         //
29         surl=surl+'?step=3&op=selectframeworks&fwklanguage='+value;
30
31         window.location.replace( surl );
32     }
33
34     function selectAllFrameworks()
35     {
36         //  A handy short link that selects all available checkboxes
37         //  on the page.
38         //
39         var checkboxes = document.getElementsByTagName("input");
40         for (var i = 0; i < checkboxes.length; i++)
41         {
42             if (checkboxes[i].type == 'checkbox')
43             {
44                 checkboxes[i].checked = true;
45             }
46         }
47
48         //  Prevent event propergation.
49         return false;
50     }
51
52     function Hide(link)
53     {
54         //  Toggle the display of a given element on the page.
55         //
56         subfield = document.getElementById('bloc'+link);
57         var initstyle = subfield.style.display;
58         if (initstyle == 'block') subfield.style.display = 'none' ;
59         if (initstyle == 'none') subfield.style.display = 'block' ;
60     }
61
62     //]]>
63     </script>
64 [% END %]
65 [% IF ( finish ) %]
66     <h1>Congratulations, installation complete</h1>
67     <p>If this page does not redirect in 5 seconds, click <a href="/">here</a>.</p>
68 [% END %]
69 [% IF ( choosemarc ) %]
70     <h2 align="center">Select your MARC flavor</h2>
71     <form name="frameworkselection" method="post" action="install.pl">
72     <input type="hidden" name="step" value="3" />
73     <input type="hidden" name="op" value="selectframeworks" />
74     <p>
75     [% FOREACH flavourloo IN flavourloop %]
76     <div>
77             [% IF ( flavourloo.checked ) %]
78                 <input type="radio" name="marcflavour" value="[% flavourloo.code %]" checked /> [% flavourloo.label %] <br/>
79             [% ELSE %]
80                 <input type="radio" name="marcflavour" value="[% flavourloo.code %]" /> [% flavourloo.label %] <br/>
81             [% END %]
82     </div>
83     [% END %]
84     </p>
85     <p> Click 'Next' to continue <input value="Next &gt;&gt;" type="submit" /></p>
86     </form>
87 [% END %]
88
89 [% IF ( selectframeworks ) %]
90     <h2 align="center">Selecting Default Settings</h2>
91     <script type="text/javascript">
92         var linklabel = _("Select all sample data");
93         document.write('<p><a href="#" onclick="return selectAllFrameworks();">'+linklabel+'</a></p>');
94     </script>
95     <form name="frameworkselection" method="post" action="install.pl">
96     <input type="hidden" name="step" value="3" />
97     <input type="hidden" name="op" value="addframeworks" />
98
99     [% IF ( frameworksloop ) %]
100     <h2>MARC frameworks: [% marcflavour %]</h2>
101     [% IF ( en_marc_frameworks ) %]
102         <h4><span class="error">No MARC frameworks are available for your language.
103                 Defaulting to the frameworks supplied for English (en)<span></h4>
104     [% END %]
105     [% FOREACH frameworksloo IN frameworksloop %]
106     <div>
107     <h3>[% frameworksloo.label %]</h3>
108     [% FOREACH framework IN frameworksloo.frameworks %]
109         <table style="border:1px;vertical-align:top;">
110         <tr>
111         <td style="vertical-align:top;">
112             [% IF ( framework.checked ) %]
113                 <input type="checkbox" name="framework" value="[% framework.fwkfile %]" checked="checked" id="[% framework.fwkname %]" />
114             [% ELSE %]
115                 <input type="checkbox" name="framework" value="[% framework.fwkfile %]" id="[% framework.fwkname %]" />
116             [% END %]
117         </td>
118         <td>
119             <label for="[% framework.fwkname %]">
120                 [% framework.fwkdescription %]
121                 <em>([% framework.fwkname %])</em>
122             </label>
123         </td>
124         </table>
125     [% END %]
126     </div>
127     [% END %]
128     <h2>Other data</h2>
129     [% END %]
130     [% IF ( en_sample_data ) %]
131         <h4><span class="error">No sample data and settings are available for your language.
132                 Defaulting to the samples supplied for English (en)<span></h4>
133     [% END %]
134     [% FOREACH levelloo IN levelloop %]
135     <div>
136     <h3>[% levelloo.label %]</h3>
137     [% FOREACH framework IN levelloo.frameworks %]
138         <table style="border:1px;vertical-align:top;">
139         <tr>
140         <td style="vertical-align:top;">
141             [% IF ( framework.checked ) %]
142                 <input type="checkbox" name="framework" value="[% framework.fwkfile %]" checked="checked" id="[% framework.fwkname %]" />
143             [% ELSE %]
144                 <input type="checkbox" name="framework" value="[% framework.fwkfile %]" id="[% framework.fwkname %]" />
145             [% END %]
146         </td>
147         <td>
148             <label for="[% framework.fwkname %]">
149                 [% framework.fwkdescription %]
150                 <em>([% framework.fwkname %])</em>
151             </label>
152         </td>
153         </table>
154     [% END %]
155     </div>
156     [% END %]
157     <p>When you've made your selections, please click 'Import' below to begin the process. It may take a while to complete,
158     please be patient.</p>
159     <p><input type="submit" value="Import &gt;&gt;" />
160     </p>
161     </form>
162 [% END %]
163
164
165 [% IF ( addframeworks ) %]
166     [% FOREACH lis IN list %]
167     <h3>[% lis.level %] data added</h3>
168     <ul>
169     [% FOREACH fwklis IN lis.fwklist %]
170         <li>[% fwklis.fwkname %][% IF ( fwklis.error ) %]<br /><span class="error">[% fwklis.error %]</span>[% END %] </li>
171     [% END %]
172     </ul>
173     [% END %]
174     <h3>All done!</h3>
175     <p>Installation complete.<br />
176         <p>Click on 'Finish' to complete and load the Koha Staff Interface.
177         <form name="finish">
178         <input type="hidden" name="step" value="3" />
179         <input type="hidden" name="op" value="finish" />
180         <input type="submit" value="Finish" /></form>
181         </p>
182     </p>
183 [% END %]
184
185
186 [% IF ( importdatastructure ) %]
187     [% IF ( error ) %]
188         <p>The following error occurred while importing the database structure:</p>
189         <p class="error">[% error %] </p>
190         <p>Please contact your system administrator</p>
191     [% ELSE %]
192         <h2 align="center">Success</h2>
193         <ul>
194         <li>Database tables created</li>
195         </ul>
196         <form action="install.pl">
197         <input type="hidden" name="step" value="3" />
198             <p> Click 'Next' to continue <input value="Next &gt;&gt;" type="submit" /></p>
199         </form>
200     [% END %]
201 [% END %]
202
203
204 [% IF ( proposeimport ) %]
205     <p>Now we're ready to create the database tables and fill them with some default data.</p>
206     <form action="install.pl">
207     <input type="hidden" name="step" value="3" />
208     <input type="hidden" name="op" value="importdatastructure" />
209     <p> Click 'Next' to continue <input value="Next &gt;&gt;" type="submit" /></p>
210     </form>
211 [% END %]
212
213
214 [% IF ( default ) %]
215     [% IF ( upgrading ) %]
216         <p>
217             We are upgrading from Koha [% dbversion %] to [% kohaversion %], you must <a href="install.pl?step=3&amp;op=updatestructure" class="button">update your database</a>
218         </p>
219     [% ELSE %]
220         <p>We are ready to do some basic configuration. Please
221             <a href="install.pl?step=3&amp;op=choosemarc" class="button">install basic configuration settings</a>
222             to continue the installation.
223         </p>
224     [% END %]
225 [% END %]
226
227
228
229 [% IF ( updatestructure ) %]
230   <div><h2 align="center">Updating database structure</h2>
231   [% IF ( has_update_succeeds ) %]
232   <p>Update report :</p>
233     <ul>
234       [% FOREACH update_repor IN update_report %]
235           <li>[% update_repor.line |html %]</li>
236       [% END %]
237     </ul>
238   [% END %]
239   [% IF ( has_update_errors ) %]
240   <p>Update errors :</p>
241     <ul>
242       [% FOREACH update_error IN update_errors %]
243           <li class="update_error">[% update_error.line |html %]</li>
244       [% END %]
245     </ul>
246   [% END %]
247  [% UNLESS ( has_update_errors ) %]
248     <p>Everything went OK, update done.</p>
249   [% END %]
250 <a href="install.pl?step=3&amp;op=finished" class="button">Continue to log in to Koha</a>
251   </div>
252 [% END %]
253
254 </div>
255 </body>
256 </html>