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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/sms_providers.tt (-6 lines)
Lines 101-112 Link Here
101
101
102
[% MACRO jsinclude BLOCK %]
102
[% MACRO jsinclude BLOCK %]
103
    [% Asset.js("js/admin-menu.js") | $raw %]
103
    [% Asset.js("js/admin-menu.js") | $raw %]
104
    <script>
105
        var MSG_SMS_PATRONS_USING = _("Are you sure you want to delete %s? %s patron(s) are using it!");
106
        var MSG_SMS_DELETE_CONFIRM = _("Are you sure you want to delete %s?");
107
        var LABEL_SMS_ADD_PROVIDER = _("Add an SMS cellular provider");
108
        var LABEL_SMS_EDIT_PROVIDER = _("Edit provider %s");
109
    </script>
110
    [% Asset.js("js/sms_providers.js") | $raw %]
104
    [% Asset.js("js/sms_providers.js") | $raw %]
111
[% END %]
105
[% END %]
112
[% INCLUDE 'intranet-bottom.inc' %]
106
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/sms_providers.js (-5 / +4 lines)
Lines 33-39 function clear_form(){ Link Here
33
function add_provider(){
33
function add_provider(){
34
    clear_form();
34
    clear_form();
35
    $(".dialog").hide();
35
    $(".dialog").hide();
36
    $("legend").text( LABEL_SMS_ADD_PROVIDER );
36
    $("legend").text( __("Add an SMS cellular provider") );
37
    $("#toolbar,#submit_update,#providerst").hide();
37
    $("#toolbar,#submit_update,#providerst").hide();
38
    $("#sms_add_form,#submit_save").show();
38
    $("#sms_add_form,#submit_save").show();
39
    $("#name").focus();
39
    $("#name").focus();
Lines 41-47 function add_provider(){ Link Here
41
41
42
function edit_provider( id ) {
42
function edit_provider( id ) {
43
    clear_form();
43
    clear_form();
44
    $("legend").text( LABEL_SMS_EDIT_PROVIDER.format( $("#name_" + id).text() ) );
44
    $("legend").text( __("Edit provider %s").format($("#name_" + id).text()) );
45
    $("#sms_add_form,#submit_update").show();
45
    $("#sms_add_form,#submit_update").show();
46
46
47
    $("#id").val( id );
47
    $("#id").val( id );
Lines 64-72 function cancel_edit() { Link Here
64
function delete_provider( id, users ) {
64
function delete_provider( id, users ) {
65
    var c;
65
    var c;
66
    if ( users ) {
66
    if ( users ) {
67
        c = confirm( MSG_SMS_PATRONS_USING.format( $("#name_" + id).html(), users ) );
67
        c = confirm( __("Are you sure you want to delete %s? %s patron(s) are using it!").format($("#name_" + id).html(), users) );
68
    } else {
68
    } else {
69
        c = confirm( MSG_SMS_DELETE_CONFIRM.format( $("#name_" + id).html() ) );
69
        c = confirm( __("Are you sure you want to delete %s?").format($("#name_" + id).html()) );
70
    }
70
    }
71
71
72
    if ( c ) {
72
    if ( c ) {
73
- 

Return to bug 26240