]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/staff/serials/t_notes.tt2
LP#1708291: remove initials field for serial notes
[working/Evergreen.git] / Open-ILS / src / templates / staff / serials / t_notes.tt2
1 <form ng-submit="ok(note)" 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-if="note_type == 'subscription'" class="modal-title">[% l('New Subscription Note') %]</h4>
6       <h4 ng-if="note_type == 'distribution'" class="modal-title">[% l('New Distribution Note') %]</h4>
7       <h4 ng-if="note_type == 'item'"         class="modal-title">[% l('New Item Note') %]</h4>
8     </div>
9     <div class="modal-body">
10       <div class="row">
11         <div class="col-md-6">
12           <input class="form-control" type="text"
13             ng-model="note.title" placeholder="[% l('Title...') %]"/>
14         </div>
15         <div class="col-md-3">
16           <label>
17             <input type="checkbox" ng-model="note.pub"/>
18             [% l('Public Note') %]
19           </label>
20           <label>
21             <input type="checkbox" ng-model="note.alert"/>
22             [% l('Alert Note') %]
23           </label>
24         </div>
25       </div>
26       <div class="row pad-vert">
27         <div class="col-md-12">
28           <textarea class="form-control" 
29             ng-model="note.value" placeholder="[% l('Note...') %]">
30           </textarea>
31         </div>
32       </div>
33     </div>
34     <div class="modal-footer">
35       <div class="row">
36         <div class="col-md-2">
37         </div>
38         <div class="col-md-10 pull-right">
39           <input type="submit" class="btn btn-primary" value="[% l('OK') %]"/>
40           <button class="btn btn-warning" ng-click="cancel($event)">[% l('Cancel') %]</button>
41         </div>
42       </div>
43
44       <div class="row pad-vert" ng-if="note_list.length &gt; 0"> 
45         <div class="col-md-12">
46           <div class="row">
47             <div class="col-md-12">
48               <hr/>
49             </div>
50           </div>
51           <div class="row">
52             <div class="col-md-12">
53               <h4 ng-if="note_type == 'subscription'" class="pull-left">[% l('Existing Subscription Notes') %]</h4>
54               <h4 ng-if="note_type == 'distribution'" class="pull-left">[% l('Existing Distribution Notes') %]</h4>
55               <h4 ng-if="note_type == 'item'"         class="pull-left">[% l('Existing Item Notes') %]</h4>
56             </div>
57           </div>
58         </div>
59       </div>
60
61       <div class="row" ng-repeat="n in note_list" ng-init="pub = n.pub() == 't'; alert = n.alert() == 't'; title = n.title(); value = n.value(); deleted = n.isdeleted()">
62         <div class="col-md-12">
63           <div class="row">
64             <div class="col-md-6">
65               <input class="form-control" type="text" ng-change="n.title(title) && n.ischanged(1)"
66                 ng-model="title" placeholder="[% l('Title...') %]" ng-disabled="deleted"/>
67             </div>
68             <div class="col-md-3">
69               <label>
70                 <input type="checkbox" ng-model="pub" ng-change="n.pub(pub) && n.ischanged(1)" ng-disabled="deleted"/>
71                 [% l('Public Note') %]
72               </label>
73               <label>
74                 <input type="checkbox" ng-model="alert" ng-change="n.alert(alert) && n.ischanged(1)" ng-disabled="deleted"/>
75                 [% l('Alert Note') %]
76               </label>
77             </div>
78             <div class="col-md-3">
79               <label>
80                 <input type="checkbox" ng-model="deleted" ng-change="n.isdeleted(deleted)"/>
81                 [% l('Deleted?') %]
82               </label>
83             </div>
84           </div>
85           <div class="row pad-vert">
86             <div class="col-md-12">
87               <textarea class="form-control" ng-change="n.value(value) && n.ischanged(1)"
88                 ng-model="value" placeholder="[% l('Note...') %]" ng-disabled="deleted">
89               </textarea>
90             </div>
91           </div>
92           <div class="row">
93             <div class="col-md-12">
94               <hr/>
95             </div>
96           </div>
97         </div>
98       </div>
99
100     </div>
101 </form>