Bug 29602: Surround strings with span tag
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / background_jobs / batch_biblio_record_deletion.inc
1 [% BLOCK report %]
2     [% SET report = job.report %]
3     [% IF report %]
4         [% IF report.total_records == report.total_success %]
5             <div class="dialog message">
6                 All records have been deleted successfully!
7             </div>
8         [% ELSIF report.total_success == 0 %]
9             <div class="dialog message">
10                 No record has been deleted. An error occurred.
11             </div>
12         [% ELSE %]
13             <div class="dialog message">
14                 [% report.total_success | html %] / [% report.total_records | html %] records have been deleted successfully but some errors occurred.
15             </div>
16         [% END %]
17     [% END %]
18 [% END %]
19
20 [% BLOCK detail %]
21     [% FOR m IN job.messages %]
22         <div class="dialog message">
23             [% IF m.type == 'success' %]
24                 <i class="fa fa-check success"></i>
25             [% ELSIF m.type == 'warning' %]
26                 <i class="fa fa-warning warn"></i>
27             [% ELSIF m.type == 'error' %]
28                 <i class="fa fa-exclamation error"></i>
29             [% END %]
30             [% SWITCH m.code %]
31             [% CASE 'biblio_not_exists' %]
32                 <span>The biblionumber [% m.biblionumber | html %] does not exist in the database.</span>
33             [% CASE 'item_issued' %]
34                 <span>At least one item is checked out on bibliographic record [% m.biblionumber | html %].</span>
35             [% CASE 'reserve_not_cancelled' %]
36                 <span>Bibliographic record [% m.biblionumber | html %] was not deleted. A hold could not be canceled (reserve_id [% m.reserve_id | html %]).</span>
37             [% CASE 'item_not_deleted' %]
38                 <span>The bibliographic record [% m.biblionumber | html %] was not deleted. An error was encountered when deleting an item (itemnumber [% m.itemnumber | html %]).</span>
39             [% CASE 'biblio_not_deleted' %]
40                 <span>Bibliographic record [% m.biblionumber | html %] was not deleted. An error occurred.</span>
41             [% CASE 'biblio_deleted' %]
42                 <span>Bibliographic record [% m.biblionumber | html %] has been deleted successfully.</span>
43             [% END %]
44         </div>
45     [% END %]
46 [% END %]
47
48 [% BLOCK js %]
49 [% END %]