]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/admin/org_unit_settings.xhtml
Updated to include search.
[Evergreen.git] / Open-ILS / xul / staff_client / server / admin / org_unit_settings.xhtml
1 <?xml version='1.0' encoding="UTF-8"?>
2 <!-- 
3 # Copyright (C) 2008  Georgia Public Library Service
4 # Bill Erickson <erickson@esilibrary.com>
5 # This program is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU General Public License
7 # as published by the Free Software Foundation; either version 2
8 # of the License, or (at your option) any later version.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 -->
15
16 <!DOCTYPE html PUBLIC 
17     "-//W3C//DTD XHTML 1.0 Transitional//EN" 
18     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" [
19     <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
20 ]>
21
22 <html xmlns='http://www.w3.org/1999/xhtml'>
23     <head>
24         <title>&staff.server.admin.org_unit_settings.title;</title>
25         <link type='text/css' rel='stylesheet' href='admin.css'/>
26         <script type="text/javascript" src='/IDL2js?aou,aout,pgt,au,coust,aous,csg'></script>
27         <script type="text/javascript" djConfig="parseOnLoad: true,isDebug:false" src="/js/dojo/dojo/dojo.js"></script>
28         <script type="text/javascript" djConfig="parseOnLoad: true,isDebug:false" src="/js/dojo/dojo/openils_dojo.js"></script>
29         <script type="text/javascript" src='org_unit_settings.js'></script>
30     </head>
31     <body class="tundra tall">
32         <div dojoType="dijit.layout.LayoutContainer" orientation="vertical" class="tall">
33             <div dojoType="dijit.layout.ContentPane" layoutAlign='top'>
34                 <h1>&staff.server.admin.org_unit_settings.title;</h1><br/>
35                 <span>&staff.server.admin.org_unit_settings.context_loc;</span>
36                 <span>
37                     <select dojoType="openils.widget.OrgUnitFilteringSelect" jsId='osContextSelector'
38                         searchAttr="shortname" autocomplete="true" labelAttr='shortname' onchange='osChangeContext();'> 
39                     </select>
40                 </span>
41                 <span>&staff.server.admin.org_unit_settings.uninherited;</span>
42                     <form onSubmit="return doSearch()">
43                         <input type="text" dojoType="dijit.form.TextBox" id="searchBox" />
44                         <button type="submit" dojoType='dijit.form.Button'>&staff.server.admin.org_unit_settings.filter;</button>
45                         <button dojoType='dijit.form.Button' onClick="clearSearch();">&staff.server.admin.org_unit_settings.clear_filter;</button>
46                     </form>
47                         <button dojoType='dijit.form.Button' onClick="osToJson();">Output</button>
48             </div>
49             <div dojoType="dijit.layout.ContentPane" layoutAlign='client'>
50                 <div class='hide_me' id='no-perms'><b>&staff.server.admin.org_unit_settings.no_perms;</b></div>
51             </div>
52             <div dojoType="dijit.layout.ContentPane" layoutAlign='client' class='tall'>
53                 <script>
54                     var osGridLayout = [{
55                         defaultCell: {styles: 'text-align: center;'},
56                         cells : [[
57                             {   name: '&staff.server.admin.org_unit_settings.edit;', 
58                                 value: '&lt;a href=&quot;javascript:void(0);&quot; onclick=&quot;osLaunchEditor(\'SETTING\');&quot;>&staff.server.admin.org_unit_settings.edit;&lt;/a>',
59                                 get: osGetEditLink, 
60                                 formatter : osFormatEditLink
61                             },
62                             {name: '&staff.server.admin.org_unit_settings.group;', get: osGetGridData, field:'grp'},
63                             {name: '&staff.server.admin.org_unit_settings.setting;', get: osGetGridData, field:'label', width:'auto', styles:'text-align:left;'},
64                             {name: '&staff.server.admin.org_unit_settings.context;', get: osGetGridData, field:'context'},
65                             {name: '&staff.server.admin.org_unit_settings.value;', get: osGetGridData, field:'value', width:'auto'},
66                         ]]
67                     }];
68                 </script>
69                 <div dojoType='dojox.Grid' jsId='osGrid'> </div>
70             </div>
71         </div>
72
73         <!-- edit dialog -->
74         <div dojoType="dijit.Dialog" jsId='osEditDialog' title="&staff.server.admin.org_unit_settings.edit_setting;">
75             <table class='form_table'>
76                 <thead>
77                     <tr><td colspan='2' align='center'><div id='os-edit-name'/></td></tr>
78                     <tr><td colspan='2' align='center'><div id='os-edit-desc' style='max-width:600px;'/></td></tr>
79                 </thead>
80                 <tbody>
81                     <tr>
82                         <td>&staff.server.admin.org_unit_settings.context;</td>
83                         <td> 
84                             <select dojoType="openils.widget.OrgUnitFilteringSelect" jsId='osEditContextSelector'
85                                 searchAttr="shortname" autocomplete="true" labelAttr='shortname'> 
86                             </select>
87                         </td>
88                     </tr>
89                     <tr>
90                         <td>&staff.server.admin.org_unit_settings.value;</td>
91                         <td>
92                             <input dojoType='dijit.form.TextBox' jsId='osEditTextBox'/>
93                             <input dojoType='dijit.form.CurrencyTextBox' jsId='osEditCurrencyTextBox'/>
94                             <input dojoType='dijit.form.NumberTextBox' jsId='osEditNumberTextBox'/>
95                             <select dojoType='dijit.form.FilteringSelect' jsId='osEditBoolSelect'>
96                                 <option value='true'>&common.true;</option>
97                                 <option value='false'>&common.false;</option>
98                             </select>
99                             <div id='os-edit-auto-widget'></div>
100                         </td>
101                     </tr>
102                     <tr>
103                         <td> 
104                             <button dojoType='dijit.form.Button' onclick='osEditSetting(true);'>&staff.server.admin.org_unit_settings.delete_setting;</button>
105                         </td>
106                         <td> 
107                             <button dojoType='dijit.form.Button' onclick='osEditSetting();'>&staff.server.admin.org_unit_settings.update_setting;</button>
108                         </td>
109                     </tr>
110                 </tbody>
111             </table>
112         </div> <!-- edit dialog -->
113         <span id='os-true' class='hidden'>&common.true;</span>
114         <span id='os-false' class='hidden'>&common.false;</span>
115         <div dojoType="openils.widget.ProgressDialog" jsId="progressDialog" indeterminate="true"></div>
116         <div id='proci18n' class="hidden">&staff.server.admin.org_unit_settings.processing;</div>
117         <div id="noresults" class="hidden">&staff.server.admin.org_unit_settings.no_results;</div>
118         <div id="jsonoutput" class='hidden'  dojoType="dijit.Dialog" jsId='osJSONOutDialog'>
119             <table>
120             <tr><td>Copy this to your clipboard and save it to a file to export the settings.</td></tr>
121             <tr><td><textarea id="jsonOutput"></textarea></td></tr>
122             </table>
123         </div>
124     </body>
125 </html>