]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/admin/org_unit_settings.xhtml
added feauture to org unit settings interface to display friendly values and selector...
[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" djConfig="parseOnLoad: true,isDebug:false" src="/js/dojo/dojo/dojo.js"></script>
27  <script type="text/javascript" djConfig="parseOnLoad: true,isDebug:false" src="/js/dojo/dojo/openils_dojo.js"></script>
28         <script type="text/javascript" src='org_unit_settings.js'></script>
29     </head>
30     <body class="tundra tall">
31         <div dojoType="dijit.layout.LayoutContainer" orientation="vertical" class="tall">
32             <div dojoType="dijit.layout.ContentPane" layoutAlign='top'>
33                 <h1>&staff.server.admin.org_unit_settings.title;</h1><br/>
34                 <span>&staff.server.admin.org_unit_settings.context;</span>
35                 <span>
36                     <select dojoType="openils.widget.OrgUnitFilteringSelect" jsId='osContextSelector'
37                         searchAttr="shortname" autocomplete="true" labelAttr='shortname' onchange='osChangeContext();'> 
38                     </select>
39                 </span>
40                 <span>&staff.server.admin.org_unit_settings.uninherited;</span>
41             </div>
42             <div dojoType="dijit.layout.ContentPane" layoutAlign='client' class='tall'>
43                 <script>
44                     var osGridLayout = [{
45                         defaultCell: {styles: 'text-align: center;'},
46                         cells : [[
47                             {   name: 'Edit', 
48                                 value: '&lt;a href=&quot;javascript:void(0);&quot; onclick=&quot;osLaunchEditor(\'SETTING\');&quot;>Edit&lt;/a>',
49                                 get: osGetEditLink, 
50                                 formatter : osFormatEditLink
51                             },
52                             {name: 'Setting', get: osGetGridData, field:'label', width:'auto', styles:'text-align:left;'},
53                             {name: 'Context', get: osGetGridData, field:'context'},
54                             {name: 'Value', get: osGetGridData, field:'value', width:'auto'},
55                         ]]
56                     }];
57                 </script>
58                 <div dojoType='dojox.Grid' jsId='osGrid'> </div>
59             </div>
60         </div>
61
62         <!-- edit dialog -->
63         <div dojoType="dijit.Dialog" jsId='osEditDialog' title="&staff.server.admin.org_unit_settings.edit_setting;">
64             <table class='form_table'>
65                 <thead>
66                     <tr><td colspan='2' align='center'><div id='os-edit-name'/></td></tr>
67                     <tr><td colspan='2' align='center'><div id='os-edit-desc' style='max-width:600px;'/></td></tr>
68                 </thead>
69                 <tbody>
70                     <tr>
71                         <td>Context</td>
72                         <td> 
73                             <select dojoType="openils.widget.OrgUnitFilteringSelect" jsId='osEditContextSelector'
74                                 searchAttr="shortname" autocomplete="true" labelAttr='shortname'> 
75                             </select>
76                         </td>
77                     </tr>
78                     <tr>
79                         <td>Value</td>
80                         <td>
81                             <input dojoType='dijit.form.TextBox' jsId='osEditTextBox'/>
82                             <input dojoType='dijit.form.CurrencyTextBox' jsId='osEditCurrencyTextBox'/>
83                             <input dojoType='dijit.form.NumberTextBox' jsId='osEditNumberTextBox'/>
84                             <select dojoType='dijit.form.FilteringSelect' jsId='osEditBoolSelect'>
85                                 <option value='true'>&common.true;</option>
86                                 <option value='false'>&common.false;</option>
87                             </select>
88                             <div id='os-edit-auto-widget'></div>
89                         </td>
90                     </tr>
91                     <tr>
92                         <td> 
93                             <button dojoType='dijit.form.Button' onclick='osEditSetting(true);'>&staff.server.admin.org_unit_settings.delete_setting;</button>
94                         </td>
95                         <td> 
96                             <button dojoType='dijit.form.Button' onclick='osEditSetting();'>&staff.server.admin.org_unit_settings.update_setting;</button>
97                         </td>
98                     </tr>
99                 </tbody>
100             </table>
101         </div> <!-- edit dialog -->
102         <span id='os-true' class='hidden'>&common.true;</span>
103         <span id='os-false' class='hidden'>&common.false;</span>
104     </body>
105 </html>
106