LP#1517596: add missing template file for webstaff patron merge
authorGalen Charlton <gmc@equinoxinitiative.org>
Thu, 23 Feb 2017 14:56:44 +0000 (09:56 -0500)
committerKathy Lussier <klussier@masslnc.org>
Wed, 1 Mar 2017 12:41:06 +0000 (07:41 -0500)
This patch adds a file that was missed in commit df82edde.

To test:

[1] In the web staff client, verify that the patron merge
    button correctly display the dialog box for confirming
    the merge.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/templates/staff/circ/share/t_merge_patrons.tt2 [new file with mode: 0644]

diff --git a/Open-ILS/src/templates/staff/circ/share/t_merge_patrons.tt2 b/Open-ILS/src/templates/staff/circ/share/t_merge_patrons.tt2
new file mode 100644 (file)
index 0000000..f498f60
--- /dev/null
@@ -0,0 +1,32 @@
+<div>
+  <div class="modal-header">
+    <button type="button" class="close"
+      ng-click="cancel()" aria-hidden="true">&times;</button>
+    <h4 class="modal-title">[% l('Merge patrons?') %]</h4>
+  </div>
+  <div class="modal-body">
+      <div class="row">
+          
+          <div class="col-xs-6">
+            <label>
+              <input type="radio" name="lead_record" ng-model="lead_id" ng-value="patron_ids[0]"/></input>
+              [% l('Use as lead') %]
+            </label>
+            <eg-patron-summary patron-id="patron_ids[0]"></eg-patron-summary>
+          </div>
+          <div class="col-xs-6">
+            <label>
+              <input type="radio" name="lead_record" ng-model="lead_id" ng-value="patron_ids[1]"/></input>
+              [% l('Use as lead') %]
+            </label>
+            <eg-patron-summary patron-id="patron_ids[1]"></eg-patron-summary>
+          </div>
+      </div>
+  </div>
+  <div class="modal-footer">
+    <input type="submit" ng-click="ok()"
+        ng-class="{disabled : !lead_id }"
+        class="btn btn-primary" value="[% l('Merge') %]"/>
+    <button class="btn btn-warning" ng-click="cancel()">[% l('Cancel') %]</button>
+  </div>
+</div>