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 971-983 ul.fa-ul li { Link Here
971
    list-style-type: none;
971
    list-style-type: none;
972
}
972
}
973
973
974
div.error {
975
	border : 2px dashed #990000;
976
	background-color : #FFFF99;
977
	padding : .5em;
978
	margin : 1em;
979
}
980
981
input.alert {
974
input.alert {
982
	background-color : #FFFF99;
975
	background-color : #FFFF99;
983
	border-color: #900;
976
	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 27-33 Link Here
27
    [% END %]
27
    [% END %]
28
</h2>
28
</h2>
29
29
30
<div class="error" style="display:none"></div>
30
<div class="dialog alert order_error" style="display:none"></div>
31
31
32
[% IF ( basketno ) %]
32
[% IF ( basketno ) %]
33
    <div id="acqui_basket_summary"  class="yui-g">
33
    <div id="acqui_basket_summary"  class="yui-g">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt (-1 / +1 lines)
Lines 25-31 Link Here
25
    <form action="/cgi-bin/koha/acqui/finishreceive.pl" method="post" onsubmit="return Check(this);">
25
    <form action="/cgi-bin/koha/acqui/finishreceive.pl" method="post" onsubmit="return Check(this);">
26
<div class="yui-g">
26
<div class="yui-g">
27
<div class="yui-u first">
27
<div class="yui-u first">
28
    <div class="error" style="display:none"></div>
28
    <div class="dialog alert order_error" style="display:none"></div>
29
29
30
    <fieldset class="rows">
30
    <fieldset class="rows">
31
    <legend>Catalog details</legend>
31
    <legend>Catalog details</legend>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt (-1 / +1 lines)
Lines 32-38 Link Here
32
[% UNLESS op == 'delete_confirm' %][% INCLUDE 'budgets-admin-toolbar.inc' %][% END %]
32
[% UNLESS op == 'delete_confirm' %][% INCLUDE 'budgets-admin-toolbar.inc' %][% END %]
33
33
34
[% IF (error_not_authorised_to_modify) %]
34
[% IF (error_not_authorised_to_modify) %]
35
    <div class="error">
35
    <div class="dialog alert">
36
        <p>You are not authorized to modify this fund</p>
36
        <p>You are not authorized to modify this fund</p>
37
    </div>
37
    </div>
38
[% END %]
38
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt (-3 / +3 lines)
Lines 87-97 a.add, a.delete { Link Here
87
    [% END %]
87
    [% END %]
88
88
89
    <h1>Search engine configuration</h1>
89
    <h1>Search engine configuration</h1>
90
    <div class="warning">
90
    <div class="dialog message">
91
        Warning: Any modification in these configurations will need a total reindexation to be fully taken into account !
91
        <strong>Warning:</strong> Any modification in these configurations will need a total reindexation to be fully taken into account !
92
    </div>
92
    </div>
93
    [% IF errors %]
93
    [% IF errors %]
94
        <div class="error">
94
        <div class="dialog alert">
95
        Errors occurred, Modifications does not apply. Please check following values:
95
        Errors occurred, Modifications does not apply. Please check following values:
96
          <ul>
96
          <ul>
97
            [% FOREACH e IN errors %]
97
            [% FOREACH e IN errors %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-2 / +2 lines)
Lines 22-30 Link Here
22
	<div class="yui-b">
22
	<div class="yui-b">
23
    [% IF error_alert %]
23
    [% IF error_alert %]
24
        [% IF ( error_alert == "no_email" ) %]
24
        [% IF ( error_alert == "no_email" ) %]
25
            <div class="error">This member has no email</div>
25
            <div class="dialog alert">This member has no email</div>
26
        [% ELSE %]
26
        [% ELSE %]
27
            <div class="error">[% error_alert %]</div>
27
            <div class="dialog alert">[% error_alert %]</div>
28
        [% END %]
28
        [% END %]
29
    [% END %]
29
    [% END %]
30
    [% IF info_alert %]
30
    [% IF info_alert %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt (-2 / +6 lines)
Lines 76-86 Link Here
76
                                        [% plugin.metadata.description %]
76
                                        [% plugin.metadata.description %]
77
77
78
                                        [% IF ( plugin.metadata.minimum_version && koha_version < plugin.metadata.minimum_version ) %]
78
                                        [% IF ( plugin.metadata.minimum_version && koha_version < plugin.metadata.minimum_version ) %]
79
                                            <div class="error">Warning: This report was written for a newer version of Koha. Run at your own risk.</div>
79
                                            <div class="dialog alert">
80
                                                Warning: This report was written for a newer version of Koha. Run at your own risk.
81
                                            </div>
80
                                        [% END %]
82
                                        [% END %]
81
83
82
                                        [% IF ( plugin.metadata.maximum_version && koha_version > plugin.metadata.maximum_version ) %]
84
                                        [% IF ( plugin.metadata.maximum_version && koha_version > plugin.metadata.maximum_version ) %]
83
                                            <div class="error">Warning: This report was written for an older version of Koha. Run at your own risk.</div>
85
                                            <div class="dialog alert">
86
                                                Warning: This report was written for an older version of Koha. Run at your own risk.
87
                                            </div>
84
                                        [% END %]
88
                                        [% END %]
85
                                    </td>
89
                                    </td>
86
                                    <td>[% plugin.metadata.author %]</td>
90
                                    <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