]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/staff/serials/t_clone_subscription.tt2
LP#1708291: web staff client serials module
[working/Evergreen.git] / Open-ILS / src / templates / staff / serials / t_clone_subscription.tt2
1 <form ng-submit="ok(args)" role="form">
2     <div class="modal-header">
3         <button type="button" class="close" ng-click="cancel()" 
4         aria-hidden="true">&times;</button>
5         <h4 ng-show="subs.length==1" class="modal-title">[% l('Clone Subscription') %]</h4>
6         <h4 ng-show="subs.length>1" class="modal-title">[% l('Clone Subscriptions') %]</h4>
7     </div>
8     <div class="modal-body">
9         <p>[% l('This feature will clone the selected subscriptions and all of their subscription notes, distributions, distribution notes, captions and patterns, streams, and routing list users.') %]</p>
10         <p>[% l('Holdings-related objects, like issuances, items, units, and summaries will not be cloned.') %]</p>
11         <p ng-show="subs.length == 1">[% l('To which bibliographic record should the new subscription be attached?') %]</p>
12         <p ng-show="subs.length > 1">[% l('To which bibliographic record should the new subscriptions be attached?') %]</p>
13         <div class="row">
14             <div class="col-md-1">
15                 <input type="radio" name="which_radio_button" id="same_bib"
16                     ng-model="args.which_radio_button" value="same_bib">
17                 </input>
18             </div>
19             <div class="col-md-11">
20                 <label ng-if="subs.length==1" for="same_bib">
21                     [% l('Same record as the selected subscription') %]
22                 </label>
23                 <label ng-if="subs.length>1" for="same_bib">
24                     [% l('Same record as the selected subscriptions') %]
25                 </label>
26             </div>
27         </div>
28         <div class="row">
29             <div class="col-md-1">
30                 <input type="radio" name="which_radio_button"
31                     ng-model="args.which_radio_button" value="different_bib">
32                 </input>
33             </div>
34             <div class="col-md-3">
35                 <label for="different_bib">
36                     [% l('Record specified by this Bid ID:') %]
37                 </label>
38             </div>
39             <div class="col-md-8">
40                 <input type="number" class="form-control" min="1"
41                     ng-click="args.which_radio_button='different_bib'"
42                     ng-model-options="{ debounce: 1000 }"
43                     id="different_bib" ng-model="args.bib_id"/>
44                 <div ng-show="args.bib_id">{{mvr.title}}</div>
45                 <div class="alert alert-warning" ng-show="bibNotFound">
46                     [% l('Not Found') %]
47                 </div>
48             </div>
49         </div>
50     </div>
51     <div class="modal-footer">
52         <input
53             ng-disabled="!args.which_radio_button||(args.which_radio_button=='different_bib'&&(!args.bib_id||bibNotFound))"
54             type="submit" class="btn btn-primary" value="[% l('OK') %]"/>
55         <button class="btn btn-warning" ng-click="cancel()">[% l('Cancel') %]</button>
56     </div>
57 </form>