1 <?xml version='1.0' encoding="UTF-8"?>
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.
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.
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"-->
22 <html xmlns='http://www.w3.org/1999/xhtml'>
24 <title>Org Unit Settings</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" src='org_unit_settings.js'></script>
30 'circ.lost_materials_processing_fee' : {
31 label : '&staff.server.admin.org_settings.lost_fee;',
34 'cat.default_item_price' : {
35 label : '&staff.server.admin.org_settings.default_price;',
38 'auth.opac_timeout' : {
39 label : '&staff.server.admin.org_settings.opac_timeout;',
42 'auth.staff_timeout' : {
43 label : '&staff.server.admin.org_settings.staff_timeout;',
46 'org.bounced_emails' : {
47 label : '&staff.server.admin.org_settings.from_address;',
48 desc : '&staff.server.admin.org_settings.bounce_note;'
50 'circ.hold_expire_alert_interval' : {
51 label : '&staff.server.admin.org_settings.circ.hold_expire_alert_interval;',
52 desc : '&staff.server.admin.org_settings.circ.hold_expire_alert_interval.desc;',
54 'circ.hold_expire_interval' : {
55 label : '&staff.server.admin.org_settings.circ.hold_expire_interval;',
56 desc : '&staff.server.admin.org_settings.circ.hold_expire_interval.desc;',
58 'global.credit.allow' : {
59 label : '&staff.server.admin.org_settings.global.credit.allow;',
60 desc : '&staff.server.admin.org_settings.global.credit.allow.desc;',
63 'global.default_locale' : {
64 label : '&staff.server.admin.org_settings.global.default_locale;',
69 <body class="tundra tall">
70 <div dojoType="dijit.layout.LayoutContainer" orientation="vertical" class="tall">
71 <div dojoType="dijit.layout.ContentPane" layoutAlign='top'>
72 <h1>Org Unit Settings</h1><br/>
74 <select dojoType="openils.widget.OrgUnitFilteringSelect" jsId='osContextSelector'
75 searchAttr="shortname" autocomplete="true" labelAttr='shortname' onchange='osChangeContext();'>
78 <div dojoType="dijit.layout.ContentPane" layoutAlign='client' class='tall'>
81 defaultCell: {styles: 'text-align: center;'},
83 {name: 'Edit', get: osGetEditLink,
84 value: '<a href="javascript:void(0);" onclick="osLaunchEditor(\'SETTING\');">Edit</a>'},
85 {name: 'Setting', get: osGetGridData, field:'label', width:'auto'},
86 {name: 'Context', get: osGetGridData, field:'context', width:'auto'},
87 {name: 'Value', get: osGetGridData, field:'value', width:'auto'},
91 <div dojoType='dojox.Grid' jsId='osGrid'> </div>
96 <div dojoType="dijit.Dialog" jsId='osEditDialog' title="Edit Setting">
97 <table class='form_table'>
99 <tr><td colspan='2' align='center'><div id='os-edit-name'/></td></tr>
100 <tr><td colspan='2' align='center'><div id='os-edit-desc'/></td></tr>
106 <select dojoType="openils.widget.OrgUnitFilteringSelect" jsId='osEditContextSelector'
107 searchAttr="shortname" autocomplete="true" labelAttr='shortname'>
114 <input dojoType='dijit.form.TextBox' jsId='osEditTextBox'/>
115 <input dojoType='dijit.form.CurrencyTextBox' jsId='osEditCurrencyTextBox'/>
116 <input dojoType='dijit.form.NumberTextBox' jsId='osEditNumberTextBox'/>
117 <select dojoType='dijit.form.FilteringSelect' jsId='osEditBoolSelect'>
118 <option value='true'>&common.true;</option>
119 <option value='false'>&common.false;</option>
125 <button dojoType='dijit.form.Button' onclick='osEditSetting();'>Update Setting</button>
128 <button dojoType='dijit.form.Button' onclick='osEditSetting(true);'>Delete Setting</button>
133 </div> <!-- edit dialog -->
134 <span id='os-true' class='hidden'>&common.true;</span>
135 <span id='os-false' class='hidden'>&common.false;</span>