]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/admin/org_unit_settings.xhtml
as an alternate/addition to applying per-setting permissions, use the existing VIEW_O...
[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'></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;</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             </div>
43             <div dojoType="dijit.layout.ContentPane" layoutAlign='client'>
44                 <div class='hide_me' id='no-perms'><b>&staff.server.admin.org_unit_settings.no_perms;</b></div>
45             </div>
46             <div dojoType="dijit.layout.ContentPane" layoutAlign='client' class='tall'>
47                 <script>
48                     var osGridLayout = [{
49                         defaultCell: {styles: 'text-align: center;'},
50                         cells : [[
51                             {   name: 'Edit', 
52                                 value: '&lt;a href=&quot;javascript:void(0);&quot; onclick=&quot;osLaunchEditor(\'SETTING\');&quot;>Edit&lt;/a>',
53                                 get: osGetEditLink, 
54                                 formatter : osFormatEditLink
55                             },
56                             {name: 'Setting', get: osGetGridData, field:'label', width:'auto', styles:'text-align:left;'},
57                             {name: 'Context', get: osGetGridData, field:'context'},
58                             {name: 'Value', get: osGetGridData, field:'value', width:'auto'},
59                         ]]
60                     }];
61                 </script>
62                 <div dojoType='dojox.Grid' jsId='osGrid'> </div>
63             </div>
64         </div>
65
66         <!-- edit dialog -->
67         <div dojoType="dijit.Dialog" jsId='osEditDialog' title="&staff.server.admin.org_unit_settings.edit_setting;">
68             <table class='form_table'>
69                 <thead>
70                     <tr><td colspan='2' align='center'><div id='os-edit-name'/></td></tr>
71                     <tr><td colspan='2' align='center'><div id='os-edit-desc' style='max-width:600px;'/></td></tr>
72                 </thead>
73                 <tbody>
74                     <tr>
75                         <td>Context</td>
76                         <td> 
77                             <select dojoType="openils.widget.OrgUnitFilteringSelect" jsId='osEditContextSelector'
78                                 searchAttr="shortname" autocomplete="true" labelAttr='shortname'> 
79                             </select>
80                         </td>
81                     </tr>
82                     <tr>
83                         <td>Value</td>
84                         <td>
85                             <input dojoType='dijit.form.TextBox' jsId='osEditTextBox'/>
86                             <input dojoType='dijit.form.CurrencyTextBox' jsId='osEditCurrencyTextBox'/>
87                             <input dojoType='dijit.form.NumberTextBox' jsId='osEditNumberTextBox'/>
88                             <select dojoType='dijit.form.FilteringSelect' jsId='osEditBoolSelect'>
89                                 <option value='true'>&common.true;</option>
90                                 <option value='false'>&common.false;</option>
91                             </select>
92                             <div id='os-edit-auto-widget'></div>
93                         </td>
94                     </tr>
95                     <tr>
96                         <td> 
97                             <button dojoType='dijit.form.Button' onclick='osEditSetting(true);'>&staff.server.admin.org_unit_settings.delete_setting;</button>
98                         </td>
99                         <td> 
100                             <button dojoType='dijit.form.Button' onclick='osEditSetting();'>&staff.server.admin.org_unit_settings.update_setting;</button>
101                         </td>
102                     </tr>
103                 </tbody>
104             </table>
105         </div> <!-- edit dialog -->
106         <span id='os-true' class='hidden'>&common.true;</span>
107         <span id='os-false' class='hidden'>&common.false;</span>
108         <div dojoType="openils.widget.ProgressDialog" jsId="progressDialog" indeterminate="true"></div>
109     </body>
110 </html>
111