rel_3_0 moved to HEAD
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / admin / systempreferences.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- System Administration: 
2 <!-- 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 -->
3 <!-- 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 -->
4 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
5
6 <!-- TMPL_INCLUDE NAME="menus.inc" -->
7 <!-- TMPL_INCLUDE NAME="menu-admin.inc" -->
8
9 <script language="JavaScript" type="text/javascript">
10         function _(s) { return s } // dummy function for gettext
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                             <option value="<!-- TMPL_VAR NAME="option" -->"<!-- TMPL_IF NAME="selected" -->selected="selected"<!-- /TMPL_IF -->><!-- TMPL_VAR NAME="option" --></option>
88                         <!-- /TMPL_LOOP -->
89                     </select>
90                 <!-- /TMPL_IF -->
91                 <!-- TMPL_IF NAME="type-yesno" -->
92                     <!-- TMPL_IF NAME="value-yes" -->
93                     <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
94                 <!-- TMPL_IF NAME="value-no" -->        
95                     <input type="radio" name="value" value="0" checked="checked" /><!-- TMPL_ELSE --><input type="radio" name="value" value="0" /><!-- /TMPL_IF -->No<!-- /TMPL_IF -->
96                 </td></tr>
97         </table>
98         <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>
99         
100 <h3>Koha internal</h3>          
101         Note: you should have no reasons to modify the following default values
102         <table>
103         <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>
104         <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>
105         </table>
106         </form>
107     <!-- /TMPL_IF -->
108     
109     <!-- TMPL_IF NAME="add_validate" -->
110     
111
112         <h3>Data recorded</h3>
113         
114         <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
115         <input type="submit" value="OK" />
116         </form>
117     <!-- /TMPL_IF -->
118     
119     <!-- TMPL_IF NAME="delete_confirm" -->
120     
121     <table>
122         <caption>Confirm Deletion of <!-- TMPL_VAR NAME="searchfield" -->?</caption>
123         <tr>
124             <th>Variable Name:</th>
125             <td><!-- TMPL_VAR NAME="searchfield" --></td>
126         </tr>
127         <tr><th>Value: </th><td><!-- TMPL_VAR NAME="Tvalue" --></td></tr></table>
128         <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" -->" />
129         <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>
130     
131     
132     <!-- /TMPL_IF -->
133     
134     <!-- TMPL_IF NAME="delete_confirmed" -->
135     
136         <h3>Data deleted</h3>
137         <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
138         <input type="submit" value="Back to System Preferences" />
139         </form>
140     <!-- /TMPL_IF -->
141     
142     <!-- TMPL_IF NAME="else" -->
143     <h1>System preferences admin</h1>
144     <div id="action">
145         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Admin">Admin</a>
146         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=LOGFeatures">Log Features</a>
147         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Acquisitions">Acquisitions</a>
148         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Authorities">Authorities</a>
149         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Catalogue">Catalogue</a>
150         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Circulation">Circulation</a>
151         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Members">Members</a>
152         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=OPAC">OPAC</a>
153         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=OPACFeatures">OPAC Features</a>
154         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Intranet">Intranet</a>
155         <a href="/cgi-bin/koha/admin/systempreferences.pl?">Others</a>
156     </div>
157     <h2>Editing preferences for <!-- TMPL_VAR name="tab" --> module</h2>
158     <!-- TMPL_VAR NAME="searchfield" -->
159     <table>
160     <tr>
161         <th>Variable</th>
162         <th>Value</th>
163         <th colspan="3">Explanation</th>
164     </tr>
165     <!-- TMPL_LOOP NAME="loop" -->
166     <tr<!-- TMPL_IF NAME="toggle" --> class="highlight"<!-- /TMPL_IF -->>
167         <td><!-- TMPL_VAR NAME="variable" --></td>
168         <td><!-- TMPL_VAR NAME="value" --></td>
169         <td><!-- TMPL_VAR NAME="explanation" --></td>
170         <td><a href="<!-- TMPL_VAR NAME="edit" -->">Edit</a></td>
171         <td><a href="<!-- TMPL_VAR NAME="delete" -->">Delete</a></td>
172     </tr>
173     <!-- /TMPL_LOOP -->
174     </table>
175     </form>
176     
177     <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
178         <input type="hidden" name="op" value="add_form" />
179         <input type="submit" value="Add a System Preference" />
180     </form>
181     
182     <!-- /TMPL_IF -->
183
184 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->