560a4c4e0c3add898d62f0e4398efee3daabd147
[working/Evergreen.git] / Open-ILS / src / templates / conify / global / asset / copy_location_group.tt2
1 [% WRAPPER base.tt2 %]
2 [% ctx.page_title = l('Copy Location Group') %]
3 <script type="text/javascript" src='[% ctx.media_prefix %]/js/ui/default/conify/global/asset/copy_location_group.js'> </script>
4 <link rel='stylesheet' type='text/css' href='[% ctx.media_prefix %]/js/dojo/dojo/resources/dnd.css'/>
5 <style>
6     .acpl-content {
7         padding: 10px; 
8         padding-top: 20px;
9         min-width: 20%;
10         height: 100%;
11     }
12     .acpl-content div:first-child {
13         font-weight: bold;
14         font-size: 110%;
15         border-bottom: 1px solid #888;
16         background-color:#E7A555;
17     }
18     .acpl-content-2 {
19         border-left: 2px solid #888;
20         float:left;
21     }
22     .acplg-drag-handle { 
23         background-image: url([% ctx.media_prefix %]/images/dimple.png);
24         background-repeat: no-repeat;
25         background-position: center;
26         padding: 5px;
27         margin-left:5px;
28     }
29     .acplg-list-tbody td {
30         padding: 2px;
31     }
32     .acplg-list-tbody tr:nth-child(even) {
33         background: #EEE
34     }
35     #acplg-list li {
36         padding: 5px;
37     }
38     #acplg-header {
39         margin-top: 20px;
40         border-bottom: 2px solid #888;
41         padding-bottom: 10px;
42     }
43     #acplg-header span:first-child {
44         font-weight: bold;
45         font-size: 130%;
46     }
47     .acplg-group-selected {
48         background-color:#E7A555;
49         border: 1px solid #4A4747;
50     }
51     .tundra .dijitComboBoxDisabled, .tundra .dijitTextBoxDisabled {
52             color: gray !important;
53     }
54 </style>
55
56 <div id='acplg-header'>
57     <span>[% l('Copy Location Groups') %]</span>
58     <select dojoType="openils.widget.OrgUnitFilteringSelect"
59             jsId='contextOrgSelector'
60             searchAttr='shortname'
61             labelAttr='shortname'>
62     </select>
63 </div>
64
65 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style="width:100%">
66     <div class='acpl-content' style="float: left">
67         <div>
68             <table width='100%'><tr>
69                 <td align='left' style='padding-left:5px;'>[% l('Location Groups') %]</td>
70                 <td align='right'><button onclick='newGroup()'>[% l('New') %]</button></td>
71             </tr></table>
72         </div>
73         <ol id='acplg-list'></ol>
74     </div>
75     <div class='acpl-content acpl-content-2'>
76         <div>
77             <table width='100%'><tr>
78                 <td align='left' style='padding-left:5px;'>[% l('Group Entries') %]</td>
79                 <td align='right'><button onclick='editLocations("eliminate")'>[% l('Remove &rarr;') %]</button></td>
80             </tr></table>
81         </div>
82         <div style='height:400px; overflow-y:scroll'>
83             <table>
84                 <tbody id='acplg-loc-map-tbody' class='acplg-list-tbody'>
85                     <tr id='acplg-loc-map-row'>
86                         <td><input type='checkbox' name='selector'/></td>
87                         <td><span name='owning_lib'></span></td>
88                         <td><span name='name'></span></td>
89                     </td>
90                 </tbody>
91             </table>
92         </div>
93     </div>
94     <div class='acpl-content acpl-content-2'>
95         <div>
96             <table width='100%'><tr>
97                 <td align='left'><button onclick='editLocations("create")'>[% l('&larr; Add') %]</button></td>
98                 <td align='right' style='padding-right:5px;'>[% l('Copy Locations') %]</td>
99             </tr></table>
100         </div>
101         <div style='height:400px; overflow-y:scroll'>
102             <table>
103                 <tbody id='acplg-loc-tbody' class='acplg-list-tbody'>
104                     <tr id='acplg-loc-row'>
105                         <td><input type='checkbox' name='selector'/></td>
106                         <td><span name='owning_lib'></span></td>
107                         <td><span name='name'></span></td>
108                     </td>
109                 </tbody>
110             </table>
111         </div>
112     </div>
113 </div>
114
115 <div class='hidden'>
116     <div dojoType='openils.widget.ProgressDialog' jsId='progressDialog'></div>
117     <div id='dnd-drag-actions'>
118         <table width='100%'><tr>
119             <td nowrap='nowrap' align='left'>
120                 <span style='padding:5px;' group="GRPID">
121                     <span><a href="javascript:;" onclick="drawGroupEntries(GRPID)">GRPNAME</a></span>
122                 </span>
123             </td>
124             <td align='right'>
125                 [
126                 <span style='color:green' name='visible'>[% l('Visible') %]</span>
127                 <span style='color:red' name='invisible'>[% l('Not Visible') %]</span>
128                 <span><a href="javascript:;" onclick="editGroup(GRPID)">[% l('Edit') %]</a></span>
129                 <span><a href="javascript:;" onclick="deleteGroup(GRPID)">[% l('Delete') %]</a></span>
130                 ]
131             </td>
132             <td align='right' width='32px'>
133                 <span class='acplg-drag-handle'></span>
134                 <span class='acplg-drag-handle'></span>
135                 <span class='acplg-drag-handle'></span>
136             </td>
137         </tr></table>
138         </span>
139     </div>
140     <div id='acplg-edit-dialog'></div>
141 </div>
142
143
144 [% END %]