LP#1778571 Fix logic error converting JS bool to DB bool
[Evergreen.git] / Open-ILS / src / templates / staff / cat / volcopy / t_copy_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 class="modal-title">[% l('New Item Note') %]</h4>
6     </div>
7     <div class="modal-body">
8       <div class="row">
9         <div class="col-md-6">
10           <input class="form-control" type="text"
11             ng-model="note.title" placeholder="[% l('Title...') %]"/>
12         </div>
13         <div class="col-md-3">
14           <label>
15             <input type="checkbox" ng-model="note.pub"/>
16             [% l('Public Note') %]
17           </label>
18         </div>
19       </div>
20       <div class="row pad-vert">
21         <div class="col-md-12">
22           <textarea class="form-control" 
23             ng-model="note.value" placeholder="[% l('Note...') %]">
24           </textarea>
25         </div>
26       </div>
27     </div>
28     <div class="modal-footer">
29       <div class="row">
30         <div class="col-md-2">
31           <input type="text" class="form-control" ng-hide="!require_initials" 
32             ng-model="initials" placeholder="[% l('Initials') %]" ng-required="require_initials"/>
33         </div>
34         <div class="col-md-10 pull-right">
35           <input type="submit" class="btn btn-primary" value="[% l('OK') %]"/>
36           <button class="btn btn-warning" ng-click="cancel($event)">[% l('Cancel') %]</button>
37         </div>
38       </div>
39
40       <div class="row pad-vert" ng-if="note_list.length &gt; 0"> 
41         <div class="col-md-12">
42           <div class="row">
43             <div class="col-md-12">
44               <hr/>
45             </div>
46           </div>
47           <div class="row">
48             <div class="col-md-12">
49               <h4 class="pull-left">[% l('Existing Item Notes') %]</h4>
50             </div>
51           </div>
52         </div>
53       </div>
54
55       <div class="row" ng-repeat="n in note_list" ng-init="pub = n.pub() == 't'; title = n.title(); value = n.value()">
56         <div class="col-md-12" ng-show="!n.isdeleted()">
57           <div class="row">
58             <div class="col-md-6">
59               <input class="form-control" type="text" ng-change="n.title(title) && n.ischanged(1)"
60                 ng-model="title" placeholder="[% l('Title...') %]""/>
61             </div>
62             <div class="col-md-3">
63               <label>
64                 <input type="checkbox" ng-model="pub" ng-change="n.pub(pub ? 't' : 'f') && n.ischanged(1)" ng-disabled="deleted"/>
65                 [% l('Public Note') %]
66               </label>
67             </div>
68             <div class="col-md-3">
69               <button type="button" ng-click="n.isdeleted(1)" class="btn btn-warning">[% l('Remove') %]</button>
70             </div>
71           </div>
72           <div class="row pad-vert">
73             <div class="col-md-10">
74               <textarea class="form-control" ng-change="n.value(value) && n.ischanged(1)"
75                 ng-model="value" placeholder="[% l('Note...') %]">
76               </textarea>
77             </div>
78             <div class="col-md-2">
79               {{n.create_date() | date:$root.egDateFormat}} 
80             </div>
81           </div>
82           <div class="row">
83             <div class="col-md-12">
84               <hr/>
85             </div>
86           </div>
87         </div>
88       </div>
89
90     </div>
91 </form>