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">×</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>
9 <div class="modal-body">
11 <div class="col-md-6">
12 <input class="form-control" type="text"
13 ng-model="note.title" placeholder="[% l('Title...') %]"/>
15 <div class="col-md-3">
17 <input type="checkbox" ng-model="note.pub"/>
18 [% l('Public Note') %]
21 <input type="checkbox" ng-model="note.alert"/>
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...') %]">
34 <div class="modal-footer">
36 <div class="col-md-2">
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>
44 <div class="row pad-vert" ng-if="note_list.length > 0">
45 <div class="col-md-12">
47 <div class="col-md-12">
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>
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">
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"/>
68 <div class="col-md-3">
70 <input type="checkbox" ng-model="pub" ng-change="n.pub(pub) && n.ischanged(1)" ng-disabled="deleted"/>
71 [% l('Public Note') %]
74 <input type="checkbox" ng-model="alert" ng-change="n.alert(alert) && n.ischanged(1)" ng-disabled="deleted"/>
78 <div class="col-md-3">
80 <input type="checkbox" ng-model="deleted" ng-change="n.isdeleted(deleted)"/>
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">
93 <div class="col-md-12">