View | Details | Raw Unified | Return to bug 41340
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/batch_item_record_modification.inc (-3 / +9 lines)
Lines 1-11 Link Here
1
[% USE Koha %]
1
[% USE Koha %]
2
[% PROCESS 'i18n.inc' %]
2
3
3
[% BLOCK report %]
4
[% BLOCK report %]
4
    [% SET report = job.report %]
5
    [% SET report = job.report %]
5
    [% IF report %]
6
    [% IF report %]
6
        <div class="alert alert-info">
7
        <div class="alert alert-info">
7
            [% IF report.modified_itemnumbers.size %]
8
            [% IF report.modified_itemnumbers.size %]
8
                <span>[% report.modified_itemnumbers.size | html %] item(s) modified (with [% report.modified_fields | html %] field(s) modified).</span>
9
                [% SET modified_items_count = report.modified_itemnumbers.size %]
10
                [% SET modified_fields_count = report.modified_fields %]
11
                <span>
12
                    [% tnx('{count} item modified', '{count} items modified', modified_items_count, { count = modified_items_count }) | html %]
13
                    [% tnx('(with {count} field modified).', '(with {count} fields modified).', modified_fields_count, { count = modified_fields_count }) | html %]
14
                </span>
9
            [% ELSE %]
15
            [% ELSE %]
10
                <span>No items modified.</span>
16
                <span>No items modified.</span>
11
            [% END %]
17
            [% END %]
Lines 16-22 Link Here
16
        <div>
22
        <div>
17
            [% IF report.errors.size %]
23
            [% IF report.errors.size %]
18
                <div class="alert alert-warning">
24
                <div class="alert alert-warning">
19
                    <span>[% report.errors.size | html %] item(s) could not be modified.</span>
25
                    [% SET error_items_count = report.errors.size %]
26
                    <span> [% tnx('{count} item could not be modified.', '{count} items could not be modified.', error_items_count, { count = error_items_count }) | html %] </span>
20
                </div>
27
                </div>
21
            [% END %]
28
            [% END %]
22
        </div>
29
        </div>
23
- 

Return to bug 41340