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