]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/admin/org_unit_settings.xhtml
Added revision logging to oust, updated fm_IDL.xml to reflect that
[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,coustl' />
27         <script type="text/javascript" djConfig="parseOnLoad: true,isDebug:false" src="/js/dojo/dojo/dojo.js" />
28         <script type="text/javascript" djConfig="parseOnLoad: true,isDebug:false" src="/js/dojo/dojo/openils_dojo.js" />
29         <script type="text/javascript" src='org_unit_settings.js' />
30         <script type="text/javascript" src="/xul/server/util/clipboard.js" />
31         <style type="text/css">
32             .form_table textarea {
33                 width:500px;
34                 height:15em;
35             }
36         </style>
37     </head>
38
39     <body class="tundra tall">
40         <div dojoType="dijit.layout.LayoutContainer" orientation="vertical" class="tall">
41             <div dojoType="dijit.layout.ContentPane" layoutAlign='top'>
42                 <h1>&staff.server.admin.org_unit_settings.title;</h1><br/>
43                 <span>&staff.server.admin.org_unit_settings.context_loc;</span>
44                 <span>
45                     <select dojoType="openils.widget.OrgUnitFilteringSelect" jsId='osContextSelector'
46                         searchAttr="shortname" autocomplete="true" labelAttr='shortname' onchange='osChangeContext();'> 
47                     </select>
48                 </span>
49                 <span>&staff.server.admin.org_unit_settings.uninherited;</span>
50                     <form onSubmit="return doSearch()">
51                         <input type="text" dojoType="dijit.form.TextBox" id="searchBox" />
52                         <button type="submit" dojoType='dijit.form.Button'>&staff.server.admin.org_unit_settings.filter;</button>
53                         <button dojoType='dijit.form.Button' onClick="clearSearch();">&staff.server.admin.org_unit_settings.clear_filter;</button>
54                     </form>
55                     <button dojoType='dijit.form.Button' onClick="osToJson();">&staff.server.admin.org_unit_settings.export;</button>
56                     <button dojoType='dijit.form.Button' onClick="osFromJson();">&staff.server.admin.org_unit_settings.import;</button>
57             </div>
58             <div dojoType="dijit.layout.ContentPane" layoutAlign='client'>
59                 <div class='hide_me' id='no-perms'><b>&staff.server.admin.org_unit_settings.no_perms;</b></div>
60             </div>
61             <div dojoType="dijit.layout.ContentPane" layoutAlign='client' class='tall'>
62                 <script>
63                     var osGridLayout = [{
64                         defaultCell: {styles: 'text-align: center;'},
65                         cells : [[
66                             {   name: '&staff.server.admin.org_unit_settings.edit;', 
67                                 value: '&lt;a href=&quot;javascript:void(0);&quot; onclick=&quot;osLaunchEditor(\'SETTING\');&quot;>&staff.server.admin.org_unit_settings.edit;&lt;/a>',
68                                 get: osGetEditLink, 
69                                 formatter : osFormatEditLink
70                             },
71                             {name: '&staff.server.admin.org_unit_settings.group;', get: osGetGridData, field:'grp'},
72                             {name: '&staff.server.admin.org_unit_settings.setting;', get: osGetGridData, field:'label', width:'auto', styles:'text-align:left;'},
73                             {name: '&staff.server.admin.org_unit_settings.context;', get: osGetGridData, field:'context'},
74                             {name: '&staff.server.admin.org_unit_settings.value;', get: osGetGridData, field:'value', width:'auto'},
75                         ]]
76                     }];
77                 </script>
78                 <div dojoType='dojox.Grid' jsId='osGrid' />
79             </div>
80         </div>
81
82         <!-- edit dialog -->
83         <div dojoType="dijit.Dialog" jsId='osEditDialog' title="&staff.server.admin.org_unit_settings.edit_setting;">
84             <table class='form_table'>
85                 <thead>
86                     <tr><td colspan='2' align='center'><div id='os-edit-name'/></td></tr>
87                     <tr><td colspan='2' align='center'><div id='os-edit-desc' style='max-width:600px;'/></td></tr>
88                 </thead>
89                 <tbody>
90                     <tr>
91                         <td>&staff.server.admin.org_unit_settings.context;</td>
92                         <td> 
93                             <select dojoType="openils.widget.OrgUnitFilteringSelect" jsId='osEditContextSelector'
94                                 searchAttr="shortname" autocomplete="true" labelAttr='shortname'> 
95                             </select>
96                         </td>
97                     </tr>
98                     <tr>
99                         <td>&staff.server.admin.org_unit_settings.value;</td>
100                         <td>
101                             <input dojoType='dijit.form.TextBox' jsId='osEditTextBox'/>
102                             <input dojoType='dijit.form.CurrencyTextBox' jsId='osEditCurrencyTextBox'/>
103                             <input dojoType='dijit.form.NumberTextBox' jsId='osEditNumberTextBox'/>
104                             <select dojoType='dijit.form.FilteringSelect' jsId='osEditBoolSelect'>
105                                 <option value='true'>&common.true;</option>
106                                 <option value='false'>&common.false;</option>
107                             </select>
108                             <div id='os-edit-auto-widget'></div>
109                         </td>
110                     </tr>
111                     <tr>
112                         <td> 
113                             <button dojoType='dijit.form.Button' onclick='osEditSetting(true);'>&staff.server.admin.org_unit_settings.delete_setting;</button>
114                         </td>
115                         <td> 
116                             <button dojoType='dijit.form.Button' onclick='osEditSetting();'>&staff.server.admin.org_unit_settings.update_setting;</button>
117                         </td>
118                     </tr>
119                 </tbody>
120             </table>
121         </div> <!-- /edit dialog -->
122         
123         <div dojoType="openils.widget.ProgressDialog" jsId="progressDialog" indeterminate="true" />
124         
125         <!--i18n, use the &translation; here, then grab innerHTML in JS later.-->
126         <div id='proci18n' class='hidden'>&staff.server.admin.org_unit_settings.processing;</div>
127         <div id='noresults' class='hidden'>&staff.server.admin.org_unit_settings.no_results;</div>
128         <span id='os-true' class='hidden'>&common.true;</span>
129         <span id='os-false' class='hidden'>&common.false;</span>
130         
131         <!--Export Dialog-->
132         <div id="jsonOutputDialog" dojoType="dijit.Dialog" jsId='osJSONOutDialog' title="&staff.server.admin.org_unit_settings.export;">
133             <table class="form_table">
134                 <tr><td>&staff.server.admin.org_unit_settings.export_copy_label;</td></tr>
135                 <tr><td><textarea id="jsonOutput" /></td></tr>
136                 <tr><td><button dojoType='dijit.form.Button' onclick='osJsonOutputCopy();'>&staff.server.admin.org_unit_settings.copy;</button></td></tr>
137             </table>
138         </div>
139         
140         <!--Import Dialog-->
141         <div id="jsonInputDialog" dojoType="dijit.Dialog" jsId='osJSONInDialog' title="&staff.server.admin.org_unit_settings.import;">
142             <table class="form_table">
143                 <tr><td>&staff.server.admin.org_unit_settings.import_paste_label;</td></tr>
144                 <tr><td><textarea id="jsonInput" /></td></tr>
145                 <tr><td><button dojoType='dijit.form.Button' onclick='osJsonInputPaste();'>&staff.server.admin.org_unit_settings.paste;</button><button type="submit"  dojoType='dijit.form.Button' onclick='osFromJsonSubmit();'>&staff.server.admin.org_unit_settings.submit;</button></td></tr>
146             </table>
147         </div>
148         
149     </body>
150 </html>