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

(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (-7 lines)
Lines 1311-1323 div { Link Here
1311
        }
1311
        }
1312
    }
1312
    }
1313
1313
1314
    &.error {
1315
        background-color: #FFFF99;
1316
        border: 2px dashed #990000;
1317
        margin: 1em;
1318
        padding: .5em;
1319
    }
1320
1321
    &.first {
1314
    &.first {
1322
        fieldset {
1315
        fieldset {
1323
            margin-right: 0;
1316
            margin-right: 0;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt (-3 / +3 lines)
Lines 26-36 Link Here
26
26
27
[% IF error_claim %]
27
[% IF error_claim %]
28
    [% IF ( error_claim == "no_email" ) %]
28
    [% IF ( error_claim == "no_email" ) %]
29
        <div class="error">This vendor has no email</div>
29
        <div class="dialog alert">This vendor has no email</div>
30
    [% ELSIF ( error_claim == "no_order_selected" ) %]
30
    [% ELSIF ( error_claim == "no_order_selected" ) %]
31
        <div class="error">No order selected</div>
31
        <div class="dialog alert">No order selected</div>
32
    [% ELSE %]
32
    [% ELSE %]
33
        <div class="error">[% error_claim | html %]</div>
33
        <div class="dialog alert">[% error_claim | html %]</div>
34
    [% END %]
34
    [% END %]
35
[% END %]
35
[% END %]
36
[% IF info_claim %]
36
[% IF info_claim %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt (-1 / +1 lines)
Lines 30-36 Link Here
30
    [% END %]
30
    [% END %]
31
</h2>
31
</h2>
32
32
33
<div class="error" style="display:none"></div>
33
<div class="dialog alert order_error" style="display:none"></div>
34
34
35
[% IF ( basketno ) %]
35
[% IF ( basketno ) %]
36
    <div id="acqui_basket_summary"  class="yui-g">
36
    <div id="acqui_basket_summary"  class="yui-g">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt (-1 / +1 lines)
Lines 26-32 Link Here
26
    <form action="/cgi-bin/koha/acqui/finishreceive.pl" method="post" onsubmit="return Check(this);">
26
    <form action="/cgi-bin/koha/acqui/finishreceive.pl" method="post" onsubmit="return Check(this);">
27
<div class="row">
27
<div class="row">
28
<div class="col-sm-6">
28
<div class="col-sm-6">
29
    <div class="error" style="display:none"></div>
29
    <div class="dialog alert order_error" style="display:none"></div>
30
30
31
    <fieldset class="rows">
31
    <fieldset class="rows">
32
    <legend>Catalog details</legend>
32
    <legend>Catalog details</legend>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt (-1 / +1 lines)
Lines 33-39 Link Here
33
[% UNLESS op == 'delete_confirm' %][% INCLUDE 'budgets-admin-toolbar.inc' %][% END %]
33
[% UNLESS op == 'delete_confirm' %][% INCLUDE 'budgets-admin-toolbar.inc' %][% END %]
34
34
35
[% IF (error_not_authorised_to_modify) %]
35
[% IF (error_not_authorised_to_modify) %]
36
    <div class="error">
36
    <div class="dialog alert">
37
        <p>You are not authorized to modify this fund</p>
37
        <p>You are not authorized to modify this fund</p>
38
    </div>
38
    </div>
39
[% END %]
39
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt (-2 / +2 lines)
Lines 90-100 a.add, a.delete { Link Here
90
    [% END %]
90
    [% END %]
91
91
92
    <h1>Search engine configuration</h1>
92
    <h1>Search engine configuration</h1>
93
    <div class="warning">
93
    <div class="dialog message">
94
        Warning: Any changes to the configuration will only take effect after a full reindex. Until then searching may not work correctly.
94
        Warning: Any changes to the configuration will only take effect after a full reindex. Until then searching may not work correctly.
95
    </div>
95
    </div>
96
    [% IF errors %]
96
    [% IF errors %]
97
        <div class="error">
97
        <div class="dialog alert">
98
        Changes have not been applied. Please check the following values:
98
        Changes have not been applied. Please check the following values:
99
          <ul>
99
          <ul>
100
            [% FOREACH e IN errors %]
100
            [% FOREACH e IN errors %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-2 / +2 lines)
Lines 38-46 Link Here
38
    [% INCLUDE 'blocking_errors.inc' %]
38
    [% INCLUDE 'blocking_errors.inc' %]
39
    [% IF error_alert %]
39
    [% IF error_alert %]
40
        [% IF ( error_alert == "no_email" ) %]
40
        [% IF ( error_alert == "no_email" ) %]
41
            <div class="error">This member has no email</div>
41
            <div class="dialog alert">This member has no email</div>
42
        [% ELSE %]
42
        [% ELSE %]
43
            <div class="error">[% error_alert | html %]</div>
43
            <div class="dialog alert">[% error_alert | html %]</div>
44
        [% END %]
44
        [% END %]
45
    [% END %]
45
    [% END %]
46
    [% IF info_alert %]
46
    [% IF info_alert %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt (-2 / +6 lines)
Lines 78-88 Link Here
78
                                        [% plugin.metadata.description | html %]
78
                                        [% plugin.metadata.description | html %]
79
79
80
                                        [% IF ( plugin.metadata.minimum_version && koha_version < plugin.metadata.minimum_version ) %]
80
                                        [% IF ( plugin.metadata.minimum_version && koha_version < plugin.metadata.minimum_version ) %]
81
                                            <div class="error">Warning: This report was written for a newer version of Koha. Run at your own risk.</div>
81
                                            <div class="dialog alert">
82
                                                Warning: This report was written for a newer version of Koha. Run at your own risk.
83
                                            </div>
82
                                        [% END %]
84
                                        [% END %]
83
85
84
                                        [% IF ( plugin.metadata.maximum_version && koha_version > plugin.metadata.maximum_version ) %]
86
                                        [% IF ( plugin.metadata.maximum_version && koha_version > plugin.metadata.maximum_version ) %]
85
                                            <div class="error">Warning: This report was written for an older version of Koha. Run at your own risk.</div>
87
                                            <div class="dialog alert">
88
                                                Warning: This report was written for an older version of Koha. Run at your own risk.
89
                                            </div>
86
                                        [% END %]
90
                                        [% END %]
87
                                    </td>
91
                                    </td>
88
                                    <td>[% plugin.metadata.author | html %]</td>
92
                                    <td>[% plugin.metadata.author | html %]</td>
(-)a/koha-tmpl/intranet-tmpl/prog/js/additem.js (-6 / +5 lines)
Lines 249-255 function check_additem(unique_item_fields) { Link Here
249
    data['field'] = new Array();
249
    data['field'] = new Array();
250
    data['value'] = new Array();
250
    data['value'] = new Array();
251
    var array_fields = unique_item_fields.split(' ');
251
    var array_fields = unique_item_fields.split(' ');
252
    $(".error").empty(); // Clear error div
252
    $(".order_error").empty(); // Clear error div
253
253
254
    // Check if a value is duplicated in form
254
    // Check if a value is duplicated in form
255
    for ( field in array_fields ) {
255
    for ( field in array_fields ) {
Lines 270-276 function check_additem(unique_item_fields) { Link Here
270
        var sorted_arr = values.sort();
270
        var sorted_arr = values.sort();
271
        for (var i = 0; i < sorted_arr.length - 1; i += 1) {
271
        for (var i = 0; i < sorted_arr.length - 1; i += 1) {
272
            if (sorted_arr[i + 1] == sorted_arr[i]) {
272
            if (sorted_arr[i + 1] == sorted_arr[i]) {
273
                $(".error").append(
273
                $(".order_error").append(
274
                    fieldname + " '" + sorted_arr[i] + "' "
274
                    fieldname + " '" + sorted_arr[i] + "' "
275
                    + (window.MSG_ADDITEM_JS_IS_DUPLICATE || "is duplicated")
275
                    + (window.MSG_ADDITEM_JS_IS_DUPLICATE || "is duplicated")
276
                    + "<br/>");
276
                    + "<br/>");
Lines 281-287 function check_additem(unique_item_fields) { Link Here
281
281
282
    // If there is a duplication, we raise an error
282
    // If there is a duplication, we raise an error
283
    if ( success == false ) {
283
    if ( success == false ) {
284
        $(".error").show();
284
        $(".order_error").show();
285
        return false;
285
        return false;
286
    }
286
    }
287
287
Lines 295-301 function check_additem(unique_item_fields) { Link Here
295
                success = false;
295
                success = false;
296
                for (var i=0; i < data[field].length; i++) {
296
                for (var i=0; i < data[field].length; i++) {
297
                    var value = data[field][i];
297
                    var value = data[field][i];
298
                    $(".error").append(
298
                    $(".order_error").append(
299
                        field + " '" + value + "' "
299
                        field + " '" + value + "' "
300
                        + (window.MSG_ADDITEM_JS_ALREADY_EXISTS_IN_DB
300
                        + (window.MSG_ADDITEM_JS_ALREADY_EXISTS_IN_DB
301
                            || "already exists in database")
301
                            || "already exists in database")
Lines 307-313 function check_additem(unique_item_fields) { Link Here
307
    });
307
    });
308
308
309
    if ( success == false ) {
309
    if ( success == false ) {
310
        $(".error").show();
310
        $(".order_error").show();
311
    }
311
    }
312
    return success;
312
    return success;
313
}
313
}
314
- 

Return to bug 10442