Correction to include in bookfund.tmpl; Formatting input form in systempreferences...
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / systempreferences.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Administration &rsaquo;
3 <!-- TMPL_IF name="add_form" --><!-- TMPL_IF NAME="modify" -->Modify system preference '<!-- TMPL_VAR NAME="searchfield" -->'<!-- TMPL_ELSE -->Add a system preference<!-- /TMPL_IF --><!-- /TMPL_IF --><!-- TMPL_IF name="add_validate" -->Data Added<!-- /TMPL_IF -->
4 <!-- TMPL_IF name="delete_confirm" -->Confirm Deletion of Parameter '<!-- TMPL_VAR name="searchfield" -->'<!-- /TMPL_IF --><!-- TMPL_IF name="delete_confirmed" -->Parameter Deleted<!-- /TMPL_IF --><!-- TMPL_IF name="else" -->Preferences<!-- /TMPL_IF --></title>
5 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
6 <script type="text/javascript">
7 //<![CDATA[
8         //
9         function isNotNull(f,noalert) {
10             if (f.value.length ==0) {
11     return false;
12             }
13             return true;
14         }
15         //
16         function toUC(f) {
17             var x=f.value.toUpperCase();
18             f.value=x;
19             return true;
20         }
21         //
22         function isNum(v,maybenull) {
23         var n = new Number(v.value);
24         if (isNaN(n)) {
25             return false;
26             }
27         if (maybenull==0 && v.value=='') {
28             return false;
29         }
30         return true;
31         }
32         //
33         function isDate(f) {
34             var t = Date.parse(f.value);
35             if (isNaN(t)) {
36                 return false;
37             }
38         }
39         //
40         function Check(f) {
41             var ok=1;
42             var _alertString="";
43             var alertString2;
44             if (f.variable.value.length==0) {
45                 _alertString += "\n- " + _("variable missing");
46             }
47             if (f.value.value.length==0) {
48                 _alertString += "\n- " + _("value missing");
49             }
50             if (_alertString.length==0) {
51                 document.Aform.submit();
52             } else {
53                 alertString2  = _("Form not submitted because of the following problem(s)");
54                 alertString2 += "\n------------------------------------------------------------------------------------\n";
55                 alertString2 += _alertString;
56                 alert(alertString2);
57             }
58         }
59         //]]>
60 </script>
61 </head>
62 <body>
63 <!-- TMPL_INCLUDE NAME="header.inc" -->
64 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
65
66 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; <!-- TMPL_IF name="add_form" --><!-- TMPL_IF NAME="modify" -->Modify system preference '<!-- TMPL_VAR NAME="searchfield" -->'<!-- TMPL_ELSE -->Add a system preference<!-- /TMPL_IF --><!-- /TMPL_IF --><!-- TMPL_IF name="add_validate" -->Data Added<!-- /TMPL_IF -->
67 <!-- TMPL_IF name="delete_confirm" -->Confirm Deletion of Parameter '<!-- TMPL_VAR name="searchfield" -->'<!-- /TMPL_IF --><!-- TMPL_IF name="delete_confirmed" -->Parameter Deleted<!-- /TMPL_IF --><!-- TMPL_IF name="else" -->Preferences<!-- /TMPL_IF --></div>
68
69 <div id="doc3" class="yui-t2">
70    
71    <div id="bd">
72         <div id="yui-main">
73         <div class="yui-b">
74
75
76
77 <!-- TMPL_IF NAME="add_form" -->
78     
79         
80         <form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
81                 
82         <fieldset class="rows"><legend><!-- TMPL_IF NAME="modify" -->
83             Modify a system preference
84         <!-- TMPL_ELSE -->
85             Add a system preference
86         <!-- /TMPL_IF --></legend><ol>
87             <li><label for="explanation">Explanation: </label><input type="text" name="explanation" id="explanation" size="60" value="<!-- TMPL_VAR NAME="explanation" escape="HTML" -->" /><input type="hidden" name="op" value="add_validate" /></li>
88             <li><!-- TMPL_IF NAME="searchfield" --><td><label>Variable</label><!-- TMPL_VAR NAME="searchfield" --><input type="hidden" name="variable" value="<!-- TMPL_VAR NAME="searchfield" -->">
89             <!-- TMPL_ELSE --><td><label for="variable">Variable</label><input type="text" name="variable" id="variable" size="60" /><!-- /TMPL_IF --></li>
90             <li><label for="value">Value</label><!-- TMPL_IF NAME="type-free" -->
91                     <textarea id="value" name="value" cols="<!-- TMPL_VAR NAME="fieldlength" -->"><!-- TMPL_VAR NAME="value" escape="HTML" --></textarea>
92                 <!-- /TMPL_IF -->
93                 <!-- TMPL_IF NAME="type-textarea" -->
94                     <textarea name="value" id="value" rows="<!--TMPL_VAR NAME="rows" -->" cols="<!-- TMPL_VAR NAME="cols" -->"><!-- TMPL_VAR NAME="value" escape="HTML" --></textarea>
95                 <!-- /TMPL_IF -->
96                 <!-- TMPL_IF NAME="type-choice" -->
97                     <select name="value" id="value">
98                         <!-- TMPL_LOOP NAME="options" -->
99                             <!-- TMPL_IF NAME="selected" -->
100                                 <option value="<!-- TMPL_VAR NAME="option" -->" selected="selected">
101                             <!-- TMPL_ELSE -->
102                                 <option value="<!-- TMPL_VAR NAME="option" -->">
103                             <!-- /TMPL_IF --><!-- TMPL_VAR NAME="option" --></option>
104                         <!-- /TMPL_LOOP -->
105                     </select>
106                 <!-- /TMPL_IF -->
107                 <!-- TMPL_IF NAME="type-yesno" -->
108                     <!-- TMPL_IF NAME="value-yes" -->
109                     <input type="radio" name="value" id="value" value="1" checked="checked"><!-- TMPL_ELSE --><input type="radio" name="value" id="value" value="1" /><!-- /TMPL_IF -->ON
110                 <!-- TMPL_IF NAME="value-no" -->        
111                     <input type="radio" name="value" value="0" checked="checked" /><!-- TMPL_ELSE --><input type="radio" name="value" value="0" /><!-- /TMPL_IF -->OFF<!-- /TMPL_IF -->
112                 </li>
113         </ol></fieldset>
114         <fieldset class="action"><input type="submit" value="<!-- TMPL_IF NAME="modify" -->Save Changes<!-- TMPL_ELSE -->Add this Preference<!-- /TMPL_IF -->"> <input type="button"  value="Cancel" onclick="location.href='<!-- TMPL_VAR name="script_name" -->'; return false;" /></fieldset>
115         
116         <fieldset class="brief">
117                 <legend>Koha internal</legend>
118                 <div class="hint">Note: you should have no reasons to modify the following default values</div>
119                 <ol>
120         <label for="preftype">Variable type:</label>
121                 <div class="hint"> (Choice, YesNo, Integer, Textarea, Float, Themes, Languages, or ClassSource)</div>
122                 <input type="text" name="preftype" id="preftype" value="<!--TMPL_VAR NAME="preftype" -->" size="40" maxlength="40">
123         <label for="prefoptions">Variable options:</label>
124                 <div class="hint">(a choice list for Choice (separated by |) or cols|rows for Texarea)</div>
125                 <input type="text" name="prefoptions" id="prefoptions" value="<!-- TMPL_VAR NAME="prefoptions" -->" size="60" maxlength="80" />
126                 </fieldset>
127         </form>
128     <!-- /TMPL_IF -->
129     
130     <!-- TMPL_IF NAME="add_validate" -->
131     
132
133         <h3>Data recorded</h3>
134         
135         <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
136         <input type="submit" value="OK" />
137         </form>
138     <!-- /TMPL_IF -->
139     
140     <!-- TMPL_IF NAME="delete_confirm" -->
141     
142     <table>
143         <caption>Confirm Deletion of <!-- TMPL_VAR NAME="searchfield" -->?</caption>
144         <tr>
145             <th>Variable Name:</th>
146             <td><!-- TMPL_VAR NAME="searchfield" --></td>
147         </tr>
148         <tr><th>Value: </th><td>
149                 <!-- TMPL_VAR NAME="Tvalue" -->
150                 </td></tr></table>
151         <form class="inline" action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="hidden" name="op" value="delete_confirmed" /><input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
152         <input type="submit"  value="Yes, Delete"></form> <form class="inline" action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="submit" value="No, Do not Delete" /></form>
153     
154     
155     <!-- /TMPL_IF -->
156     
157     <!-- TMPL_IF NAME="delete_confirmed" -->
158     
159         <h3>Data deleted</h3>
160         <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
161         <input type="submit" value="Back to System Preferences" />
162         </form>
163     <!-- /TMPL_IF -->
164     
165     <!-- TMPL_IF NAME="else" -->
166     <h1>System preferences admin</h1>
167     <div id="action">
168         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Admin">Admin</a>
169         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Acquisitions">Acquisitions</a>
170         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Authorities">Authorities</a>
171         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Catalogue">Catalogue</a>
172         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Circulation">Circulation</a>
173         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Members">Borrowers</a>
174         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=OPAC">OPAC</a>
175         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=OPACFeatures">OPAC Features</a>
176         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Intranet">Staff Client</a>
177         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=LOGFeatures">Logs</a>
178         <a href="/cgi-bin/koha/admin/systempreferences.pl?">Other</a>
179     </div>
180     <h2>Editing preferences for <!-- TMPL_VAR name="tab" --> module</h2>
181     <!-- TMPL_VAR NAME="searchfield" -->
182     <table width="80%">
183     <tr>
184         <th>Variable</th>
185         <th>Value</th>
186         <th colspan="3" width="30%">Explanation</th>
187     </tr>
188     <!-- TMPL_LOOP NAME="loop" -->
189     <tr<!-- TMPL_IF NAME="toggle" --> class="highlight"<!-- /TMPL_IF -->>
190         <td><a href="<!-- TMPL_VAR NAME="edit" -->"><!-- TMPL_VAR NAME="variable" --></a></td>
191
192         <td><!-- TMPL_IF NAME="yesno" -->
193                 <!-- TMPL_IF NAME="yes" -->ON<!-- TMPL_ELSE -->OFF<!-- /TMPL_IF -->
194                 <!-- TMPL_ELSE --><!-- TMPL_VAR NAME="value" --><!-- /TMPL_IF --></td>
195
196         <td width="20%"><!-- TMPL_VAR NAME="explanation" --></td>
197         <td><a href="<!-- TMPL_VAR NAME="edit" -->">Edit</a></td>
198         <td><a href="<!-- TMPL_VAR NAME="delete" -->">Delete</a></td>
199     </tr>
200     <!-- /TMPL_LOOP -->
201     </table>
202     
203     <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
204         <input type="hidden" name="op" value="add_form" />
205         <input type="submit" value="Add a new System Preference" />
206     </form>
207     
208     <!-- /TMPL_IF -->
209
210 </div>
211 </div>
212 <div class="yui-b">
213 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
214 </div>
215 </div>
216 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->