</link> is not valid HTML
[working/Evergreen.git] / Open-ILS / web / templates / default / conify / global / config / circ_matrix_matchpoint.tt2
index e18d30b..9bf0851 100644 (file)
@@ -1,28 +1,55 @@
 [% ctc.page_title = 'Circulation Policy Configuration' %]
 [% WRAPPER default/base.tt2 %]
-<script>
-    dojo.require('dijit.layout.ContentPane');
-    dojo.require('dijit.form.Button');
-    dojo.require('openils.widget.AutoGrid');
-    openils.Util.addOnLoad(
-        function(){
-            cmGrid.loadAll({order_by:{ccmm:'circ_modifier'}});
-        }
-    );
-</script>
+<script src='[% ctx.media_prefix %]/js/ui/default/conify/global/config/circ_matrix_matchpoint.js'> </script>
 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
     <div>Circulation Policy Configuration</div>
     <div><button dojoType='dijit.form.Button' onClick='cmGrid.showCreatePane()'>New</button></div>
 </div>
-<div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px;'>
-    <table  jsId="cmGrid" 
-            dojoType="openils.widget.AutoGrid" 
-            fieldOrder="['id', 'active', 'org_unit', 'grp', 'circ_modifier', 'marc_type', 'marc_form', 'marc_vr_format']"
-            defaultCellWidth='12'
-            query="{id: '*'}" 
-            fmClass='ccmm' 
+<div dojoType="dijit.layout.ContentPane" layoutAlign="client">
+    <table  jsId="cmGrid"
+            autoHeight='true'
+            dojoType="openils.widget.AutoGrid"
+            fieldOrder="['org_unit', 'active', 'grp', 'circ_modifier', 'marc_type', 'marc_form', 'marc_vr_format']"
+            defaultCellWidth='"auto"'
+            query="{id: '*'}"
+            fmClass='ccmm'
             editStyle='pane'
-            editOnEnter='true'>
+            editOnEnter='true'
+            showColumnPicker='true'
+            columnPickerPrefix='"conify.config.circ_matrix_matchpoint"'>
     </table>
 </div>
+
+<div class='hidden'>
+    <div id='circ-mod-editor' style='border:1px solid #aaa'>
+        <h3>Circ Modifier Count Groups</h3>
+        <table class='oils-generic-table' name='circ-mod-group-table'>
+            <tbody><tr>
+                <td>Total items out</td>
+                <td><input type='text' size='3' name='circ-mod-count'></div></td>
+            </tr><tbody>
+            <tbody name='circ-mod-entry-tbody'>
+                <tr name='circ-mod-entry-row'>
+                    <td name='circ-mod'/>
+                    <td><a name='remove-circ-mod' href='javascript:void(0);'>Remove</a></td>
+                </tr>
+            </tbody>
+            <tbody>
+                <tr>
+                    <td><div name='circ-mod-selector'></div></td>
+                    <td><a href='javascript:void(0);' name='add-circ-mod'>Add</a></td>
+                </tr>
+            </tbody>
+        </table>
+        <span name='add-circ-mod-group-span'>
+        <a href='javascript:void(0);' name='add-circ-mod-group'>Create New Group</a>
+        </span>&nbsp;&nbsp;<span>
+        <a href='javascript:void(0);' onclick='applyCircModChanges()'>Apply Circ Modifier Changes</a>
+        </span>
+    </div>
+</div>
+
+<div class='hidden'><div dojoType='openils.widget.ProgressDialog' jsId='progressDialog'/></div>
+
 [% END %]
+