[% INCLUDE 'doc-head-open.inc' %]
- <title>Koha › Tools › Patron Cards › Manage Patron Card Elements</title>
+ <title>Koha › Tools › Patron cards › Manage patron card elements</title>
[% INCLUDE 'doc-head-close.inc' %]
[% INCLUDE 'greybox.inc' %]
<script type="text/javascript">
function DeleteConfirm() {
var element_id = selected_layout("delete");
if (element_id>-1) {
- var msg = "Are you sure you want to delete [% card_element %] " + element_id + "?"
+ var msg = _("Are you sure you want to delete") + " [% card_element %] " + element_id + "?"
var answer = confirm(msg);
if (answer) {
window.location = "/cgi-bin/koha/patroncards/manage.pl?op=delete&card_element=[% card_element %]&element_id=" + element_id;
}
}
if (batches.length < 1) {
- alert(_('Please select at least one batch to export.'));
+ alert(_("Please select at least one batch to export."));
return; // no batch selected
}
getstr = batches.join("&");
getstr = "batch_id="+document.layouts.action.value;
}
else {
- alert(_('Please select at least one batch to export.'));
+ alert(_("Please select at least one batch to export."));
return; // no batch selected
}
- return GB_showCenter('Export Patron Cards', "/cgi-bin/koha/patroncards/print.pl?" + getstr, 700, 800);
+ return GB_showCenter(_("Export patron cards"), "/cgi-bin/koha/patroncards/print.pl?" + getstr, 700, 800);
};
function selected_layout(op) {
var selected = new Array;
return(document.layouts.action[selected[0]].value);
}
else {
- alert(_('Please select only one ')+'[% card_element %]'+_(' to ') + op + '.');
+ alert(_("Please select only one ")+"[% card_element %]"+_(" to ") + op + ".");
return (-1);
}
}
return(document.layouts.action.value);
}
};
- alert(_('Please select a ')+'[% card_element %].');
+ alert(_("Please select a ")+"[% card_element %].");
return (-1);
};
- //]]>
- </script>
- <script type="text/javascript">
- //<![CDATA[
- $(document).ready(function() {
- $("#edit").empty();
- $("#delete").empty();
- [% IF ( print ) %]
- $("#xport").empty();
- [% END %]
- buildButtons();
- });
- function buildButtons() {
- var editButton = new YAHOO.widget.Button({
- type: "link",
- onclick: {fn: Edit},
- label: _("Edit"),
- id: "edit",
- container: "edit"
+ $(document).ready(function() {
+ $("#edit").click(function(){
+ Edit();
+ return false;
});
- var deleteButton = new YAHOO.widget.Button({
- type: "link",
- onclick: {fn: DeleteConfirm},
- label: _("Delete"),
- id: "delete",
- container: "delete",
+ $("#delete").click(function(){
+ DeleteConfirm();
+ return false;
});
- [% IF ( print ) %]
- var xportButton = new YAHOO.widget.Button({
- type: "link",
- onclick: {fn: Xport},
- label: _("Export"),
- id: "xport",
- container: "xport",
+ $("#print").click(function(){
+ Xport();
+ return false;
});
- [% END %]
- };
- </script>
+ });
+//]]>
+</script>
</head>
-<body>
+<body id="pcard_manage" class="tools pcard">
[% INCLUDE 'header.inc' %]
[% INCLUDE 'cat-search.inc' %]
<div id="breadcrumbs">
<a href="/cgi-bin/koha/mainpage.pl">Home</a> ›
<a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> ›
- <a href="/cgi-bin/koha/patroncards/home.pl">Patron Card Creator</a> ›
- Manage Card [% card_element_title %]
+ <a href="/cgi-bin/koha/patroncards/home.pl">Patron card creator</a> ›
+ Manage card [% card_element_title %]
</div>
<div id="doc3" class="yui-t2">
<div id="bd">
[% INCLUDE 'error-messages.inc' %]
<div class="yui-gc">
<div class="yui-u first" id="manage-patroncards-layouts">
- <div class="hint">Current Branch: [% LoginBranchname %]</div>
+ <div class="hint">Current library: [% LoginBranchname %]</div>
[% IF ( table_loop ) %]
<form name="layouts" action="/cgi-bin/koha/manage.pl?card_element=[% card_element %]">
<h2>Currently Available [% card_element_title %]</h2>
[% END %]
</table>
<fieldset class="action">
- <span id="edit"><input type="button" id="edit" onclick="Edit()" value="Edit" /></span>
- <span id="delete"><input type="button" id="delete" onclick="DeleteConfirm()" value="Delete" /></span>
- [% IF ( print ) %]<span id="xport"><input type="button" id="print" onclick="Xport()" value="Export" /></span>[% END %]
+ <input type="button" id="edit" value="Edit" />
+ <input type="button" id="delete" value="Delete" />
+ [% IF ( print ) %]<input type="button" id="print" value="Export" />[% END %]
</fieldset>
</form>
[% ELSE %]
<div class="dialog message">
- <h4>There Are No [% card_element_title %] Currently Available.</h4>
+ <h4>There are no [% card_element_title %] currently available.</h4>
<p>Use the toolbar above to create a new [% card_element %].</p></div>
[% END %]
</div>