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 (-4 / +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 }) + ' (' + tnx( 'with {count} field modified', 'with {count} fields modified', modified_fields_count, { count = modified_fields_count }) + ').' | html %]</span
13
                >
9
            [% ELSE %]
14
            [% ELSE %]
10
                <span>No items modified.</span>
15
                <span>No items modified.</span>
11
            [% END %]
16
            [% END %]
Lines 16-22 Link Here
16
        <div>
21
        <div>
17
            [% IF report.errors.size %]
22
            [% IF report.errors.size %]
18
                <div class="alert alert-warning">
23
                <div class="alert alert-warning">
19
                    <span>[% report.errors.size | html %] item(s) could not be modified.</span>
24
                    [% SET error_items_count = report.errors.size %]
25
                    <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>
26
                </div>
21
            [% END %]
27
            [% END %]
22
        </div>
28
        </div>
Lines 41-47 Link Here
41
    [% END %]
47
    [% END %]
42
48
43
    [% IF too_many_items_display %]
49
    [% IF too_many_items_display %]
44
        <p>Too many items ([% report.modified_itemnumbers.size | html %]): You have edited more than [% Koha.Preference('MaxItemsToDisplayForBatchMod') | html %] items in a batch, items will not be shown.</p>
50
        <p>[% tx('Too many items ({count}): You have edited more than {max} items in a batch, items will not be shown.', { count => report.modified_itemnumbers.size, max => Koha.Preference('MaxItemsToDisplayForBatchMod') }) | html %]</p>
45
    [% ELSIF items.size %]
51
    [% ELSIF items.size %]
46
        [% PROCESS items_table_batchmod headers => item_header_loop, items => items, display_columns_selection => 1 %]
52
        [% PROCESS items_table_batchmod headers => item_header_loop, items => items, display_columns_selection => 1 %]
47
    [% END %]
53
    [% END %]
48
- 

Return to bug 41340