Bug 22904: Untranslatable strings in members-menu.js
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / str / members-menu.inc
1 [% USE scalar %]
2 [% USE Koha %]
3 [% USE Categories %]
4
5 <script>
6     var MSG_CONFIRM_RENEW_PATRON = _("Are you sure you want to renew this patron's registration?");
7     var MSG_CONFIRM_UPDATE_CHILD = _("Are you sure you want to update this child to an Adult category? This cannot be undone.");
8     var MSG_DATE_FORMAT_US = _("Dates of birth should be entered in the format 'MM/DD/YYYY'");
9     var MSG_DATE_FORMAT_ISO = _("Dates of birth should be entered in the format 'YYYY-MM-DD'");
10     var MSG_DATE_FORMAT_METRIC = _("Dates of birth should be entered in the format 'DD/MM/YYYY'");
11     var MSG_DATE_FORMAT_DMYDOT = _("Dates of birth should be entered in the format 'DD.MM.YYYY'");
12
13     var advsearch = "[% advsearch | html %]";
14     var destination = "[% destination | html %]";
15
16     var CAN_user_borrowers_edit_borrowers = "[% CAN_user_borrowers_edit_borrowers | html %]";
17
18     var dateformat = "[% Koha.Preference('dateformat') | html %]";
19
20     var borrowernumber;
21     var number_of_adult_categories = 0;
22     [% IF patron %]
23         borrowernumber = "[% patron.borrowernumber | html %]";
24         [% IF patron.is_child %]
25             [% SET adult_categories = Categories.scalar.all(category_type => 'A') %]
26             [% SET number_of_adult_categories = adult_categories.count %]
27             number_of_adult_categories = [% number_of_adult_categories | html %]
28         [% END %]
29     [% END %]
30
31     [% IF ( patron.image ) %]
32         $("body").on("click", "#delpicture", function(){
33              return confirm(_("Are you sure you want to delete this patron image? This cannot be undone."));
34         });
35         $('#manage-patron-image').find("input[value*=Upload]").click(function(){
36             if($("#uploadfile").val() == ""){
37                 alert(_("Please choose a file to upload"));
38                 return false;
39             }
40             return confirm(_("Are you sure you want to replace the current patron image? This cannot be undone."));
41         });
42     [% END %]
43 </script>