]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/cat/authority/list.tt2
Add altering rows colors to (cataloging) manage authorities interface
[working/Evergreen.git] / Open-ILS / src / templates / cat / authority / list.tt2
1 [% ctx.page_title = l('Authority record list') %]
2 [% WRAPPER base.tt2 %]
3
4 <script type="text/javascript" src='[% ctx.media_prefix %]/js/ui/default/cat/authority/list.js'> </script>
5 <style type="text/css">
6     .authEntry { clear: both; height: 1.5em; }
7     .authEntry > *:first-child { float: left; width: 20%; }
8     .authEntry > .text { float: left; width: 46%; }
9     .authEntry > .authority-control-set { float: right; width: 33%; ; font-style: italic; }
10     .authority-control-set .acs-name { font-weight: bold; }
11     .authority-control-set .acs-id { }
12     .authEntry:nth-child(even) { background-color:#D3D3D3;}
13 </style>
14 <div dojoType="dijit.form.Form" id="myForm" jsId="myForm" encType="multipart/form-data" action="" method="">
15     <span style="white-space: nowrap;">
16         <label for="authTerm">[% l('Search term: ') %]</label>
17         <input type="text" name="authTerm" value="" dojoType="dijit.form.TextBox" trim="true" id="authTerm" propercase="false"/>
18     </span>
19     <span style="white-space: nowrap;">
20         <label for="authAxis">[% l('Authority type: ') %]</label>
21         <input
22             id="authAxis"
23             name="authAxis"
24             jsId="authAxis"
25             dojoType="openils.widget.PCrudAutocompleteBox"
26             fmclass="aba"
27             searchAttr="name"
28             fetchProperties="{ sort: [{attribute:'name'}] }"
29             propercase="false"
30             hasDownArrow="true"
31             store_options="{ honor_retrieve_all:true }"
32             trim="true"
33         />
34     </span>
35 <!-- Not currently useful - see authOUListInit() above -->
36 <!--    <label for="authOU">[% l('Library: ') %]</label><select dojoType="openils.widget.OrgUnitFilteringSelect" id="authOU" name="authOU" searchAttr="shortname" labelAttr="shortname"></select> -->
37
38     <span style="white-space: nowrap;">
39         <span dojoType="dijit.form.Button" type="button" value="Previous">[% l('Previous') %]
40             <script type="dojo/method" event="onClick" args="evt">
41                 displayRecords({"page":"prev"});
42             </script>
43         </span>
44
45         <label for="authPage">[% l('Page: ') %]</label>
46         <input dojoType="dijit.form.NumberSpinner" value="0" constraints="{min:-100,max:100,places:0}" smallDelta="1" id="authPage" name="authPage" style="width:5em;" />
47
48         <span dojoType="dijit.form.Button" type="button" value="Next">[% l('Next') %]
49             <script type="dojo/method" event="onClick" args="evt">
50                 displayRecords({"page":"next"});
51             </script>
52         </span>
53     </span>
54
55     <span style="white-space: nowrap;">
56         <span dojoType="dijit.form.Button" type="button" value="Submit">[% l('Submit') %]
57             <script type="dojo/method" event="onClick" args="evt">
58                 displayRecords();
59             </script>
60         </span>
61     </span>
62 </div>
63
64 <hr />
65
66 <div id='mergebox-div' class='hidden' style='float:right; border: 4px solid; width: 25%;'>
67     <div style="border-bottom: 4px solid; text-align: center;">
68         <div dojoType="dijit.form.Form" encType="multipart/form-data" action="" method="">
69             <div dojoType="dijit.form.Button" type="button" value="Merge">[% l('Merge') %]
70                 <script type="dojo/method" event="onClick" args="evt">
71                     mergeRecords();
72                 </script>
73             </div>
74             <div dojoType="dijit.form.Button" type="button" value="Clear">[% l('Clear') %]
75                 <script type="dojo/method" event="onClick" args="evt">
76                     clearMergeRecords();
77                 </script>
78             </div>
79         </div>
80     </div>
81     <table>
82         <tbody id='mergebox-tbody'>
83         </tbody>
84     </table>
85 </div>
86
87
88 <div id='authlist-div'></div>
89
90 [% END %]