browser client: neg balance users (in progress) collab/berick/web-client-p3-neg-balance
authorBill Erickson <berickxx@gmail.com>
Mon, 5 Oct 2015 02:05:58 +0000 (22:05 -0400)
committerBill Erickson <berickxx@gmail.com>
Mon, 5 Oct 2015 02:05:58 +0000 (22:05 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/templates/staff/admin/local/circ/neg_balance_users.tt2 [new file with mode: 0644]
Open-ILS/src/templates/staff/admin/local/t_splash.tt2
Open-ILS/web/js/ui/default/staff/admin/local/circ/neg_balance_users.js [new file with mode: 0644]

diff --git a/Open-ILS/src/templates/staff/admin/local/circ/neg_balance_users.tt2 b/Open-ILS/src/templates/staff/admin/local/circ/neg_balance_users.tt2
new file mode 100644 (file)
index 0000000..28cb9ad
--- /dev/null
@@ -0,0 +1,29 @@
+[%
+  WRAPPER "staff/base.tt2";
+  ctx.page_title = l("Users with Negative Balances"); 
+  ctx.page_app = "egAdminCirc";
+  ctx.page_ctrl = 'NegBalances';
+%]
+
+[% BLOCK APP_JS %]
+<script src="[% ctx.media_prefix %]/js/ui/default/staff/admin/local/circ/neg_balance_users.js"></script>
+<link rel="stylesheet" href="[% ctx.base_path %]/staff/css/admin.css" />
+[% END %]
+
+<div class="container-fluid" style="text-align:center">
+  <div class="alert alert-info alert-less-pad strong-text-2">
+    [% l('Patrons with Negative Balances') %]
+  </div>
+</div>
+
+<div class="row">
+  <div class="col-md-4">
+    <div class="form-group">
+      <label>[% l('Patron Library') %]</label>
+      <eg-org-selector selected="context_org"></eg-org-selector>
+    </div>
+  </div>
+</div>
+   
+
+[% END %]
index 8aa67de..c55235f 100644 (file)
@@ -22,8 +22,8 @@
     </div>
     <div class="col-md-4">
       <span class="glyphicon glyphicon-pencil"></span>
-      <a target="_self" href="./admin/local/actor/search_filter_group">
-        [% l('Search Filter Groups') %]
+      <a target="_self" href="./admin/local/circ/neg_balance_users">
+        [% l('Patrons with Negative Balances') %]
       </a>
     </div>
   </div>
@@ -42,8 +42,8 @@
     </div>
     <div class="col-md-4">
       <span class="glyphicon glyphicon-pencil"></span>
-      <a target="_self" href="./admin/local/config/standing_penalty">
-        [% l('Standing Penalties') %]
+      <a target="_self" href="./admin/local/actor/search_filter_group">
+        [% l('Search Filter Groups') %]
       </a>
     </div>
   </div>
@@ -62,8 +62,8 @@
     </div>
     <div class="col-md-4">
       <span class="glyphicon glyphicon-pencil"></span>
-      <a target="_self" href="./admin/local/asset/stat_cat_editor">
-        [% l('Statistical Categories Editor') %]
+      <a target="_self" href="./admin/local/config/standing_penalty">
+        [% l('Standing Penalties') %]
       </a>
     </div>
   </div>
         [% l('Field Documentation') %]
       </a>
     </div>
+    <div class="col-md-4">
+      <span class="glyphicon glyphicon-pencil"></span>
+      <a target="_self" href="./admin/local/asset/stat_cat_editor">
+        [% l('Statistical Categories Editor') %]
+      </a>
+    </div>
   </div>
   <div class="row new-entry">
     <div class="col-md-4">
diff --git a/Open-ILS/web/js/ui/default/staff/admin/local/circ/neg_balance_users.js b/Open-ILS/web/js/ui/default/staff/admin/local/circ/neg_balance_users.js
new file mode 100644 (file)
index 0000000..9bf6f5d
--- /dev/null
@@ -0,0 +1,21 @@
+
+angular.module('egAdminCirc',
+    ['ngRoute', 'ui.bootstrap', 'egCoreMod','egUiMod'])
+
+.controller('NegBalances',
+       ['$scope','egCore',
+function($scope , egCore) {
+
+    /*
+    egCore.net.request(
+        'open-ils.actor',
+        'open-ils.actor.users.negative_balance',
+        egCore.auth.token(), $scope.context_org.id();
+        */
+
+
+    egCore.startup.go().then(function() {
+        // stuff
+    });
+
+}])