]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/default/conify/global/config/circ_matrix_matchpoint.tt2
Merge branch 'master' of git.evergreen-ils.org:Evergreen into template-toolkit-opac...
[working/Evergreen.git] / Open-ILS / src / templates / default / conify / global / config / circ_matrix_matchpoint.tt2
1 [% ctx.page_title = 'Circulation Policy Configuration' %]
2 [% WRAPPER default/base.tt2 %]
3 <script type="text/javascript" src='[% ctx.media_prefix %]/js/ui/default/conify/global/config/circ_matrix_matchpoint.js'> </script>
4 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
5     <div>Circulation Policy Configuration</div>
6     <div><button dojoType='dijit.form.Button' onClick='cmGrid.showCreatePane()'>New</button></div>
7 </div>
8 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
9     <table  jsId="cmGrid"
10             style="height: 600px;"
11             dojoType="openils.widget.AutoGrid"
12             fieldOrder="['id', 'active', 'grp', 'org_unit', 'copy_circ_lib', 'copy_owning_lib', 'user_home_ou', 'is_renewal', 'juvenile_flag', 'circ_modifier', 'marc_type', 'marc_form', 'marc_bib_level', 'marc_vr_format', 'ref_flag', 'usr_age_lower_bound', 'usr_age_upper_bound', 'item_age', 'circulate', 'duration_rule', 'renewals', 'hard_due_date', 'recurring_fine_rule', 'grace_period', 'max_fine_rule', 'available_copy_hold_ratio', 'total_copy_hold_ratio', 'script_test']"
13             defaultCellWidth='"auto"'
14             query="{id: '*'}"
15             fmClass='ccmm'
16             editStyle='pane'
17             editOnEnter='true'
18             showColumnPicker='true'
19             columnPickerPrefix='"conify.config.circ_matrix_matchpoint"'>
20             <thead>
21                 <tr>
22                     <th field="hard_due_date" formatter="format_hard_due_date">
23                     </th>
24                 </tr>
25             </thead>
26     </table>
27 </div>
28
29 <div class='hidden'>
30     <div id='circ-mod-editor' style='border:1px solid #aaa'>
31         <h3>Circ Modifier Count Groups</h3>
32         <table class='oils-generic-table' name='circ-mod-group-table'>
33             <tbody><tr>
34                 <td>Total items out</td>
35                 <td><input type='text' size='3' name='circ-mod-count'></div></td>
36             </tr><tbody>
37             <tbody name='circ-mod-entry-tbody'>
38                 <tr name='circ-mod-entry-row'>
39                     <td name='circ-mod'/>
40                     <td><a name='remove-circ-mod' href='javascript:void(0);'>Remove</a></td>
41                 </tr>
42             </tbody>
43             <tbody>
44                 <tr>
45                     <td><div name='circ-mod-selector'></div></td>
46                     <td><a href='javascript:void(0);' name='add-circ-mod'>Add</a></td>
47                 </tr>
48             </tbody>
49         </table>
50         <span name='add-circ-mod-group-span'>
51         <a href='javascript:void(0);' name='add-circ-mod-group'>Create New Group</a>
52         </span>&nbsp;&nbsp;<span>
53         <a href='javascript:void(0);' onclick='applyCircModChanges()'>Apply Circ Modifier Changes</a>
54         </span>
55     </div>
56 </div>
57
58 <div class='hidden'><div dojoType='openils.widget.ProgressDialog' jsId='progressDialog'/></div>
59
60 <script type="text/javascript">
61     function format_hard_due_date(name, id) {
62         var item=this.grid.getItem(id);
63         if(!item) return name;
64         switch (this.grid.store.getValue(this.grid.getItem(id), 'hard_due_date')) {
65             case null :
66             case undefined :
67             case 'unset' :
68                 return name;
69             default:
70                 return "<a href='" + oilsBasePath +
71                     "/conify/global/config/hard_due_date?name=" +
72                     encodeURIComponent(name) + "'>" + name + "</a>";
73         }
74     }
75 </script>
76 [% END %]
77