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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc (-1 / +8 lines)
Lines 200-205 Link Here
200
[% END # /IF patron.borrowernotes %]
200
[% END # /IF patron.borrowernotes %]
201
201
202
[% IF ( patron_messages ) %]
202
[% IF ( patron_messages ) %]
203
    <script>
204
    function confirm_deletion() {
205
        if (confirm(_("Are you sure you want to delete this message? This cannot be undone."))) {
206
            window.location="/cgi-bin/koha/circ/del_message.pl?message_id=[% patron_message.message_id | html %]&amp;borrowernumber=[% patron_message.borrowernumber | html %]&amp;from=moremember";
207
        }
208
    }
209
    </script>
203
    <div id="messages" class="circmessage">
210
    <div id="messages" class="circmessage">
204
        <h4>Messages</h4>
211
        <h4>Messages</h4>
205
        <ul>
212
        <ul>
Lines 218-224 Link Here
218
                        <em>"[% patron_message.message | html %]"</em>
225
                        <em>"[% patron_message.message | html %]"</em>
219
                    </span>
226
                    </span>
220
                    [% IF patron_message.branchcode == Branches.GetLoggedInBranchcode OR Koha.Preference('AllowAllMessageDeletion') %]
227
                    [% IF patron_message.branchcode == Branches.GetLoggedInBranchcode OR Koha.Preference('AllowAllMessageDeletion') %]
221
                        <a class="btn btn-link" href="/cgi-bin/koha/circ/del_message.pl?message_id=[% patron_message.message_id | html %]&amp;borrowernumber=[% patron_message.borrowernumber | html %]&amp;from=moremember" onclick='return confirm(_("Are you sure you want to delete this message? This cannot be undone."));'><i class="fa fa-trash"></i> Delete</a>
228
                        <a class="btn btn-link" href="javascript:confirm_deletion()"><i class="fa fa-trash"></i> Delete</a>
222
                    [% END %]
229
                    [% END %]
223
                </li>
230
                </li>
224
            [% END %]
231
            [% END %]
(-)a/misc/translator/po/fr-CA-staff-prog.po (-1 / +5 lines)
Lines 15675-15680 msgstr "Voulez-vous vraiment supprimer cette macro?" Link Here
15675
msgid "Are you sure you want to delete this message?"
15675
msgid "Are you sure you want to delete this message?"
15676
msgstr "Voulez-vous vraiment supprimer ce message?"
15676
msgstr "Voulez-vous vraiment supprimer ce message?"
15677
15677
15678
#. SCRIPT
15679
#: koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc:205
15680
msgid "Are you sure you want to delete this message? This cannot be undone."
15681
msgstr "Êtes-vous sûr de vouloir supprimer ce message? Cette opération est irréversible."
15682
15678
#. SCRIPT
15683
#. SCRIPT
15679
#: koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt:267
15684
#: koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt:267
15680
msgid "Are you sure you want to delete this news item? This cannot be undone."
15685
msgid "Are you sure you want to delete this news item? This cannot be undone."
15681
- 

Return to bug 30028