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 202-207 Link Here
202
[% END # /IF patron.borrowernotes %]
202
[% END # /IF patron.borrowernotes %]
203
203
204
[% IF ( patron_messages ) %]
204
[% IF ( patron_messages ) %]
205
    <script>
206
    function confirm_deletion() {
207
        if (confirm(_("Are you sure you want to delete this message? This cannot be undone."))) {
208
            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";
209
        }
210
    }
211
    </script>
205
    <div id="messages" class="circmessage">
212
    <div id="messages" class="circmessage">
206
        <h4>Messages</h4>
213
        <h4>Messages</h4>
207
        <ul>
214
        <ul>
Lines 220-226 Link Here
220
                        <em>"[% patron_message.message | html %]"</em>
227
                        <em>"[% patron_message.message | html %]"</em>
221
                    </span>
228
                    </span>
222
                    [% IF patron_message.branchcode == Branches.GetLoggedInBranchcode OR Koha.Preference('AllowAllMessageDeletion') %]
229
                    [% IF patron_message.branchcode == Branches.GetLoggedInBranchcode OR Koha.Preference('AllowAllMessageDeletion') %]
223
                        <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>
230
                        <a class="btn btn-link" href="javascript:confirm_deletion()"><i class="fa fa-trash"></i> Delete</a>
224
                    [% END %]
231
                    [% END %]
225
                </li>
232
                </li>
226
            [% END %]
233
            [% END %]
(-)a/misc/translator/po/fr-CA-staff-prog.po (-1 / +5 lines)
Lines 13581-13586 msgstr "Voulez-vous vraiment supprimer cette macro?" Link Here
13581
msgid "Are you sure you want to delete this message?"
13581
msgid "Are you sure you want to delete this message?"
13582
msgstr "Voulez-vous vraiment supprimer ce message?"
13582
msgstr "Voulez-vous vraiment supprimer ce message?"
13583
13583
13584
#. SCRIPT
13585
#: koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc:205
13586
msgid "Are you sure you want to delete this message? This cannot be undone."
13587
msgstr "Êtes-vous sûr de vouloir supprimer ce message? Cette opération est irréversible."
13588
13584
#. SCRIPT
13589
#. SCRIPT
13585
#: koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt:268
13590
#: koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt:268
13586
msgid "Are you sure you want to delete this news item? This cannot be undone."
13591
msgid "Are you sure you want to delete this news item? This cannot be undone."
13587
- 

Return to bug 30028