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

(-)a/koha-tmpl/intranet-tmpl/prog/css/staff-global.css (-7 lines)
Lines 1010-1022 ul.fa-ul li { Link Here
1010
    list-style-type: none;
1010
    list-style-type: none;
1011
}
1011
}
1012
1012
1013
div.error {
1014
	border : 2px dashed #990000;
1015
	background-color : #FFFF99;
1016
	padding : .5em;
1017
	margin : 1em;
1018
}
1019
1020
input.alert {
1013
input.alert {
1021
	background-color : #FFFF99;
1014
	background-color : #FFFF99;
1022
	border-color: #900;
1015
	border-color: #900;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt (-3 / +3 lines)
Lines 25-35 Link Here
25
25
26
[% IF error_claim %]
26
[% IF error_claim %]
27
    [% IF ( error_claim == "no_email" ) %]
27
    [% IF ( error_claim == "no_email" ) %]
28
        <div class="error">This vendor has no email</div>
28
        <div class="dialog alert">This vendor has no email</div>
29
    [% ELSIF ( error_claim == "no_order_selected" ) %]
29
    [% ELSIF ( error_claim == "no_order_selected" ) %]
30
        <div class="error">No order selected</div>
30
        <div class="dialog alert">No order selected</div>
31
    [% ELSE %]
31
    [% ELSE %]
32
        <div class="error">[% error_claim %]</div>
32
        <div class="dialog alert">[% error_claim %]</div>
33
    [% END %]
33
    [% END %]
34
[% END %]
34
[% END %]
35
[% IF info_claim %]
35
[% IF info_claim %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt (-1 / +1 lines)
Lines 28-34 Link Here
28
    [% END %]
28
    [% END %]
29
</h2>
29
</h2>
30
30
31
<div class="error" style="display:none"></div>
31
<div class="dialog alert order_error" style="display:none"></div>
32
32
33
[% IF ( basketno ) %]
33
[% IF ( basketno ) %]
34
    <div id="acqui_basket_summary"  class="yui-g">
34
    <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="yui-g">
27
<div class="yui-g">
28
<div class="yui-u first">
28
<div class="yui-u first">
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 88-98 a.add, a.delete { Link Here
88
    [% END %]
88
    [% END %]
89
89
90
    <h1>Search engine configuration</h1>
90
    <h1>Search engine configuration</h1>
91
    <div class="warning">
91
    <div class="dialog message">
92
        Warning: Any changes to the configuration will only take effect after a full reindex. Until then searching may not work correctly.
92
        Warning: Any changes to the configuration will only take effect after a full reindex. Until then searching may not work correctly.
93
    </div>
93
    </div>
94
    [% IF errors %]
94
    [% IF errors %]
95
        <div class="error">
95
        <div class="dialog alert">
96
        Changes have not been applied. Please check the following values:
96
        Changes have not been applied. Please check the following values:
97
          <ul>
97
          <ul>
98
            [% FOREACH e IN errors %]
98
            [% FOREACH e IN errors %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-2 / +2 lines)
Lines 23-31 Link Here
23
	<div class="yui-b">
23
	<div class="yui-b">
24
    [% IF error_alert %]
24
    [% IF error_alert %]
25
        [% IF ( error_alert == "no_email" ) %]
25
        [% IF ( error_alert == "no_email" ) %]
26
            <div class="error">This member has no email</div>
26
            <div class="dialog alert">This member has no email</div>
27
        [% ELSE %]
27
        [% ELSE %]
28
            <div class="error">[% error_alert %]</div>
28
            <div class="dialog alert">[% error_alert %]</div>
29
        [% END %]
29
        [% END %]
30
    [% END %]
30
    [% END %]
31
    [% IF info_alert %]
31
    [% IF info_alert %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt (-2 / +6 lines)
Lines 77-87 Link Here
77
                                        [% plugin.metadata.description %]
77
                                        [% plugin.metadata.description %]
78
78
79
                                        [% IF ( plugin.metadata.minimum_version && koha_version < plugin.metadata.minimum_version ) %]
79
                                        [% IF ( plugin.metadata.minimum_version && koha_version < plugin.metadata.minimum_version ) %]
80
                                            <div class="error">Warning: This report was written for a newer version of Koha. Run at your own risk.</div>
80
                                            <div class="dialog alert">
81
                                                Warning: This report was written for a newer version of Koha. Run at your own risk.
82
                                            </div>
81
                                        [% END %]
83
                                        [% END %]
82
84
83
                                        [% IF ( plugin.metadata.maximum_version && koha_version > plugin.metadata.maximum_version ) %]
85
                                        [% IF ( plugin.metadata.maximum_version && koha_version > plugin.metadata.maximum_version ) %]
84
                                            <div class="error">Warning: This report was written for an older version of Koha. Run at your own risk.</div>
86
                                            <div class="dialog alert">
87
                                                Warning: This report was written for an older version of Koha. Run at your own risk.
88
                                            </div>
85
                                        [% END %]
89
                                        [% END %]
86
                                    </td>
90
                                    </td>
87
                                    <td>[% plugin.metadata.author %]</td>
91
                                    <td>[% plugin.metadata.author %]</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