]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/conify/global/config/best_hold_order.tt2
LP1873286: Fix Bad End Tags
[working/Evergreen.git] / Open-ILS / src / templates / conify / global / config / best_hold_order.tt2
1 [% WRAPPER base.tt2 %]
2 <style type="text/css">
3     h1 { margin-bottom: 0.5ex; }
4     #cbho-loading { text-align: center; }
5     #cbho-edit-space { padding: 0.25ex 0.5em; }
6     #cbho-name { width: 30em; }
7     #cbho-field-order { width: 30em; }
8     #cbho-field-order-space > div { float: left; padding-right: 1em; }
9     #cbho-needs-saved { color: #c00; font-weight: bold; }
10     option.post-rtime, option.post-rtime:focus {
11         font-style: italic; color: #999;
12     }
13     .body-part { margin: 1ex 0; }
14     .clear-both { clear: both; }
15     .show-access-key { font-weight: bold; border-bottom: 1px dashed black; }
16 </style>
17 <h1>[% l('Best-Hold Selection Sort Order') %]</h1>
18
19 <!-- Hidden after JS load. Prevents early clicks from breaking anything. -->
20 <div id="cbho-loading">
21     <img src="[% ctx.media_prefix %]/opac/images/progressbar_green-old.gif"
22         alt="[% l('Interface loading') %]" />
23 </div>
24
25 <div id="cbho-main-body" class="hidden"><!-- main body -->
26     <div class="body-part">
27         <span dojoType="dijit.form.Button" onClick="module.new_cbho()">[% l('Create New') %]</span>
28         [% l('or') %]
29         <span dojoType="dijit.form.Button" onClick="module.edit_cbho()">[% l('Edit Existing') %]</span>
30     </div>
31
32     <div class="body-part hidden" id="cbho-edit-space"><!-- editing space -->
33         <p>
34             <span id="cbho-editing"></span>
35             <span id="cbho-needs-saved">[% l('You have unsaved changes.') %]</span>
36         </p>
37         <div id="cbho-name-edit-space">
38             <label for="cbho-name">[% l('Name:') %]</label>
39             <input id="cbho-name" type="text" onchange="module.editor_changed(true);" />
40         </div>
41         <div id="cbho-field-order-space" class="body-part">
42             <div>
43                 <label for="cbho-field-order">[% l('Order:') %]</label>
44             </div>
45             <div>
46                 <select id="cbho-field-order" size="10"> </select>
47             </div>
48             <div>
49                 <input type="button"
50                     onclick="module.editor_move(-1); return false;"
51                     accesskey="[% l('k') %]"
52                     value="&uarr; [% l('Move Up') %]" />
53                 <span class="show-access-key">[% l('k') %]</span>
54                 <br />
55                 <input type="button"
56                     onclick="module.editor_move(1); return false;"
57                     accesskey="[% l('j') %]"
58                     value="&darr; [% l('Move Down') %]" />
59                 <span class="show-access-key">[% l('j') %]</span>
60             </div>
61         </div>
62
63         <div class="clear-both"></div>
64
65         <div class="body-part"><!-- save changes -->
66             <p><em>[% l('Because rtime, a high-precision timestamp, is ' _
67                 'essentially unique among holds, ' _
68                 'no fields arranged after rtime really have any effect in ' _
69                 'determining best-hold selection.') %]</em></p>
70
71             <p>[% l('To choose which Best-Hold Selection Sort Order will be ' _
72                 'used by Evergreen at copy capture time, see the Library ' _
73                 'Settings interface.') %]</p>
74
75             <button id="cbho-save-changes"
76                 onclick="module.editor_save(); return false" disabled="disabled">
77                 [% l('Save Changes') %]
78             </button>
79         </div><!-- save changes -->
80     </div><!-- editing space -->
81
82 </div><!-- main body -->
83
84 <div class="hidden">
85     <div dojoType="openils.widget.ProgressDialog" id="progress-dialog"></div>
86     <div dojoType="dijit.Dialog" id="cbho-existing" title="[% l('Choose a best-hold order') %]">
87         <div class="body-part">
88             <label for="cbho-existing-selector">
89                 [% l('Choose a best-hold order') %]
90             </label>
91             <span id="cbho-existing-selector"></span>
92         </div>
93         <div class="body-part">
94             <span dojoType="dijit.form.Button" type="submit"
95                 id="cbho-existing-edit-go">
96                 [% l('Edit') %]
97             </span>
98         </div>
99     </div>
100 </div>
101
102 <script type="text/javascript">
103     dojo.require("dijit.form.Button");
104     dojo.require("dijit.form.TextBox");
105     dojo.require("dijit.Dialog");
106     dojo.require("openils.widget.ProgressDialog");
107     dojo.require("openils.conify.BestHoldOrder");
108
109     var module;
110
111     openils.Util.addOnLoad(
112         function() {
113             module = openils.conify.BestHoldOrder;
114             module.init();
115         }
116     );
117 </script>
118 [% END %]