webstaff: add template for patron merge dialog
authorGalen Charlton <gmc@esilibrary.com>
Tue, 15 Nov 2016 21:34:02 +0000 (16:34 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 15 Nov 2016 21:34:02 +0000 (16:34 -0500)
This had been skipped by mistake.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
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>