|
Lines 11-25
Link Here
|
| 11 |
>[% FILTER collapse %] |
11 |
>[% FILTER collapse %] |
| 12 |
[% IF ( add_form or copy_form ) %] |
12 |
[% IF ( add_form or copy_form ) %] |
| 13 |
[% IF ( modify ) %] |
13 |
[% IF ( modify ) %] |
| 14 |
[% t("Modify notice") | html %] |
14 |
[% t("Modify template") | html %] |
| 15 |
› |
15 |
› |
| 16 |
[% ELSE %] |
16 |
[% ELSE %] |
| 17 |
[% t("New notice") | html %] |
17 |
[% t("New template") | html %] |
| 18 |
› |
18 |
› |
| 19 |
[% END %] |
19 |
[% END %] |
| 20 |
[% END %] |
20 |
[% END %] |
| 21 |
[% IF ( add_validate or copy_validate) %] |
21 |
[% IF ( add_validate or copy_validate) %] |
| 22 |
[% t("Notice added") | html %] |
22 |
[% t("Template added") | html %] |
| 23 |
› |
23 |
› |
| 24 |
[% END %] |
24 |
[% END %] |
| 25 |
[% IF ( delete_confirm ) %] |
25 |
[% IF ( delete_confirm ) %] |
|
Lines 30-36
Link Here
|
| 30 |
[% Branches.GetName( branchcode ) | html %] |
30 |
[% Branches.GetName( branchcode ) | html %] |
| 31 |
› |
31 |
› |
| 32 |
[% END %] |
32 |
[% END %] |
| 33 |
[% t("Notices and slips") | html %] |
33 |
[% t("Templates") | html %] |
| 34 |
› [% t("Tools") | html %] › [% t("Koha") | html %] |
34 |
› [% t("Tools") | html %] › [% t("Koha") | html %] |
| 35 |
[% END %]</title |
35 |
[% END %]</title |
| 36 |
> |
36 |
> |
|
Lines 83-100
Link Here
|
| 83 |
|
83 |
|
| 84 |
[% IF ( add_form OR copy_form OR add_validate OR copy_validate OR delete_confirm OR branchcode ) %] |
84 |
[% IF ( add_form OR copy_form OR add_validate OR copy_validate OR delete_confirm OR branchcode ) %] |
| 85 |
[% WRAPPER breadcrumb_item %] |
85 |
[% WRAPPER breadcrumb_item %] |
| 86 |
<a href="/cgi-bin/koha/tools/letter.pl">Notices and slips</a> |
86 |
<a href="/cgi-bin/koha/tools/letter.pl">Templates</a> |
| 87 |
[% END %] |
87 |
[% END %] |
| 88 |
[% END %] |
88 |
[% END %] |
| 89 |
|
89 |
|
| 90 |
[% IF ( add_form or copy_form) %] |
90 |
[% IF ( add_form or copy_form) %] |
| 91 |
[% IF ( modify ) %] |
91 |
[% IF ( modify ) %] |
| 92 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
92 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
| 93 |
<span>Modify notice</span> |
93 |
<span>Modify template</span> |
| 94 |
[% END %] |
94 |
[% END %] |
| 95 |
[% ELSE %] |
95 |
[% ELSE %] |
| 96 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
96 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
| 97 |
<span>New notice</span> |
97 |
<span>New template</span> |
| 98 |
[% END %] |
98 |
[% END %] |
| 99 |
[% END # /IF modify %] |
99 |
[% END # /IF modify %] |
| 100 |
[% ELSIF ( branchcode ) %] |
100 |
[% ELSIF ( branchcode ) %] |
|
Lines 104-110
Link Here
|
| 104 |
[% ELSE %] |
104 |
[% ELSE %] |
| 105 |
[% IF ( add_validate or copy_validate) %] |
105 |
[% IF ( add_validate or copy_validate) %] |
| 106 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
106 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
| 107 |
<span>Notice added</span> |
107 |
<span>Template added</span> |
| 108 |
[% END %] |
108 |
[% END %] |
| 109 |
[% ELSE %] |
109 |
[% ELSE %] |
| 110 |
[% IF ( delete_confirm ) %] |
110 |
[% IF ( delete_confirm ) %] |
|
Lines 113-119
Link Here
|
| 113 |
[% END %] |
113 |
[% END %] |
| 114 |
[% ELSE %] |
114 |
[% ELSE %] |
| 115 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
115 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
| 116 |
<span>Notices and slips</span> |
116 |
<span>Templates</span> |
| 117 |
[% END %] |
117 |
[% END %] |
| 118 |
[% END # /IF ( delete_confirm ) %] |
118 |
[% END # /IF ( delete_confirm ) %] |
| 119 |
[% END # /IF ( add_validate or copy_validate) %] |
119 |
[% END # /IF ( add_validate or copy_validate) %] |
|
Lines 125-131
Link Here
|
| 125 |
<div class="modal-dialog modal-lg"> |
125 |
<div class="modal-dialog modal-lg"> |
| 126 |
<div class="modal-content"> |
126 |
<div class="modal-content"> |
| 127 |
<div class="modal-header"> |
127 |
<div class="modal-header"> |
| 128 |
<h1 class="modal-title" id="preview_template_label">Preview notice template</h1> |
128 |
<h1 class="modal-title" id="preview_template_label">Preview template</h1> |
| 129 |
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> |
129 |
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> |
| 130 |
</div> |
130 |
</div> |
| 131 |
<div class="modal-body"> |
131 |
<div class="modal-body"> |
|
Lines 168-174
Link Here
|
| 168 |
[% WRAPPER 'main-container.inc' aside=aside %] |
168 |
[% WRAPPER 'main-container.inc' aside=aside %] |
| 169 |
|
169 |
|
| 170 |
[% IF ( no_op_set ) %] |
170 |
[% IF ( no_op_set ) %] |
| 171 |
<h1>Notices and slips</h1> |
171 |
<h1>Templates</h1> |
| 172 |
[% IF ( branchcode ) %] |
172 |
[% IF ( branchcode ) %] |
| 173 |
<h2>[% Branches.GetName( branchcode ) | html %]</h2> |
173 |
<h2>[% Branches.GetName( branchcode ) | html %]</h2> |
| 174 |
[% END %] |
174 |
[% END %] |
|
Lines 188-194
Link Here
|
| 188 |
|
188 |
|
| 189 |
<div id="toolbar" class="btn-toolbar"> |
189 |
<div id="toolbar" class="btn-toolbar"> |
| 190 |
<div class="btn-group"> |
190 |
<div class="btn-group"> |
| 191 |
<button class="btn btn-default dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false"><i class="fa fa-plus"></i> New notice</button> |
191 |
<button class="btn btn-default dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false"><i class="fa fa-plus"></i> New template</button> |
| 192 |
<ul class="dropdown-menu"> |
192 |
<ul class="dropdown-menu"> |
| 193 |
<li><a class="dropdown-item" href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=acquisition">Acquisition</a></li> |
193 |
<li><a class="dropdown-item" href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=acquisition">Acquisition</a></li> |
| 194 |
<li><a class="dropdown-item" href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=catalogue">Catalog</a></li> |
194 |
<li><a class="dropdown-item" href="/cgi-bin/koha/tools/letter.pl?op=add_form&module=catalogue">Catalog</a></li> |
|
Lines 237-243
Link Here
|
| 237 |
<th>Code</th> |
237 |
<th>Code</th> |
| 238 |
<th>Name</th> |
238 |
<th>Name</th> |
| 239 |
<th>Last updated</th> |
239 |
<th>Last updated</th> |
| 240 |
<th class="no-sort no-export">Copy notice</th> |
240 |
<th class="no-sort no-export">Copy template</th> |
| 241 |
<th class="no-sort no-export">Actions</th> |
241 |
<th class="no-sort no-export">Actions</th> |
| 242 |
</tr> |
242 |
</tr> |
| 243 |
</thead> |
243 |
</thead> |
|
Lines 337-345
Link Here
|
| 337 |
[% ELSE # IF lette %] |
337 |
[% ELSE # IF lette %] |
| 338 |
<div class="alert alert-info"> |
338 |
<div class="alert alert-info"> |
| 339 |
[% IF ( branchcode ) %] |
339 |
[% IF ( branchcode ) %] |
| 340 |
<p>There are no notices for this library.</p> |
340 |
<p>There are no templates for this library.</p> |
| 341 |
[% ELSE %] |
341 |
[% ELSE %] |
| 342 |
<p>There are no notices.</p> |
342 |
<p>There are no templates.</p> |
| 343 |
[% END %] |
343 |
[% END %] |
| 344 |
</div> |
344 |
</div> |
| 345 |
[% END # /IF lette %] |
345 |
[% END # /IF lette %] |
|
Lines 348-356
Link Here
|
| 348 |
[% IF add_form or copy_form %] |
348 |
[% IF add_form or copy_form %] |
| 349 |
<h1> |
349 |
<h1> |
| 350 |
[% IF ( modify ) %] |
350 |
[% IF ( modify ) %] |
| 351 |
<span>Modify notice</span> |
351 |
<span>Modify template</span> |
| 352 |
[% ELSE %] |
352 |
[% ELSE %] |
| 353 |
<span>New notice</span> |
353 |
<span>New template</span> |
| 354 |
[% END %] |
354 |
[% END %] |
| 355 |
</h1> |
355 |
</h1> |
| 356 |
|
356 |
|
|
Lines 587-593
Link Here
|
| 587 |
|
587 |
|
| 588 |
[% IF ( delete_confirm ) %] |
588 |
[% IF ( delete_confirm ) %] |
| 589 |
<div class="alert alert-warning"> |
589 |
<div class="alert alert-warning"> |
| 590 |
<h1>Delete notice?</h1> |
590 |
<h1>Delete template?</h1> |
| 591 |
<table> |
591 |
<table> |
| 592 |
<thead> |
592 |
<thead> |
| 593 |
<tr> |
593 |
<tr> |
|
Lines 776-782
Link Here
|
| 776 |
<a |
776 |
<a |
| 777 |
href="/cgi-bin/koha/svc/letters/preview" |
777 |
href="/cgi-bin/koha/svc/letters/preview" |
| 778 |
class="preview_template btn btn-default btn-xs" |
778 |
class="preview_template btn btn-default btn-xs" |
| 779 |
title="Preview this notice template" |
779 |
title="Preview this template" |
| 780 |
data-mtt="[% letter.message_transport_type | html %]" |
780 |
data-mtt="[% letter.message_transport_type | html %]" |
| 781 |
data-lang="[% lang | html %]" |
781 |
data-lang="[% lang | html %]" |
| 782 |
><i class="fa-solid fa-eye"></i> Preview</a |
782 |
><i class="fa-solid fa-eye"></i> Preview</a |
|
Lines 810-816
Link Here
|
| 810 |
<div id="format_[% lang | html %]" class="panel-collapse collapse" role="tabpanel" aria-labelledby="format_[% lang | html %]Heading"> |
810 |
<div id="format_[% lang | html %]" class="panel-collapse collapse" role="tabpanel" aria-labelledby="format_[% lang | html %]Heading"> |
| 811 |
<div class="panel-body"> |
811 |
<div class="panel-body"> |
| 812 |
<fieldset class="rows"> |
812 |
<fieldset class="rows"> |
| 813 |
<div class="alert alert-info">These format settings apply when a notice is printed.</div> |
813 |
<div class="alert alert-info">These format settings apply when a template is printed.</div> |
| 814 |
<div class="col-md-12"> |
814 |
<div class="col-md-12"> |
| 815 |
<ol> |
815 |
<ol> |
| 816 |
<li id="css-helpers"> |
816 |
<li id="css-helpers"> |
|
Lines 824-830
Link Here
|
| 824 |
<textarea id="style_[% lang | html %]" name="style_[% lang | html %]" rows="15" cols="80">[% letters.$lang.params.style | $raw %]</textarea> |
824 |
<textarea id="style_[% lang | html %]" name="style_[% lang | html %]" rows="15" cols="80">[% letters.$lang.params.style | $raw %]</textarea> |
| 825 |
</li> |
825 |
</li> |
| 826 |
<li class="format_all_notices_option"> |
826 |
<li class="format_all_notices_option"> |
| 827 |
<label for="format_all_[% lang | html %]">Apply format settings to all notices[% IF Koha.Preference('TranslateNotices') %]for this language[% END %]:</label> |
827 |
<label for="format_all_[% lang | html %]">Apply format settings to all templates[% IF Koha.Preference('TranslateNotices') %]for this language[% END %]:</label> |
| 828 |
<input type="checkbox" name="format_all_[% lang | html %]" id="format_all_[% lang | html %]" class="format_all" value="1" /> |
828 |
<input type="checkbox" name="format_all_[% lang | html %]" id="format_all_[% lang | html %]" class="format_all" value="1" /> |
| 829 |
<span class="hint">Existing format settings will be overwritten.</span> |
829 |
<span class="hint">Existing format settings will be overwritten.</span> |
| 830 |
</li> |
830 |
</li> |