|
Lines 5-480
Link Here
|
| 5 |
[% USE ColumnsSettings %] |
5 |
[% USE ColumnsSettings %] |
| 6 |
[% SET footerjs = 1 %] |
6 |
[% SET footerjs = 1 %] |
| 7 |
[% INCLUDE 'doc-head-open.inc' %] |
7 |
[% INCLUDE 'doc-head-open.inc' %] |
| 8 |
<title>Koha › Tools › Notices[% IF ( add_form or copy_form ) %][% IF ( modify ) %] › Modify notice[% ELSE %] › Add notice[% END %][% END %][% IF ( add_validate or copy_validate) %] › Notice added[% END %][% IF ( delete_confirm ) %] › Confirm deletion[% END %]</title> |
8 |
<title> |
|
|
9 |
Koha › Tools › Notices |
| 10 |
[% IF ( add_form or copy_form ) %] |
| 11 |
[% IF ( modify ) %] |
| 12 |
› Modify notice |
| 13 |
[% ELSE %] |
| 14 |
› Add notice |
| 15 |
[% END %] |
| 16 |
[% END %] |
| 17 |
[% IF ( add_validate or copy_validate) %] |
| 18 |
› Notice added |
| 19 |
[% END %] |
| 20 |
[% IF ( delete_confirm ) %] |
| 21 |
› Confirm deletion |
| 22 |
[% END %] |
| 23 |
</title> |
| 9 |
[% INCLUDE 'doc-head-close.inc' %] |
24 |
[% INCLUDE 'doc-head-close.inc' %] |
| 10 |
<style>#preview_template .modal-dialog { width : 80%; } .spinner { display: none; } @media (max-width: 767px) { #preview_template { margin: 0; width : auto; } }</style> |
25 |
<style>#preview_template .modal-dialog { width : 80%; } .spinner { display: none; } @media (max-width: 767px) { #preview_template { margin: 0; width : auto; } }</style> |
| 11 |
</head> |
26 |
</head> |
| 12 |
|
27 |
|
| 13 |
<body id="tools_letter" class="tools"> |
28 |
<body id="tools_letter" class="tools"> |
| 14 |
[% INCLUDE 'header.inc' %] |
29 |
[% INCLUDE 'header.inc' %] |
| 15 |
[% INCLUDE 'letters-search.inc' %] |
30 |
[% INCLUDE 'letters-search.inc' %] |
| 16 |
|
31 |
|
| 17 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › [% IF ( add_form or copy_form) %][% IF ( modify ) %]<a href="/cgi-bin/koha/tools/letter.pl">Notices & slips</a> › Modify notice[% ELSE %] <a href="/cgi-bin/koha/tools/letter.pl">Notices & slips</a> › Add notice[% END %][% ELSE %][% IF ( add_validate or copy_validate) %] <a href="/cgi-bin/koha/tools/letter.pl">Notices & slips</a> › Notice added[% ELSE %][% IF ( delete_confirm ) %] <a href="/cgi-bin/koha/tools/letter.pl">Notices & slips</a> › Confirm deletion[% ELSE %]Notices & slips[% END %][% END %][% END %]</div> |
32 |
<div id="breadcrumbs"> |
|
|
33 |
<a href="/cgi-bin/koha/mainpage.pl">Home</a> › |
| 34 |
<a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › |
| 35 |
[% IF ( add_form or copy_form) %] |
| 36 |
[% IF ( modify ) %] |
| 37 |
<a href="/cgi-bin/koha/tools/letter.pl">Notices & slips</a> › |
| 38 |
Modify notice |
| 39 |
[% ELSE %] |
| 40 |
<a href="/cgi-bin/koha/tools/letter.pl">Notices & slips</a> › |
| 41 |
Add notice |
| 42 |
[% END %] |
| 43 |
[% ELSE %] |
| 44 |
[% IF ( add_validate or copy_validate) %] |
| 45 |
<a href="/cgi-bin/koha/tools/letter.pl">Notices & slips</a> › |
| 46 |
Notice added |
| 47 |
[% ELSE %] |
| 48 |
[% IF ( delete_confirm ) %] |
| 49 |
<a href="/cgi-bin/koha/tools/letter.pl">Notices & slips</a> › |
| 50 |
Confirm deletion |
| 51 |
[% ELSE %] |
| 52 |
Notices & slips |
| 53 |
[% END %] |
| 54 |
[% END %] |
| 55 |
[% END %] |
| 56 |
</div> <!-- /#breadcrumbs --> |
| 18 |
|
57 |
|
| 19 |
<div id="preview_template" class="modal in" tabindex="-1" role="dialog" aria-labelledby="preview_template_label" aria-hidden="true"> |
58 |
<div id="preview_template" class="modal in" tabindex="-1" role="dialog" aria-labelledby="preview_template_label" aria-hidden="true"> |
| 20 |
<div class="modal-dialog modal-lg"> |
59 |
<div class="modal-dialog modal-lg"> |
| 21 |
<div class="modal-content"> |
60 |
<div class="modal-content"> |
| 22 |
<div class="modal-header"> |
61 |
<div class="modal-header"> |
| 23 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
62 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
| 24 |
<h3 id="preview_template_label">Preview notice template</h3> |
63 |
<h3 id="preview_template_label">Preview notice template</h3> |
| 25 |
</div> |
64 |
</div> |
| 26 |
<div class="modal-body"> |
65 |
<div class="modal-body"> |
| 27 |
<div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div> |
66 |
<div id="loading"> |
| 28 |
</div> |
67 |
<img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading |
| 29 |
<div class="modal-footer"> |
68 |
</div> |
| 30 |
<!-- TODO <a href="#" class="btn btn-default" id="preview_template_button" role="button" data-toggle="modal">Convert using the Template Toolkit syntax</a>--> |
69 |
</div> |
| 31 |
<button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button> |
70 |
<div class="modal-footer"> |
| 32 |
</div> |
71 |
<!-- TODO <a href="#" class="btn btn-default" id="preview_template_button" role="button" data-toggle="modal">Convert using the Template Toolkit syntax</a>--> |
| 33 |
</div> |
72 |
<button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button> |
|
|
73 |
</div> |
| 74 |
</div> |
| 75 |
</div> |
| 34 |
</div> |
76 |
</div> |
| 35 |
</div> |
|
|
| 36 |
|
| 37 |
[% IF add_form or copy_form %] |
| 38 |
<div class="main container-fluid"> |
| 39 |
<div class="row"> |
| 40 |
<div class="col-md-8 col-md-offset-2"> |
| 41 |
[% ELSE %] |
| 42 |
<div class="main container-fluid"> |
| 43 |
<div class="row"> |
| 44 |
<div class="col-sm-10 col-sm-push-2"> |
| 45 |
<main> |
| 46 |
[% END %] |
| 47 |
|
77 |
|
| 48 |
[% IF ( no_op_set ) %] |
78 |
[% IF add_form or copy_form %] |
| 49 |
<h1>Notices & slips</h1> |
79 |
<div class="main container-fluid"> |
| 50 |
<form method="get" action="/cgi-bin/koha/tools/letter.pl" id="selectlibrary"> |
80 |
<div class="row"> |
| 51 |
<input type="hidden" name="searchfield" value="[% searchfield | html %]" /> |
81 |
<div class="col-md-8 col-md-offset-2"> |
| 52 |
[% UNLESS independant_branch %] |
82 |
[% ELSE %] |
| 53 |
<p> |
83 |
<div class="main container-fluid"> |
| 54 |
Select a library : |
84 |
<div class="row"> |
| 55 |
<select name="branchcode" id="branch" style="width:20em;"> |
85 |
<div class="col-sm-10 col-sm-push-2"> |
| 56 |
<option value="*">All libraries</option> |
86 |
<main> |
| 57 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode ) %] |
|
|
| 58 |
</select> |
| 59 |
</p> |
| 60 |
[% END %] |
87 |
[% END %] |
| 61 |
</form> |
|
|
| 62 |
|
88 |
|
| 63 |
<div id="toolbar" class="btn-toolbar"> |
89 |
[% IF ( no_op_set ) %] |
| 64 |
<div class="btn-group"> |
90 |
<h1>Notices & slips</h1> |
| 65 |
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> New notice <span class="caret"></span></button> |
91 |
<form method="get" action="/cgi-bin/koha/tools/letter.pl" id="selectlibrary"> |
| 66 |
<ul class="dropdown-menu"> |
92 |
<input type="hidden" name="searchfield" value="[% searchfield | html %]" /> |
| 67 |
<li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=acquisition">Acquisition</a></li> |
93 |
[% UNLESS independant_branch %] |
| 68 |
<li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=catalogue">Catalog</a></li> |
94 |
<p> |
| 69 |
<li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=circulation">Circulation</a></li> |
95 |
Select a library: |
| 70 |
<li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=claimacquisition">Claim acquisition</a></li> |
96 |
<select name="branchcode" id="branch" style="width:20em;"> |
| 71 |
<li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=claimissues">Claim serial issue</a></li> |
97 |
<option value="*">All libraries</option> |
| 72 |
<li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=reserves">Holds</a></li> |
98 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode ) %] |
| 73 |
<li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=orderacquisition">Order acquisition</a></li> |
99 |
</select> |
| 74 |
<li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=members">Patrons</a></li> |
100 |
</p> |
| 75 |
<li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=serial">Serials (new issue)</a></li> |
101 |
[% END %] |
| 76 |
<li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=suggestions">Suggestions</a></li> |
102 |
</form> |
| 77 |
|
103 |
|
| 78 |
</ul> |
104 |
<div id="toolbar" class="btn-toolbar"> |
| 79 |
</div> |
105 |
<div class="btn-group"> |
| 80 |
</div> |
106 |
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> New notice <span class="caret"></span></button> |
|
|
107 |
<ul class="dropdown-menu"> |
| 108 |
<li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=acquisition">Acquisition</a></li> |
| 109 |
<li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=catalogue">Catalog</a></li> |
| 110 |
<li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=circulation">Circulation</a></li> |
| 111 |
<li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=claimacquisition">Claim acquisition</a></li> |
| 112 |
<li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=claimissues">Claim serial issue</a></li> |
| 113 |
<li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=reserves">Holds</a></li> |
| 114 |
<li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=orderacquisition">Order acquisition</a></li> |
| 115 |
<li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=members">Patrons</a></li> |
| 116 |
<li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=serial">Serials (new issue)</a></li> |
| 117 |
<li><a href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=suggestions">Suggestions</a></li> |
| 81 |
|
118 |
|
| 82 |
[% IF ( search ) %] |
119 |
</ul> |
| 83 |
<p>You searched for <b>[% searchfield | html %]</b></p> |
120 |
</div> |
| 84 |
[% END %] |
121 |
</div> |
| 85 |
[% IF ( letter && !independant_branch) %] |
122 |
|
| 86 |
[% select_for_copy = BLOCK %] |
123 |
[% IF ( search ) %] |
| 87 |
<select name="branchcode"> |
124 |
<p>You searched for <b>[% searchfield | html %]</b></p> |
| 88 |
[% FOREACH l IN Branches.all() %] |
|
|
| 89 |
<option value="[% l.branchcode | html %]">Copy to [% l.branchname | html %]</option> |
| 90 |
[% END %] |
| 91 |
</select> |
| 92 |
[% END %] |
| 93 |
[% END %] |
| 94 |
[% IF letter %] |
| 95 |
<table id="lettert"> |
| 96 |
<thead> |
| 97 |
<tr> |
| 98 |
<th>Library</th> |
| 99 |
<th>Module</th> |
| 100 |
<th>Code</th> |
| 101 |
<th>Name</th> |
| 102 |
<th class="nosort">Copy notice</th> |
| 103 |
<th class="nosort">Actions</th> |
| 104 |
</tr> |
| 105 |
</thead> |
| 106 |
<tbody> |
| 107 |
[% FOREACH lette IN letter %] |
| 108 |
[% can_edit = lette.branchcode || !independant_branch %] |
| 109 |
<tr> |
| 110 |
<td>[% IF lette.branchname %][% lette.branchname | html %][% ELSE %](All libraries)[% END %]</td> |
| 111 |
<td> |
| 112 |
[% SWITCH lette.module %] |
| 113 |
[% CASE 'acquisition' %]<span>Acquisition</span> |
| 114 |
[% CASE 'catalogue' %]<span>Catalog</span> |
| 115 |
[% CASE 'circulation' %]<span>Circulation</span> |
| 116 |
[% CASE 'orderacquisition' %]<span>Order acquisition</span> |
| 117 |
[% CASE 'claimacquisition' %]<span>Claim acquisition</span> |
| 118 |
[% CASE 'claimissues' %]<span>Claim serial issue</span> |
| 119 |
[% CASE 'reserves' %]<span>Holds</span> |
| 120 |
[% CASE 'members' %]<span>Patrons</span> |
| 121 |
[% CASE 'serial' %]<span>Serials (new issue)</span> |
| 122 |
[% CASE 'suggestions' %]<span>Suggestions</span> |
| 123 |
[% CASE %]<span>[% lette.module | html %]</span> |
| 124 |
[% END %] |
| 125 |
</td> |
| 126 |
<td>[% lette.code | html %]</td> |
| 127 |
<td>[% lette.name | html %]</td> |
| 128 |
<td class="actions"> |
| 129 |
[% IF !independant_branch || !lette.branchcode %] |
| 130 |
<form method="post" action="/cgi-bin/koha/tools/letter.pl"> |
| 131 |
<input type="hidden" name="op" value="copy_form" /> |
| 132 |
<input type="hidden" name="oldbranchcode" value="[% lette.branchcode | html %]" /> |
| 133 |
<input type="hidden" name="module" value="[% lette.module | html %]" /> |
| 134 |
<input type="hidden" name="code" value="[% lette.code | html %]" /> |
| 135 |
[% IF independant_branch %] |
| 136 |
<input type="hidden" name="branchcode" value="[% independant_branch | html %]" /> |
| 137 |
[% ELSE %] |
| 138 |
[% select_for_copy | $raw %] |
| 139 |
[% END %] |
| 140 |
<button class="btn btn-default btn-xs"><i class="fa fa-clone"></i> Copy</button> |
| 141 |
</form> |
| 142 |
[% END %] |
125 |
[% END %] |
| 143 |
</td> |
126 |
|
| 144 |
<td class="actions"> |
127 |
[% IF ( letter && !independant_branch) %] |
| 145 |
[% IF can_edit %] |
128 |
[% select_for_copy = BLOCK %] |
| 146 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/tools/letter.pl?op=add_form&branchcode=[% lette.branchcode | html %]&module=[% lette.module | html %]&code=[% lette.code | html %]"><i class="fa fa-pencil"></i> Edit</a> |
129 |
<select name="branchcode"> |
|
|
130 |
[% FOREACH l IN Branches.all() %] |
| 131 |
<option value="[% l.branchcode | html %]">Copy to [% l.branchname | html %]</option> |
| 132 |
[% END %] |
| 133 |
</select> |
| 134 |
[% END %] |
| 147 |
[% END %] |
135 |
[% END %] |
| 148 |
[% IF !lette.protected && can_edit %] |
136 |
|
| 149 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/tools/letter.pl?op=delete_confirm&branchcode=[% lette.branchcode | html %]&module=[% lette.module | html %]&code=[% lette.code | html %]"><i class="fa fa-trash"></i> Delete</a> |
137 |
[% IF letter %] |
|
|
138 |
<table id="lettert"> |
| 139 |
<thead> |
| 140 |
<tr> |
| 141 |
<th>Library</th> |
| 142 |
<th>Module</th> |
| 143 |
<th>Code</th> |
| 144 |
<th>Name</th> |
| 145 |
<th class="nosort">Copy notice</th> |
| 146 |
<th class="nosort">Actions</th> |
| 147 |
</tr> |
| 148 |
</thead> |
| 149 |
<tbody> |
| 150 |
[% FOREACH lette IN letter %] |
| 151 |
[% can_edit = lette.branchcode || !independant_branch %] |
| 152 |
<tr> |
| 153 |
<td> |
| 154 |
[% IF lette.branchname %] |
| 155 |
[% lette.branchname | html %] |
| 156 |
[% ELSE %] |
| 157 |
(All libraries) |
| 158 |
[% END %] |
| 159 |
</td> |
| 160 |
<td> |
| 161 |
[% SWITCH lette.module %] |
| 162 |
[% CASE 'acquisition' %]<span>Acquisition</span> |
| 163 |
[% CASE 'catalogue' %]<span>Catalog</span> |
| 164 |
[% CASE 'circulation' %]<span>Circulation</span> |
| 165 |
[% CASE 'orderacquisition' %]<span>Order acquisition</span> |
| 166 |
[% CASE 'claimacquisition' %]<span>Claim acquisition</span> |
| 167 |
[% CASE 'claimissues' %]<span>Claim serial issue</span> |
| 168 |
[% CASE 'reserves' %]<span>Holds</span> |
| 169 |
[% CASE 'members' %]<span>Patrons</span> |
| 170 |
[% CASE 'serial' %]<span>Serials (new issue)</span> |
| 171 |
[% CASE 'suggestions' %]<span>Suggestions</span> |
| 172 |
[% CASE %]<span>[% lette.module | html %]</span> |
| 173 |
[% END %] |
| 174 |
</td> |
| 175 |
<td>[% lette.code | html %]</td> |
| 176 |
<td>[% lette.name | html %]</td> |
| 177 |
<td class="actions"> |
| 178 |
[% IF !independant_branch || !lette.branchcode %] |
| 179 |
<form method="post" action="/cgi-bin/koha/tools/letter.pl"> |
| 180 |
<input type="hidden" name="op" value="copy_form" /> |
| 181 |
<input type="hidden" name="oldbranchcode" value="[% lette.branchcode | html %]" /> |
| 182 |
<input type="hidden" name="module" value="[% lette.module | html %]" /> |
| 183 |
<input type="hidden" name="code" value="[% lette.code | html %]" /> |
| 184 |
[% IF independant_branch %] |
| 185 |
<input type="hidden" name="branchcode" value="[% independant_branch | html %]" /> |
| 186 |
[% ELSE %] |
| 187 |
[% select_for_copy | $raw %] |
| 188 |
[% END %] |
| 189 |
<button class="btn btn-default btn-xs"><i class="fa fa-clone"></i> Copy</button> |
| 190 |
</form> |
| 191 |
[% END %] |
| 192 |
</td> |
| 193 |
<td class="actions"> |
| 194 |
[% IF can_edit %] |
| 195 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/tools/letter.pl?op=add_form&branchcode=[% lette.branchcode | html %]&module=[% lette.module | html %]&code=[% lette.code | html %]"><i class="fa fa-pencil"></i> Edit</a> |
| 196 |
[% END %] |
| 197 |
[% IF !lette.protected && can_edit %] |
| 198 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/tools/letter.pl?op=delete_confirm&branchcode=[% lette.branchcode | html %]&module=[% lette.module | html %]&code=[% lette.code | html %]"><i class="fa fa-trash"></i> Delete</a> |
| 199 |
[% END %] |
| 200 |
</td> |
| 201 |
</tr> |
| 202 |
[% END %] |
| 203 |
</tbody> |
| 204 |
</table> |
| 205 |
[% ELSE %] |
| 206 |
<div class="dialog message"> |
| 207 |
[% IF ( branchcode ) %] |
| 208 |
<p>There are no notices for this library.</p> |
| 209 |
[% ELSE %] |
| 210 |
<p>There are no notices.</p> |
| 211 |
[% END %] |
| 212 |
</div> |
| 150 |
[% END %] |
213 |
[% END %] |
| 151 |
</td> |
214 |
[% END %] |
| 152 |
</tr> |
|
|
| 153 |
[% END %] |
| 154 |
</tbody> |
| 155 |
</table> |
| 156 |
[% ELSE %] |
| 157 |
<div class="dialog message"> |
| 158 |
[% IF ( branchcode ) %] |
| 159 |
<p>There are no notices for this library.</p> |
| 160 |
[% ELSE %] |
| 161 |
<p>There are no notices.</p> |
| 162 |
[% END %] |
| 163 |
</div> |
| 164 |
[% END %] |
| 165 |
[% END %] |
| 166 |
|
215 |
|
| 167 |
[% IF add_form or copy_form %] |
216 |
[% IF add_form or copy_form %] |
| 168 |
<h1>[% IF ( modify ) %]Modify notice[% ELSE %]Add notice[% END %]</h1> |
217 |
<h1>[% IF ( modify ) %]Modify notice[% ELSE %]Add notice[% END %]</h1> |
| 169 |
|
218 |
|
| 170 |
<div id="toolbar" class="btn-toolbar"> |
219 |
<div id="toolbar" class="btn-toolbar"> |
| 171 |
<div class="btn-group"> |
220 |
<div class="btn-group"> |
| 172 |
<button class="btn btn-default" id="submit_form"><i class="fa fa-save"></i> Save</button> |
221 |
<button class="btn btn-default" id="submit_form"><i class="fa fa-save"></i> Save</button> |
| 173 |
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown"> |
222 |
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown"> |
| 174 |
<span class="caret"></span> |
223 |
<span class="caret"></span> |
| 175 |
</button> |
224 |
</button> |
| 176 |
<ul class="dropdown-menu"> |
225 |
<ul class="dropdown-menu"> |
| 177 |
<li><a id="saveandcontinue" href="#">Save and continue editing</a></li> |
226 |
<li><a id="saveandcontinue" href="#">Save and continue editing</a></li> |
| 178 |
</ul> |
227 |
</ul> |
| 179 |
</div> |
228 |
</div> |
| 180 |
<a class="btn btn-default cancel" href="/cgi-bin/koha/tools/letter.pl"><i class="fa fa-remove"></i> Cancel</a> |
229 |
<a class="btn btn-default cancel" href="/cgi-bin/koha/tools/letter.pl"><i class="fa fa-remove"></i> Cancel</a> |
| 181 |
</div> |
230 |
</div> |
| 182 |
|
231 |
|
| 183 |
<form id="add_notice" name="Aform" method="post" enctype="multipart/form-data" class="validate"> |
232 |
<form id="add_notice" name="Aform" method="post" enctype="multipart/form-data" class="validate"> |
| 184 |
[% IF add_form %] |
233 |
[% IF add_form %] |
| 185 |
<input type="hidden" name="op" id="op" value="add_validate" /> |
234 |
<input type="hidden" name="op" id="op" value="add_validate" /> |
| 186 |
[% ELSE %] |
235 |
[% ELSE %] |
| 187 |
<input type="hidden" name="op" id="op" value="copy_validate" /> |
236 |
<input type="hidden" name="op" id="op" value="copy_validate" /> |
| 188 |
[% END %] |
237 |
[% END %] |
| 189 |
|
238 |
|
| 190 |
<input type="hidden" name="checked" value="0" /> |
239 |
<input type="hidden" name="checked" value="0" /> |
| 191 |
[% IF ( modify ) %] |
|
|
| 192 |
<input type="hidden" name="add" value="0" /> |
| 193 |
[% ELSE %] |
| 194 |
<input type="hidden" name="add" value="1" /> |
| 195 |
[% END %] |
| 196 |
<fieldset class="rows"> |
| 197 |
<input type="hidden" name="oldbranchcode" value="[% oldbranchcode | html %]" /> |
| 198 |
<ol> |
| 199 |
[% IF independant_branch %] |
| 200 |
<input type="hidden" name="branchcode" value="[% independant_branch | html %]" /> |
| 201 |
[% ELSE %] |
| 202 |
<li> |
| 203 |
|
240 |
|
| 204 |
[% IF adding %] |
241 |
[% IF ( modify ) %] |
| 205 |
<label for="branch">Library:</label> |
242 |
<input type="hidden" name="add" value="0" /> |
| 206 |
<select name="branchcode" id="branch" style="width:20em;"> |
243 |
[% ELSE %] |
| 207 |
<option value="">All libraries</option> |
244 |
<input type="hidden" name="add" value="1" /> |
| 208 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode ) %] |
245 |
[% END %] |
| 209 |
</select> |
246 |
|
| 210 |
[% ELSE %] |
247 |
<fieldset class="rows"> |
| 211 |
<span class="label">Library:</span> |
248 |
<input type="hidden" name="oldbranchcode" value="[% oldbranchcode | html %]" /> |
| 212 |
<input type="hidden" id="branch" name="branchcode" value="[% branchcode | html %]" /> |
249 |
[% IF independant_branch %] |
| 213 |
[% IF ( branchcode ) %] |
250 |
<input type="hidden" name="branchcode" value="[% independant_branch | html %]" /> |
| 214 |
[% Branches.GetName( branchcode ) | html %] |
251 |
<ol> |
| 215 |
[% ELSE %] |
252 |
[% ELSE %] |
| 216 |
All libraries |
253 |
<ol> |
| 217 |
[% END %] |
254 |
<li> |
| 218 |
[% END %] |
255 |
[% IF adding %] |
| 219 |
</li> |
256 |
<label for="branch">Library:</label> |
| 220 |
[% END %] |
257 |
<select name="branchcode" id="branch" style="width:20em;"> |
| 221 |
<li> |
258 |
<option value="">All libraries</option> |
| 222 |
<label for="module">Koha module:</label> |
259 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode ) %] |
| 223 |
<input type="hidden" name="oldmodule" value="[% module | html %]" /> |
260 |
</select> |
| 224 |
[% IF adding %] |
261 |
[% ELSE %] |
| 225 |
<select name="module" id="newmodule"> |
262 |
<span class="label">Library:</span> |
| 226 |
[% ELSE %] |
263 |
<input type="hidden" id="branch" name="branchcode" value="[% branchcode | html %]" /> |
| 227 |
<select name="module" id="module"> |
264 |
[% IF ( branchcode ) %] |
| 228 |
[% END %] |
265 |
[% Branches.GetName( branchcode ) | html %] |
|
|
266 |
[% ELSE %] |
| 267 |
All libraries |
| 268 |
[% END %] |
| 269 |
[% END %] |
| 270 |
</li> |
| 271 |
[% END %] |
| 272 |
<li> |
| 273 |
<label for="module">Koha module:</label> |
| 274 |
<input type="hidden" name="oldmodule" value="[% module | html %]" /> |
| 275 |
[% IF adding %] |
| 276 |
<select name="module" id="newmodule"> |
| 277 |
[% ELSE %] |
| 278 |
<select name="module" id="module"> |
| 279 |
[% END %] |
| 229 |
[% IF ( module == "acquisition" ) %] |
280 |
[% IF ( module == "acquisition" ) %] |
| 230 |
<option value="acquisition" selected="selected">Acquisition</option> |
281 |
<option value="acquisition" selected="selected">Acquisition</option> |
| 231 |
[% ELSE %] |
282 |
[% ELSE %] |
| 232 |
<option value="acquisition" >Acquisition</option> |
283 |
<option value="acquisition" >Acquisition</option> |
| 233 |
[% END %] |
284 |
[% END %] |
| 234 |
[% IF ( module == "catalogue" ) %] |
285 |
[% IF ( module == "catalogue" ) %] |
| 235 |
<option value="catalogue" selected="selected">Catalog</option> |
286 |
<option value="catalogue" selected="selected">Catalog</option> |
| 236 |
[% ELSE %] |
287 |
[% ELSE %] |
| 237 |
<option value="catalogue" >Catalog</option> |
288 |
<option value="catalogue" >Catalog</option> |
| 238 |
[% END %] |
289 |
[% END %] |
| 239 |
[% IF ( module == "circulation" ) %] |
290 |
[% IF ( module == "circulation" ) %] |
| 240 |
<option value="circulation" selected="selected">Circulation</option> |
291 |
<option value="circulation" selected="selected">Circulation</option> |
| 241 |
[% ELSE %] |
292 |
[% ELSE %] |
| 242 |
<option value="circulation">Circulation</option> |
293 |
<option value="circulation">Circulation</option> |
| 243 |
[% END %] |
294 |
[% END %] |
| 244 |
[% IF ( module == "orderacquisition" ) %] |
295 |
[% IF ( module == "orderacquisition" ) %] |
| 245 |
<option value="orderacquisition" selected="selected">Order acquisition</option> |
296 |
<option value="orderacquisition" selected="selected">Order acquisition</option> |
| 246 |
[% ELSE %] |
297 |
[% ELSE %] |
| 247 |
<option value="orderacquisition">Order acquisition</option> |
298 |
<option value="orderacquisition">Order acquisition</option> |
| 248 |
[% END %] |
299 |
[% END %] |
| 249 |
[% IF ( module == "claimacquisition" ) %] |
300 |
[% IF ( module == "claimacquisition" ) %] |
| 250 |
<option value="claimacquisition" selected="selected">Claim acquisition</option> |
301 |
<option value="claimacquisition" selected="selected">Claim acquisition</option> |
| 251 |
[% ELSE %] |
302 |
[% ELSE %] |
| 252 |
<option value="claimacquisition">Claim acquisition</option> |
303 |
<option value="claimacquisition">Claim acquisition</option> |
| 253 |
[% END %] |
304 |
[% END %] |
| 254 |
[% IF ( module == "claimissues" ) %] |
305 |
[% IF ( module == "claimissues" ) %] |
| 255 |
<option value="claimissues" selected="selected">Claim serial issue</option> |
306 |
<option value="claimissues" selected="selected">Claim serial issue</option> |
| 256 |
[% ELSE %] |
307 |
[% ELSE %] |
| 257 |
<option value="claimissues">Claim serial issue</option> |
308 |
<option value="claimissues">Claim serial issue</option> |
| 258 |
[% END %] |
309 |
[% END %] |
| 259 |
[% IF ( module == "reserves" ) %] |
310 |
[% IF ( module == "reserves" ) %] |
| 260 |
<option value="reserves" selected="selected">Holds</option> |
311 |
<option value="reserves" selected="selected">Holds</option> |
| 261 |
[% ELSE %] |
312 |
[% ELSE %] |
| 262 |
<option value="reserves">Holds</option> |
313 |
<option value="reserves">Holds</option> |
| 263 |
[% END %] |
314 |
[% END %] |
| 264 |
[% IF ( module == "members" ) %] |
315 |
[% IF ( module == "members" ) %] |
| 265 |
<option value="members" selected="selected">Patrons</option> |
316 |
<option value="members" selected="selected">Patrons</option> |
| 266 |
[% ELSE %] |
317 |
[% ELSE %] |
| 267 |
<option value="members">Patrons</option> |
318 |
<option value="members">Patrons</option> |
| 268 |
[% END %] |
319 |
[% END %] |
| 269 |
[% IF ( module == "serial" ) %] |
320 |
[% IF ( module == "serial" ) %] |
| 270 |
<option value="serial" selected="selected">Serials (new issue)</option> |
321 |
<option value="serial" selected="selected">Serials (new issue)</option> |
| 271 |
[% ELSE %] |
322 |
[% ELSE %] |
| 272 |
<option value="serial">Serials (new issue)</option> |
323 |
<option value="serial">Serials (new issue)</option> |
| 273 |
[% END %] |
324 |
[% END %] |
| 274 |
[% IF ( module == "suggestions" ) %] |
325 |
[% IF ( module == "suggestions" ) %] |
| 275 |
<option value="suggestions" selected="selected">Suggestions</option> |
326 |
<option value="suggestions" selected="selected">Suggestions</option> |
| 276 |
[% ELSE %] |
327 |
[% ELSE %] |
| 277 |
<option value="suggestions">Suggestions</option> |
328 |
<option value="suggestions">Suggestions</option> |
| 278 |
[% END %] |
329 |
[% END %] |
| 279 |
</select> |
330 |
</select> |
| 280 |
</li> |
331 |
</li> |
| 281 |
<li> |
332 |
<li> |
| 282 |
[% IF adding %] |
333 |
[% IF adding %] |
| 283 |
<label for="code" class="required">Code:</label> |
334 |
<label for="code" class="required">Code:</label> |
| 284 |
<input type="text" id="code" name="code" size="20" maxlength="20" value="" required="required"/> |
335 |
<input type="text" id="code" name="code" size="20" maxlength="20" value="" required="required"/> |
| 285 |
<span class="required">Required</span> |
336 |
<span class="required">Required</span> |
| 286 |
[% ELSE %] |
337 |
[% ELSE %] |
| 287 |
<span class="label">Code:</span> |
338 |
<span class="label">Code:</span> |
| 288 |
<input type="hidden" id="code" name="code" value="[% code | html %]" /> |
339 |
<input type="hidden" id="code" name="code" value="[% code | html %]" /> |
| 289 |
[% code | html %] |
340 |
[% code | html %] |
| 290 |
[% END %] |
341 |
[% END %] |
| 291 |
</li> |
342 |
</li> |
| 292 |
<li> |
343 |
<li> |
| 293 |
<label for="name" class="required">Name:</label> |
344 |
<label for="name" class="required">Name:</label> |
| 294 |
<input type="text" id="name" name="name" size="60" value="[% letter_name | html %]" required="required" /> |
345 |
<input type="text" id="name" name="name" size="60" value="[% letter_name | html %]" required="required" /> |
| 295 |
<span class="required">Required</span> |
346 |
<span class="required">Required</span> |
| 296 |
</li> |
347 |
</li> |
| 297 |
[% IF code and preview_is_available%] |
348 |
[% IF code and preview_is_available%] |
| 298 |
<li> |
349 |
<li> |
| 299 |
<label for="name">Data for preview:</label> |
350 |
<label for="name">Data for preview:</label> |
| 300 |
[% SWITCH code %] |
351 |
[% SWITCH code %] |
| 301 |
[% CASE 'CHECKIN' %] |
352 |
[% CASE 'CHECKIN' %] |
| 302 |
<input type="text" id="data_preview" name="data_preview" value="" placeholder="barcode" /> |
353 |
<input type="text" id="data_preview" name="data_preview" value="" placeholder="barcode" /> |
| 303 |
[% CASE 'CHECKOUT' %] |
354 |
[% CASE 'CHECKOUT' %] |
| 304 |
<input type="text" id="data_preview" name="data_preview" value="" placeholder="barcode|borrowernumber" /> |
355 |
<input type="text" id="data_preview" name="data_preview" value="" placeholder="barcode|borrowernumber" /> |
| 305 |
[% CASE 'HOLD_SLIP' %] |
356 |
[% CASE 'HOLD_SLIP' %] |
| 306 |
<input type="text" id="data_preview" name="data_preview" value="" placeholder="biblionumber|borrowernumber" /> |
357 |
<input type="text" id="data_preview" name="data_preview" value="" placeholder="biblionumber|borrowernumber" /> |
| 307 |
[% CASE %] |
358 |
[% CASE %] |
| 308 |
Not supported yet. |
359 |
Not supported yet. |
| 309 |
[% END %] |
360 |
[% END %] |
| 310 |
</li> |
361 |
</li> |
| 311 |
[% END %] |
|
|
| 312 |
</ol> |
| 313 |
</fieldset> |
| 314 |
[% IF Koha.Preference('TranslateNotices') %] |
| 315 |
<div style="clear:both"></div> |
| 316 |
<div id="tabs"> |
| 317 |
<ul> |
| 318 |
<li><a href="#lang_default">Default</a></li> |
| 319 |
[% FOR language IN languages %] |
| 320 |
[% FOR sublanguage IN language.sublanguages_loop %] |
| 321 |
[% IF language.plural %] |
| 322 |
<li><a href="#lang_[% sublanguage.rfc4646_subtag | uri %]">[% sublanguage.native_description | html %] [% sublanguage.region_description | html %] ([% sublanguage.rfc4646_subtag | html %])</a></li> |
| 323 |
[% ELSE %] |
| 324 |
<li><a href="#lang_[% sublanguage.rfc4646_subtag | uri %]">[% sublanguage.native_description | html %] ([% sublanguage.rfc4646_subtag | html %])</a></li> |
| 325 |
[% END %] |
362 |
[% END %] |
| 326 |
[% END %] |
363 |
</ol> |
|
|
364 |
</fieldset> |
| 365 |
|
| 366 |
[% IF Koha.Preference('TranslateNotices') %] |
| 367 |
<div style="clear:both"></div> |
| 368 |
<div id="tabs"> |
| 369 |
<ul> |
| 370 |
<li><a href="#lang_default">Default</a></li> |
| 371 |
[% FOR language IN languages %] |
| 372 |
[% FOR sublanguage IN language.sublanguages_loop %] |
| 373 |
[% IF language.plural %] |
| 374 |
<li><a href="#lang_[% sublanguage.rfc4646_subtag | uri %]">[% sublanguage.native_description | html %] [% sublanguage.region_description | html %] ([% sublanguage.rfc4646_subtag | html %])</a></li> |
| 375 |
[% ELSE %] |
| 376 |
<li><a href="#lang_[% sublanguage.rfc4646_subtag | uri %]">[% sublanguage.native_description | html %] ([% sublanguage.rfc4646_subtag | html %])</a></li> |
| 377 |
[% END %] |
| 378 |
[% END %] |
| 379 |
[% END %] |
| 380 |
</ul> |
| 327 |
[% END %] |
381 |
[% END %] |
| 328 |
</ul> |
|
|
| 329 |
[% END %] |
| 330 |
|
382 |
|
| 331 |
[% FOREACH lang IN letters.keys %] |
383 |
[% FOREACH lang IN letters.keys %] |
| 332 |
<div id="lang_[% lang | html %]"> |
384 |
<div id="lang_[% lang | html %]"> |
| 333 |
<div class="transport-types" style="clear:both"> |
385 |
<div class="transport-types" style="clear:both"> |
| 334 |
[% FOR mtt IN letters.$lang.templates.keys.sort %] |
386 |
[% FOR mtt IN letters.$lang.templates.keys.sort %] |
| 335 |
[% SET letter = letters.$lang.templates.$mtt %] |
387 |
[% SET letter = letters.$lang.templates.$mtt %] |
| 336 |
<h3> |
388 |
<h3> |
| 337 |
[% SWITCH letter.message_transport_type %] |
389 |
[% SWITCH letter.message_transport_type %] |
| 338 |
[% CASE 'email' %] |
390 |
[% CASE 'email' %] |
| 339 |
Email |
391 |
Email |
| 340 |
[% CASE 'print' %] |
392 |
[% CASE 'print' %] |
| 341 |
Print |
393 |
Print |
| 342 |
[% CASE 'sms' %] |
394 |
[% CASE 'sms' %] |
| 343 |
SMS |
395 |
SMS |
| 344 |
[% CASE 'feed' %] |
396 |
[% CASE 'feed' %] |
| 345 |
Feed |
397 |
Feed |
| 346 |
[% CASE 'phone' %] |
398 |
[% CASE 'phone' %] |
| 347 |
Phone |
399 |
Phone |
| 348 |
[% CASE %] |
400 |
[% CASE %] |
| 349 |
[% letter.message_transport_type | html %] |
401 |
[% letter.message_transport_type | html %] |
| 350 |
[% END %] |
402 |
[% END %] |
| 351 |
</h3> |
403 |
</h3> |
| 352 |
[% IF letter.message_transport_type == "sms" and not Koha.Preference("SMSSendDriver") %] |
404 |
[% IF letter.message_transport_type == "sms" and not Koha.Preference("SMSSendDriver") %] |
| 353 |
<fieldset class="rows mtt" id="[% letter.message_transport_type | html %]_[% lang | html %]" disabled="disabled"> |
405 |
<fieldset class="rows mtt" id="[% letter.message_transport_type | html %]_[% lang | html %]" disabled="disabled"> |
| 354 |
<div class="dialog message">You should enable the SMSSendDriver preference to use the SMS templates.</div> |
406 |
<div class="dialog message">You should enable the SMSSendDriver preference to use the SMS templates.</div> |
| 355 |
[% ELSIF letter.message_transport_type == "phone" and not Koha.Preference("TalkingTechItivaPhoneNotification") %] |
407 |
[% ELSIF letter.message_transport_type == "phone" and not Koha.Preference("TalkingTechItivaPhoneNotification") %] |
| 356 |
<fieldset class="rows mtt" id="[% letter.message_transport_type | html %]_[% lang | html %]" disabled="disabled"> |
408 |
<fieldset class="rows mtt" id="[% letter.message_transport_type | html %]_[% lang | html %]" disabled="disabled"> |
| 357 |
<div class="dialog message">You should enable the TalkingTechItivaPhoneNotification preference to use the phone templates.</div> |
409 |
<div class="dialog message">You should enable the TalkingTechItivaPhoneNotification preference to use the phone templates.</div> |
| 358 |
[% ELSE %] |
410 |
[% ELSE %] |
| 359 |
<fieldset class="rows mtt" id="[% letter.message_transport_type | html %]_[% lang | html %]"> |
411 |
<fieldset class="rows mtt" id="[% letter.message_transport_type | html %]_[% lang | html %]"> |
| 360 |
[% END %] |
412 |
[% END %] |
| 361 |
<ol> |
413 |
<ol> |
| 362 |
<li> |
414 |
<li> |
| 363 |
<input type="hidden" name="message_transport_type" value="[% letter.message_transport_type | html %]" /> |
415 |
<input type="hidden" name="message_transport_type" value="[% letter.message_transport_type | html %]" /> |
| 364 |
<input type="hidden" name="lang" value="[% lang | html %]" /> |
416 |
<input type="hidden" name="lang" value="[% lang | html %]" /> |
| 365 |
<label for="is_html_[% letter.message_transport_type | html %]_[% lang | html %]">HTML message:</label> |
417 |
<label for="is_html_[% letter.message_transport_type | html %]_[% lang | html %]">HTML message:</label> |
| 366 |
[% IF letter.is_html %] |
418 |
[% IF letter.is_html %] |
| 367 |
<input type="checkbox" name="is_html_[% letter.message_transport_type | html %]" id="is_html_[% letter.message_transport_type | html %]_[% lang | html %]" value="1" checked="checked" /> |
419 |
<input type="checkbox" name="is_html_[% letter.message_transport_type | html %]" id="is_html_[% letter.message_transport_type | html %]_[% lang | html %]" value="1" checked="checked" /> |
| 368 |
[% ELSE %] |
420 |
[% ELSE %] |
| 369 |
<input type="checkbox" name="is_html_[% letter.message_transport_type | html %]" id="is_html_[% letter.message_transport_type | html %]_[% lang | html %]" value="1" /> |
421 |
<input type="checkbox" name="is_html_[% letter.message_transport_type | html %]" id="is_html_[% letter.message_transport_type | html %]_[% lang | html %]" value="1" /> |
| 370 |
[% END %] |
422 |
[% END %] |
| 371 |
</li> |
423 |
</li> |
| 372 |
<li> |
424 |
<li> |
| 373 |
<label for="title_[% letter.message_transport_type | html %]_[% lang | html %]">Message subject:</label><input type="text" id="title_[% letter.message_transport_type | html %]_[% lang | html %]" name="title" size="60" value="[% letter.title | html %]" /> |
425 |
<label for="title_[% letter.message_transport_type | html %]_[% lang | html %]">Message subject:</label><input type="text" id="title_[% letter.message_transport_type | html %]_[% lang | html %]" name="title" size="60" value="[% letter.title | html %]" /> |
| 374 |
</li> |
426 |
</li> |
| 375 |
<li> |
427 |
<li> |
| 376 |
<label for="SQLfieldname_[% letter.message_transport_type | html %]_[% lang | html %]">Message body:</label> |
428 |
<label for="SQLfieldname_[% letter.message_transport_type | html %]_[% lang | html %]">Message body:</label> |
| 377 |
[% IF letter.message_transport_type == 'sms' %] |
429 |
[% IF letter.message_transport_type == 'sms' %] |
| 378 |
<span class="sms_counter" id="sms_counter_[% lang | html %]">[% IF letter.content && letter.content.length > 0 %][% letter.content.length | html %][% ELSE %]0[% END %]/160 characters</span> |
430 |
<span class="sms_counter" id="sms_counter_[% lang | html %]">[% IF letter.content && letter.content.length > 0 %][% letter.content.length | html %][% ELSE %]0[% END %]/160 characters</span> |
| 379 |
[% END %] |
431 |
[% END %] |
| 380 |
<table> |
432 |
<table> |
| 381 |
<tr> |
433 |
<tr> |
| 382 |
<td> |
434 |
<td> |
| 383 |
<select name="SQLfieldname" id="SQLfieldname_[% letter.message_transport_type | html %]_[% lang | html %]" multiple="multiple" size="9"> |
435 |
<select name="SQLfieldname" id="SQLfieldname_[% letter.message_transport_type | html %]_[% lang | html %]" multiple="multiple" size="9"> |
| 384 |
[% FOREACH SQLfieldname IN SQLfieldnames %] |
436 |
[% FOREACH SQLfieldname IN SQLfieldnames %] |
| 385 |
<option value="[% SQLfieldname.value | html %]">[% SQLfieldname.text | html %]</option> |
437 |
<option value="[% SQLfieldname.value | html %]">[% SQLfieldname.text | html %]</option> |
| 386 |
[% END %] |
438 |
[% END %] |
| 387 |
</select> |
439 |
</select> |
| 388 |
</td> |
440 |
</td> |
| 389 |
<td class="actions"> |
441 |
<td class="actions"> |
| 390 |
<button type="button" data-containerid="[% letter.message_transport_type | html %]_[% lang | html %]" class="btn btn-default btn-sm insert">Insert <i class="fa fa-long-arrow-right"></i></button> |
442 |
<button type="button" data-containerid="[% letter.message_transport_type | html %]_[% lang | html %]" class="btn btn-default btn-sm insert">Insert <i class="fa fa-long-arrow-right"></i></button> |
| 391 |
</td> |
443 |
</td> |
| 392 |
<td><textarea name="content" data-lang="[% lang | html %]" class="content_[% letter.message_transport_type | html %]" id="content_[% letter.message_transport_type | html %]_[% lang | html %]" cols="80" rows="15">[% letter.content | html %]</textarea></td> |
444 |
<td> |
| 393 |
</tr> |
445 |
<textarea name="content" data-lang="[% lang | html %]" class="content_[% letter.message_transport_type | html %]" id="content_[% letter.message_transport_type | html %]_[% lang | html %]" cols="80" rows="15">[% letter.content | html %]</textarea> |
| 394 |
</table> |
446 |
</td> |
| 395 |
</li> |
447 |
</tr> |
| 396 |
[% IF preview_is_available %] |
448 |
</table> |
| 397 |
<li> |
449 |
</li> |
| 398 |
<a href="/cgi-bin/koha/svc/letters/preview" class="preview_template btn btn-default btn-xs" title="Preview this notice template" data-mtt="[% letter.message_transport_type | html %]" data-lang="[% lang | html %]"><i class="fa fa-eye"></i> Preview</a> |
450 |
[% IF preview_is_available %] |
| 399 |
</li> |
451 |
<li> |
| 400 |
[% END %] |
452 |
<a href="/cgi-bin/koha/svc/letters/preview" class="preview_template btn btn-default btn-xs" title="Preview this notice template" data-mtt="[% letter.message_transport_type | html %]" data-lang="[% lang | html %]"><i class="fa fa-eye"></i> Preview</a> |
| 401 |
</ol> |
453 |
</li> |
| 402 |
</fieldset> |
454 |
[% END %] |
| 403 |
[% END %] |
455 |
</ol> |
| 404 |
</div> |
456 |
</fieldset> |
| 405 |
</div> <!-- / #transport-types --> |
457 |
[% END %] |
| 406 |
[% END %] |
458 |
</div> |
| 407 |
[% IF Koha.Preference('TranslateNotices') %] |
459 |
</div> <!-- / #transport-types --> |
| 408 |
</div> |
460 |
[% END %] |
| 409 |
[% END %] |
|
|
| 410 |
|
461 |
|
| 411 |
<input type="hidden" id="redirect" name="redirect" value="" /> |
462 |
[% IF Koha.Preference('TranslateNotices') %] |
| 412 |
<input type="hidden" id="section" name="section" value="[% section | html %]" /> |
463 |
</div> |
| 413 |
<input type="hidden" name="searchfield" value="[% searchfield | html %]" /> |
464 |
[% END %] |
| 414 |
</form> |
|
|
| 415 |
[% END %] |
| 416 |
|
465 |
|
| 417 |
[% IF ( add_validate or copy_validate) %] |
466 |
<input type="hidden" id="redirect" name="redirect" value="" /> |
| 418 |
Data recorded |
467 |
<input type="hidden" id="section" name="section" value="[% section | html %]" /> |
| 419 |
<form action="[% action | html %]" method="post"> |
468 |
<input type="hidden" name="searchfield" value="[% searchfield | html %]" /> |
| 420 |
<input type="submit" value="OK" /> |
469 |
</form> |
| 421 |
</form> |
470 |
[% END %] |
| 422 |
[% END %] |
|
|
| 423 |
|
471 |
|
| 424 |
[% IF ( delete_confirm ) %] |
472 |
[% IF ( add_validate or copy_validate) %] |
| 425 |
<div class="dialog alert"> |
473 |
Data recorded |
| 426 |
<h3>Delete notice?</h3> |
474 |
<form action="[% action | html %]" method="post"> |
| 427 |
<table> |
475 |
<input type="submit" value="OK" /> |
| 428 |
<thead> |
476 |
</form> |
| 429 |
<tr> |
477 |
[% END %] |
| 430 |
<th>Library</th> |
|
|
| 431 |
<th>Module</th> |
| 432 |
<th>Code</th> |
| 433 |
<th>Name</th> |
| 434 |
</tr> |
| 435 |
</thead> |
| 436 |
<tr> |
| 437 |
<td>[% IF letter.branchcode %][% Branches.GetName( letter.branchcode ) | html %][% ELSE %](All libraries)[% END %]</td> |
| 438 |
<td>[% letter.module | html %]</td> |
| 439 |
<td>[% letter.code | html %]</td> |
| 440 |
<td>[% letter.name | html %]</td> |
| 441 |
</tr> |
| 442 |
</table> |
| 443 |
<form action="[% action | html %]" method="post"> |
| 444 |
<input type="hidden" name="op" value="delete_confirmed"> |
| 445 |
<input type="hidden" name="branchcode" value="[% letter.branchcode | html %]" /> |
| 446 |
<input type="hidden" name="code" value="[% letter.code | html %]" /> |
| 447 |
<input type="hidden" name="module" value="[% letter.module | html %]" /> |
| 448 |
<button type="submit" class="approve"><i class="fa fa-check"></i> Yes, delete</button> |
| 449 |
</form> |
| 450 |
|
478 |
|
| 451 |
<form action="[% action | html %]" method="get"> |
479 |
[% IF ( delete_confirm ) %] |
| 452 |
<button type="submit" class="deny"><i class="fa fa-times"></i> No, do not delete</button> |
480 |
<div class="dialog alert"> |
| 453 |
</form> |
481 |
<h3>Delete notice?</h3> |
| 454 |
</div> |
482 |
<table> |
| 455 |
[% END %] |
483 |
<thead> |
|
|
484 |
<tr> |
| 485 |
<th>Library</th> |
| 486 |
<th>Module</th> |
| 487 |
<th>Code</th> |
| 488 |
<th>Name</th> |
| 489 |
</tr> |
| 490 |
</thead> |
| 491 |
<tr> |
| 492 |
<td>[% IF letter.branchcode %][% Branches.GetName( letter.branchcode ) | html %][% ELSE %](All libraries)[% END %]</td> |
| 493 |
<td>[% letter.module | html %]</td> |
| 494 |
<td>[% letter.code | html %]</td> |
| 495 |
<td>[% letter.name | html %]</td> |
| 496 |
</tr> |
| 497 |
</table> |
| 498 |
<form action="[% action | html %]" method="post"> |
| 499 |
<input type="hidden" name="op" value="delete_confirmed"> |
| 500 |
<input type="hidden" name="branchcode" value="[% letter.branchcode | html %]" /> |
| 501 |
<input type="hidden" name="code" value="[% letter.code | html %]" /> |
| 502 |
<input type="hidden" name="module" value="[% letter.module | html %]" /> |
| 503 |
<button type="submit" class="approve"><i class="fa fa-check"></i> Yes, delete</button> |
| 504 |
</form> |
| 456 |
|
505 |
|
| 457 |
[% IF ( delete_confirmed ) %] |
506 |
<form action="[% action | html %]" method="get"> |
| 458 |
Data deleted |
507 |
<button type="submit" class="deny"><i class="fa fa-times"></i> No, do not delete</button> |
| 459 |
<form action="[% action | html %]" method="post"> |
508 |
</form> |
| 460 |
<input type="submit" value="OK" /> |
509 |
</div> |
| 461 |
</form> |
510 |
[% END %] |
| 462 |
[% END %] |
|
|
| 463 |
|
511 |
|
| 464 |
[% IF add_form or copy_form %] |
512 |
[% IF ( delete_confirmed ) %] |
| 465 |
</div> <!-- /.col-md-8 --> |
513 |
Data deleted |
| 466 |
</div> <!-- /.row --> |
514 |
<form action="[% action | html %]" method="post"> |
| 467 |
[% ELSE %] |
515 |
<input type="submit" value="OK" /> |
| 468 |
</main> |
516 |
</form> |
| 469 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
517 |
[% END %] |
| 470 |
|
518 |
|
| 471 |
<div class="col-sm-2 col-sm-pull-10"> |
519 |
[% IF add_form or copy_form %] |
| 472 |
<aside> |
520 |
</div> <!-- /.col-md-8 --> |
| 473 |
[% INCLUDE 'tools-menu.inc' %] |
521 |
</div> <!-- /.row --> |
| 474 |
</aside> |
522 |
[% ELSE %] |
| 475 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
523 |
</main> |
| 476 |
</div> <!-- /.row --> |
524 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
| 477 |
[% END %] |
525 |
|
|
|
526 |
<div class="col-sm-2 col-sm-pull-10"> |
| 527 |
<aside> |
| 528 |
[% INCLUDE 'tools-menu.inc' %] |
| 529 |
</aside> |
| 530 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
| 531 |
</div> <!-- /.row --> |
| 532 |
[% END %] |
| 478 |
|
533 |
|
| 479 |
[% MACRO jsinclude BLOCK %] |
534 |
[% MACRO jsinclude BLOCK %] |
| 480 |
[% Asset.js("js/tools-menu.js") | $raw %] |
535 |
[% Asset.js("js/tools-menu.js") | $raw %] |
| 481 |
- |
|
|