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

(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (+21 lines)
Lines 273-278 a { Link Here
273
    color: $green-text-color;
273
    color: $green-text-color;
274
}
274
}
275
275
276
.alert-message {
277
    --bs-alert-color: var( --bs-info-text-emphasis );
278
    --bs-alert-bg: var( --bs-info-bg-subtle );
279
    --bs-alert-border-color: var( --bs-info-border-subtle );
280
    --bs-alert-link-color: var( --bs-info-text-emphasis );
281
}
282
283
.alert-alert {
284
    --bs-alert-color: var( --bs-warning-text-emphasis );
285
    --bs-alert-bg: var( --bs-warning-bg-subtle );
286
    --bs-alert-border-color: var( --bs-warning-border-subtle );
287
    --bs-alert-link-color: var( --bs-warning-text-emphasis );
288
}
289
290
.alert-error {
291
    --bs-alert-color: var( --bs-danger-text-emphasis );
292
    --bs-alert-bg: var( --bs-danger-bg-subtle );
293
    --bs-alert-border-color: var( --bs-danger-border-subtle );
294
    --bs-alert-link-color: var( --bs-danger-text-emphasis );
295
}
296
276
aside {
297
aside {
277
    h5 {
298
    h5 {
278
        font-size: 100%;
299
        font-size: 100%;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt (-1 / +1 lines)
Lines 242-248 Link Here
242
                            [% ELSE # IF ( delete_confirmed ) %]
242
                            [% ELSE # IF ( delete_confirmed ) %]
243
243
244
                                [% FOR m IN messages %]
244
                                [% FOR m IN messages %]
245
                                    <div class="dialog [% m.type | html %]">
245
                                    <div class="alert alert-[% m.type | html %]">
246
                                        [% SWITCH m.code %]
246
                                        [% SWITCH m.code %]
247
                                        [% CASE 'no_email' %]
247
                                        [% CASE 'no_email' %]
248
                                            <span>This vendor has no contact selected for sending orders to or is missing an e-mail address.</span>
248
                                            <span>This vendor has no contact selected for sending orders to or is missing an e-mail address.</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/vendor_issues.tt (-1 / +1 lines)
Lines 65-71 Link Here
65
                [% INCLUDE 'messages.inc' %]
65
                [% INCLUDE 'messages.inc' %]
66
66
67
[% FOR m IN messages %]
67
[% FOR m IN messages %]
68
    <div class="dialog [% m.type | html %]">
68
    <div class="alert alert-[% m.type | html %]">
69
        [% SWITCH m.code %]
69
        [% SWITCH m.code %]
70
        [% CASE 'error_on_update' %]
70
        [% CASE 'error_on_update' %]
71
            <span>An error occurred when updating this issue.</span>
71
            <span>An error occurred when updating this issue.</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt (-1 / +1 lines)
Lines 236-242 Link Here
236
                    [% END %]
236
                    [% END %]
237
237
238
                    [% FOR m IN messages %]
238
                    [% FOR m IN messages %]
239
                        <div class="dialog [% m.type | html %]">
239
                        <div class="alert alert-[% m.type | html %]">
240
                            [% SWITCH m.code %]
240
                            [% SWITCH m.code %]
241
                            [% CASE 'error_on_update' %]
241
                            [% CASE 'error_on_update' %]
242
                                <span>An error occurred when updating this authorized value. Perhaps the value already exists.</span>
242
                                <span>An error occurred when updating this authorized value. Perhaps the value already exists.</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt (-1 / +1 lines)
Lines 82-88 Link Here
82
                [% INCLUDE 'messages.inc' %]
82
                [% INCLUDE 'messages.inc' %]
83
83
84
[% FOR m IN messages %]
84
[% FOR m IN messages %]
85
    <div class="dialog [% m.type | html %]">
85
    <div class="alert alert-[% m.type | html %]">
86
        [% SWITCH m.code %]
86
        [% SWITCH m.code %]
87
        [% CASE 'error_on_update' %]
87
        [% CASE 'error_on_update' %]
88
            <span>An error occurred when updating this authority type. Perhaps it already exists.</span>
88
            <span>An error occurred when updating this authority type. Perhaps it already exists.</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt (-1 / +1 lines)
Lines 76-82 Link Here
76
                [% INCLUDE 'messages.inc' %]
76
                [% INCLUDE 'messages.inc' %]
77
77
78
[% FOR m IN messages %]
78
[% FOR m IN messages %]
79
    <div class="dialog [% m.type | html %]">
79
    <div class="alert alert-[% m.type | html %]">
80
        [% SWITCH m.code %]
80
        [% SWITCH m.code %]
81
        [% CASE 'error_on_update' %]
81
        [% CASE 'error_on_update' %]
82
            <span>An error occurred when updating this framework. Perhaps it already exists.</span>
82
            <span>An error occurred when updating this framework. Perhaps it already exists.</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt (-1 / +1 lines)
Lines 80-86 Link Here
80
                [% INCLUDE 'messages.inc' %]
80
                [% INCLUDE 'messages.inc' %]
81
81
82
[% FOREACH m IN messages %]
82
[% FOREACH m IN messages %]
83
    <div class="dialog [% m.type | html %]">
83
    <div class="alert alert-[% m.type | html %]">
84
        [% SWITCH m.code %]
84
        [% SWITCH m.code %]
85
        [% CASE 'error_on_update' %]
85
        [% CASE 'error_on_update' %]
86
            <span>An error occurred when updating this library. Perhaps it already exists.</span>
86
            <span>An error occurred when updating this library. Perhaps it already exists.</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cash_registers.tt (-1 / +1 lines)
Lines 70-76 Link Here
70
                [% INCLUDE 'messages.inc' %]
70
                [% INCLUDE 'messages.inc' %]
71
71
72
                [% FOREACH m IN messages %]
72
                [% FOREACH m IN messages %]
73
                <div class="dialog [% m.type | html %]">
73
                <div class="alert alert-[% m.type | html %]">
74
                    [% SWITCH m.code %]
74
                    [% SWITCH m.code %]
75
                    [% CASE 'success_on_insert' %]
75
                    [% CASE 'success_on_insert' %]
76
                        <span>Cash register added successfully.</span>
76
                        <span>Cash register added successfully.</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt (-1 / +1 lines)
Lines 92-98 Link Here
92
                [% INCLUDE 'messages.inc' %]
92
                [% INCLUDE 'messages.inc' %]
93
93
94
[% FOR m IN messages %]
94
[% FOR m IN messages %]
95
    <div class="dialog [% m.type | html %]">
95
    <div class="alert alert-[% m.type | html %]">
96
        [% SWITCH m.code %]
96
        [% SWITCH m.code %]
97
        [% CASE 'error_on_update' %]
97
        [% CASE 'error_on_update' %]
98
            <span>An error occurred when updating this patron category. Perhaps it already exists.</span>
98
            <span>An error occurred when updating this patron category. Perhaps it already exists.</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt (-1 / +1 lines)
Lines 70-76 Link Here
70
                [% INCLUDE 'messages.inc' %]
70
                [% INCLUDE 'messages.inc' %]
71
71
72
[% FOR m IN messages %]
72
[% FOR m IN messages %]
73
    <div class="dialog [% m.type | html %]">
73
    <div class="alert alert-[% m.type | html %]">
74
        [% SWITCH m.code %]
74
        [% SWITCH m.code %]
75
        [% CASE 'error_on_update' %]
75
        [% CASE 'error_on_update' %]
76
            <span>An error occurred when updating this city. Perhaps it already exists.</span>
76
            <span>An error occurred when updating this city. Perhaps it already exists.</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/classsources.tt (-1 / +1 lines)
Lines 97-103 Link Here
97
                [% INCLUDE 'messages.inc' %]
97
                [% INCLUDE 'messages.inc' %]
98
98
99
[% FOR m IN messages %]
99
[% FOR m IN messages %]
100
    <div class="dialog [% m.type | html %]">
100
    <div class="alert alert-[% m.type | html %]">
101
        [% SWITCH m.code %]
101
        [% SWITCH m.code %]
102
        [% CASE 'error_on_update_source' %]
102
        [% CASE 'error_on_update_source' %]
103
            <span>An error occurred when updating this classification source. Check the logs for details.</span>
103
            <span>An error occurred when updating this classification source. Check the logs for details.</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/credit_types.tt (-1 / +1 lines)
Lines 60-66 Link Here
60
                [% INCLUDE 'messages.inc' %]
60
                [% INCLUDE 'messages.inc' %]
61
61
62
                [% FOREACH m IN messages %]
62
                [% FOREACH m IN messages %]
63
                <div class="dialog [% m.type | html %]">
63
                <div class="alert alert-[% m.type | html %]">
64
                    [% SWITCH m.code %]
64
                    [% SWITCH m.code %]
65
                    [% CASE 'success_on_saving' %]
65
                    [% CASE 'success_on_saving' %]
66
                        <span>Credit type saved successfully.</span>
66
                        <span>Credit type saved successfully.</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/curbside_pickup.tt (-1 / +1 lines)
Lines 47-53 Link Here
47
                [% INCLUDE 'messages.inc' %]
47
                [% INCLUDE 'messages.inc' %]
48
48
49
[% FOR m IN messages %]
49
[% FOR m IN messages %]
50
    <div class="dialog [% m.type | html %]">
50
    <div class="alert alert-[% m.type | html %]">
51
        [% SWITCH m.code %]
51
        [% SWITCH m.code %]
52
        [% CASE %]
52
        [% CASE %]
53
            <span>[% m.code | html %]</span>
53
            <span>[% m.code | html %]</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt (-1 / +1 lines)
Lines 77-83 Link Here
77
[% END %]
77
[% END %]
78
78
79
[% FOR m IN messages %]
79
[% FOR m IN messages %]
80
    <div class="dialog [% m.type | html %]">
80
    <div class="alert alert-[% m.type | html %]">
81
        [% SWITCH m.code %]
81
        [% SWITCH m.code %]
82
        [% CASE 'error_on_update' %]
82
        [% CASE 'error_on_update' %]
83
            <span>An error occurred when updating this currency. Perhaps it already exists.</span>
83
            <span>An error occurred when updating this currency. Perhaps it already exists.</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/debit_types.tt (-1 / +1 lines)
Lines 59-65 Link Here
59
                [% INCLUDE 'messages.inc' %]
59
                [% INCLUDE 'messages.inc' %]
60
60
61
                [% FOREACH m IN messages %]
61
                [% FOREACH m IN messages %]
62
                <div class="dialog [% m.type | html %]">
62
                <div class="alert alert-[% m.type | html %]">
63
                    [% SWITCH m.code %]
63
                    [% SWITCH m.code %]
64
                    [% CASE 'success_on_saving' %]
64
                    [% CASE 'success_on_saving' %]
65
                        <span>Debit type saved successfully.</span>
65
                        <span>Debit type saved successfully.</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/desks.tt (-1 / +1 lines)
Lines 69-75 Link Here
69
                [% INCLUDE 'messages.inc' %]
69
                [% INCLUDE 'messages.inc' %]
70
70
71
[% FOR m IN messages %]
71
[% FOR m IN messages %]
72
    <div class="dialog [% m.type | html %]">
72
    <div class="alert alert-[% m.type | html %]">
73
        [% SWITCH m.code %]
73
        [% SWITCH m.code %]
74
        [% CASE 'error_on_update' %]
74
        [% CASE 'error_on_update' %]
75
            <span>An error occurred when updating this desk. Perhaps it already exists.</span>
75
            <span>An error occurred when updating this desk. Perhaps it already exists.</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/identity_provider_domains.tt (-1 / +1 lines)
Lines 64-70 Link Here
64
                [% INCLUDE 'messages.inc' %]
64
                [% INCLUDE 'messages.inc' %]
65
65
66
[% FOREACH m IN messages %]
66
[% FOREACH m IN messages %]
67
    <div class="dialog [% m.type | html %]" id="identity_provider_domain_action_result_dialog">
67
    <div class="alert alert-[% m.type | html %]" id="identity_provider_domain_action_result_dialog">
68
        [% SWITCH m.code %]
68
        [% SWITCH m.code %]
69
        [% CASE 'error_on_update' %]
69
        [% CASE 'error_on_update' %]
70
            <span>An error occurred trying to open the identity provider domain for editing. The passed ID is invalid.</span>
70
            <span>An error occurred trying to open the identity provider domain for editing. The passed ID is invalid.</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/identity_providers.tt (-1 / +1 lines)
Lines 59-65 Link Here
59
                [% INCLUDE 'messages.inc' %]
59
                [% INCLUDE 'messages.inc' %]
60
60
61
[% FOREACH m IN messages %]
61
[% FOREACH m IN messages %]
62
    <div class="dialog [% m.type | html %]" id="identity_provider_action_result_dialog">
62
    <div class="alert alert-[% m.type | html %]" id="identity_provider_action_result_dialog">
63
        [% SWITCH m.code %]
63
        [% SWITCH m.code %]
64
        [% CASE 'error_on_update' %]
64
        [% CASE 'error_on_update' %]
65
            <span>An error occurred trying to open the identity provider for editing. The passed ID is invalid.</span>
65
            <span>An error occurred trying to open the identity provider for editing. The passed ID is invalid.</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/ill_batch_statuses.tt (-1 / +1 lines)
Lines 50-56 Link Here
50
            <main>
50
            <main>
51
51
52
                [% FOREACH m IN messages %]
52
                [% FOREACH m IN messages %]
53
                <div class="dialog [% m.type | html %]">
53
                <div class="alert alert-[% m.type | html %]">
54
                    [% SWITCH m.code %]
54
                    [% SWITCH m.code %]
55
                    [% CASE 'success_on_saving' %]
55
                    [% CASE 'success_on_saving' %]
56
                        <span>Batch status saved successfully.</span>
56
                        <span>Batch status saved successfully.</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt (-1 / +1 lines)
Lines 118-124 Link Here
118
</div>[% END %]
118
</div>[% END %]
119
119
120
[% FOREACH m IN messages %]
120
[% FOREACH m IN messages %]
121
    <div class="dialog [% m.type | html %]">
121
    <div class="alert alert-[% m.type | html %]">
122
        [% SWITCH m.code %]
122
        [% SWITCH m.code %]
123
        [% CASE 'error_on_update' %]
123
        [% CASE 'error_on_update' %]
124
            <span>An error occurred when updating this item type. Perhaps the value already exists.</span>
124
            <span>An error occurred when updating this item type. Perhaps the value already exists.</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt (-1 / +1 lines)
Lines 48-54 Link Here
48
                <h1>Record overlay rules</h1>
48
                <h1>Record overlay rules</h1>
49
49
50
                [% FOR m IN messages %]
50
                [% FOR m IN messages %]
51
                <div class="dialog [% m.type | html %]">
51
                <div class="alert alert-[% m.type | html %]">
52
                    [% SWITCH m.code %]
52
                    [% SWITCH m.code %]
53
                    [% CASE 'invalid_tag_regexp' %]
53
                    [% CASE 'invalid_tag_regexp' %]
54
                      <span>Invalid regular expression "[% m.tag | html %]".</span>
54
                      <span>Invalid regular expression "[% m.tag | html %]".</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smtp_servers.tt (-1 / +1 lines)
Lines 58-64 Link Here
58
                [% INCLUDE 'messages.inc' %]
58
                [% INCLUDE 'messages.inc' %]
59
59
60
[% FOREACH m IN messages %]
60
[% FOREACH m IN messages %]
61
    <div class="dialog [% m.type | html %]" id="smtp_action_result_dialog">
61
    <div class="alert alert-[% m.type | html %]" id="smtp_action_result_dialog">
62
        [% SWITCH m.code %]
62
        [% SWITCH m.code %]
63
        [% CASE 'error_on_update' %]
63
        [% CASE 'error_on_update' %]
64
            <span>An error occurred trying to open the server for editing. The passed ID is invalid.</span>
64
            <span>An error occurred trying to open the server for editing. The passed ID is invalid.</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/usage_statistics.tt (-1 / +1 lines)
Lines 38-44 Link Here
38
                [% INCLUDE 'messages.inc' %]
38
                [% INCLUDE 'messages.inc' %]
39
39
40
[% FOR m IN messages %]
40
[% FOR m IN messages %]
41
    <div class="dialog [% m.type | html %]">
41
    <div class="alert alert-[% m.type | html %]">
42
        [% SWITCH m.code %]
42
        [% SWITCH m.code %]
43
        [% CASE 'error_on_update' %]
43
        [% CASE 'error_on_update' %]
44
            <span>An error occurred when updating this patron category. Perhaps it already exists.</span>
44
            <span>An error occurred when updating this patron category. Perhaps it already exists.</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt (-1 / +1 lines)
Lines 104-110 Link Here
104
                [% END %]
104
                [% END %]
105
105
106
                [% FOR m IN messages %]
106
                [% FOR m IN messages %]
107
                    <div class="dialog [% m.type | html %]">
107
                    <div class="alert alert-[% m.type | html %]">
108
                        [% SWITCH m.code %]
108
                        [% SWITCH m.code %]
109
                        [% CASE 'not_enabled' %]
109
                        [% CASE 'not_enabled' %]
110
                            <span>The curbside pickup feature is not enabled for this library.</span>
110
                            <span>The curbside pickup feature is not enabled for this library.</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt (-1 / +1 lines)
Lines 40-46 Link Here
40
                [% INCLUDE 'messages.inc' %]
40
                [% INCLUDE 'messages.inc' %]
41
41
42
        [% FOR m IN messages %]
42
        [% FOR m IN messages %]
43
            <div class="dialog [% m.type | html %]">
43
            <div class="alert alert-[% m.type | html %]">
44
                [% SWITCH m.code %]
44
                [% SWITCH m.code %]
45
                [% CASE 'letter_enqueued' %]
45
                [% CASE 'letter_enqueued' %]
46
                    <span>The notice has been correctly enqueued.</span>
46
                    <span>The notice has been correctly enqueued.</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/housebound.tt (-1 / +1 lines)
Lines 89-95 Link Here
89
                <h1>Housebound details for [% INCLUDE 'patron-title.inc' %]</h1>
89
                <h1>Housebound details for [% INCLUDE 'patron-title.inc' %]</h1>
90
90
91
            [% FOR m IN messages %]
91
            [% FOR m IN messages %]
92
                <div class="dialog [% m.type | html %]">
92
                <div class="alert alert-[% m.type | html %]">
93
                    [% SWITCH m.code %]
93
                    [% SWITCH m.code %]
94
                    [% CASE 'error_on_profile_store' %]
94
                    [% CASE 'error_on_profile_store' %]
95
                        <span>An error occurred whilst updating this housebound profile</span>
95
                        <span>An error occurred whilst updating this housebound profile</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/transferCollection.tt (-1 / +1 lines)
Lines 45-51 Link Here
45
45
46
                [% IF ( messages ) %]
46
                [% IF ( messages ) %]
47
                    [% FOREACH message IN messages %]
47
                    [% FOREACH message IN messages %]
48
                        <div class="dialog [% m.type | html %]">
48
                        <div class="alert alert-[% m.type | html %]">
49
                        [%- SWITCH message.code -%]
49
                        [%- SWITCH message.code -%]
50
                        [%- CASE 'limits' %]
50
                        [%- CASE 'limits' %]
51
                            <p>Cannot transfer item [% message.item.itemnumber | html %] due to transfer limits</p>
51
                            <p>Cannot transfer item [% message.item.itemnumber | html %] due to transfer limits</p>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt (-2 / +2 lines)
Lines 336-342 Link Here
336
336
337
        [% IF op == 'save' %]
337
        [% IF op == 'save' %]
338
            [% FOR m IN messages %]
338
            [% FOR m IN messages %]
339
                <div class="dialog [% m.type | html %]">
339
                <div class="alert alert-[% m.type | html %]">
340
                    [% SWITCH m.code %]
340
                    [% SWITCH m.code %]
341
                    [% CASE 'biblio_exists' %]
341
                    [% CASE 'biblio_exists' %]
342
                        <span>A similar document already exists: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% m.id | uri %]">[% m.title | html %]</a>. Click on "Confirm your suggestion" to ignore this message.</span>
342
                        <span>A similar document already exists: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% m.id | uri %]">[% m.title | html %]</a>. Click on "Confirm your suggestion" to ignore this message.</span>
Lines 681-687 Link Here
681
            [% END %]
681
            [% END %]
682
682
683
            [% FOR m IN messages %]
683
            [% FOR m IN messages %]
684
                <div class="dialog [% m.type | html %]">
684
                <div class="alert alert-[% m.type | html %]">
685
                    [% SWITCH m.code %]
685
                    [% SWITCH m.code %]
686
                    [% CASE 'already_exists' %]
686
                    [% CASE 'already_exists' %]
687
                        <span>The suggestion has not been added. A suggestion with this title already exists (<a href='/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% m.id | html %]&op=show'>suggestion #[% m.id | html %]</a>)</span>
687
                        <span>The suggestion has not been added. A suggestion with this title already exists (<a href='/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% m.id | html %]&op=show'>suggestion #[% m.id | html %]</a>)</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt (-1 / +1 lines)
Lines 125-131 Link Here
125
    [% INCLUDE 'messages.inc' %]
125
    [% INCLUDE 'messages.inc' %]
126
126
127
    [% FOR m IN messages %]
127
    [% FOR m IN messages %]
128
        <div class="dialog [% m.type | html %]">
128
        <div class="alert alert-[% m.type | html %]">
129
            [% SWITCH m.code %]
129
            [% SWITCH m.code %]
130
            [% CASE 'error_on_update' %]
130
            [% CASE 'error_on_update' %]
131
                <span>An error occurred when updating this content. Perhaps it already exists.</span>
131
                <span>An error occurred when updating this content. Perhaps it already exists.</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt (-1 / +1 lines)
Lines 64-70 Link Here
64
                [% INCLUDE 'messages.inc' %]
64
                [% INCLUDE 'messages.inc' %]
65
65
66
[% FOR m IN messages %]
66
[% FOR m IN messages %]
67
    <div class="dialog [% m.type | html %]">
67
    <div class="alert alert-[% m.type | html %]">
68
        [% SWITCH m.code %]
68
        [% SWITCH m.code %]
69
        [% CASE 'error_on_update' %]
69
        [% CASE 'error_on_update' %]
70
            <span>An error occurred when updating this CSV profile. Perhaps it already exists.</span>
70
            <span>An error occurred when updating this CSV profile. Perhaps it already exists.</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt (-1 / +1 lines)
Lines 42-48 Link Here
42
                <h1>Export data</h1>
42
                <h1>Export data</h1>
43
43
44
[% FOR m IN messages %]
44
[% FOR m IN messages %]
45
    <div class="dialog [% m.type | html %]">
45
    <div class="alert alert-[% m.type | html %]">
46
        [% SWITCH m.code %]
46
        [% SWITCH m.code %]
47
        [% CASE 'invalid_mimetype' %]<span>The file used does not have a valid format. Only csv and txt are allowed.</span>
47
        [% CASE 'invalid_mimetype' %]<span>The file used does not have a valid format. Only csv and txt are allowed.</span>
48
        [% CASE %][% m.code | html %]
48
        [% CASE %][% m.code | html %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/preview_letter.tt (-1 / +1 lines)
Lines 15-21 Link Here
15
            <h1>Preview notice template</h1>
15
            <h1>Preview notice template</h1>
16
            [% FOR m IN messages %]
16
            [% FOR m IN messages %]
17
                [%# FIXME The message block does not appear at the top of the modal! %]
17
                [%# FIXME The message block does not appear at the top of the modal! %]
18
                <div class="dialog [% m.type | html %]">
18
                <div class="alert alert-[% m.type | html %]">
19
                    [% SWITCH m.code %]
19
                    [% SWITCH m.code %]
20
                    [% CASE 'no_data_for_preview' %]<span>You did not specify data for preview.</span>
20
                    [% CASE 'no_data_for_preview' %]<span>You did not specify data for preview.</span>
21
                    [% CASE 'preview_not_available' %]<span>Preview is not available for letters '[% m.letter_code | html %]'.</span>
21
                    [% CASE 'preview_not_available' %]<span>Preview is not available for letters '[% m.letter_code | html %]'.</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt (-1 / +1 lines)
Lines 54-60 Link Here
54
                [% INCLUDE 'messages.inc' %]
54
                [% INCLUDE 'messages.inc' %]
55
55
56
[% FOREACH m IN messages %]
56
[% FOREACH m IN messages %]
57
    <div class="dialog [% m.type | html %]" id="quote_action_result_dialog">
57
    <div class="alert alert-[% m.type | html %]" id="quote_action_result_dialog">
58
        [% SWITCH m.code %]
58
        [% SWITCH m.code %]
59
        [% CASE 'error_on_update' %]
59
        [% CASE 'error_on_update' %]
60
            <span>An error occurred when updating this quote. Perhaps it already exists.</span>
60
            <span>An error occurred when updating this quote. Perhaps it already exists.</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/downloadshelf.tt (-1 / +1 lines)
Lines 11-17 Link Here
11
<body id="lists_downloadshelf" class="lists" style="padding:1em;">
11
<body id="lists_downloadshelf" class="lists" style="padding:1em;">
12
12
13
[% FOR m IN messages %]
13
[% FOR m IN messages %]
14
    <div class="dialog [% m.type | html %]">
14
    <div class="alert alert-[% m.type | html %]">
15
        [% SWITCH m.code %]
15
        [% SWITCH m.code %]
16
        [% CASE 'unauthorized' %]
16
        [% CASE 'unauthorized' %]
17
            <span>You do not have permission to view this list.</span>
17
            <span>You do not have permission to view this list.</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt (-2 / +1 lines)
Lines 141-147 Link Here
141
            [% IF op != 'transfer' %][% INCLUDE 'virtualshelves-toolbar.inc' %][% END %]
141
            [% IF op != 'transfer' %][% INCLUDE 'virtualshelves-toolbar.inc' %][% END %]
142
142
143
            [% FOR m IN messages %]
143
            [% FOR m IN messages %]
144
                <div class="dialog [% m.type | html %]">
144
                <div class="alert alert-[% m.type | html %]">
145
                    [% SWITCH m.code %]
145
                    [% SWITCH m.code %]
146
                    [% CASE 'error_on_update' %]
146
                    [% CASE 'error_on_update' %]
147
                        <span>An error occurred when updating this list.</span>
147
                        <span>An error occurred when updating this list.</span>
148
- 

Return to bug 37732