[% INCLUDE 'doc-head-open.inc' %]
- <title>Koha › Tools › Patron card creator › Templates</title>
+ <title>Koha › Tools › Patron card creator › Templates › [% IF (template_id) %]Edit ([% template_id %])[% ELSE %]New[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
<script type="text/javascript">
//<![CDATA[
});
//]]>
</script>
- <script type="text/javascript">
- //<![CDATA[
- $(document).ready(function() {
- $("#save").empty();
- $("#cancel").empty();
- buildButtons();
- });
- function submitForm() {
- document.input.submit();
- };
- function buildButtons() {
- var saveButton = new YAHOO.widget.Button({
- type: "link",
- onclick: {fn: submitForm},
- label: _("Save"),
- id: "save",
- container: "save"
- });
- var cancelButton = new YAHOO.widget.Button({
- type: "link",
- href: "/cgi-bin/koha/patroncards/manage.pl?card_element=template",
- label: _("Cancel"),
- id: "cancel",
- container: "cancel",
- });
- };
- </script>
</head>
<body id="pcard_edit-template" class="tools pcard">
[% INCLUDE 'header.inc' %]
<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> ›
- <a href="/cgi-bin/koha/patroncards/manage.pl?card_element=template">Patron card templates</a> ›
- Edit patron card template
+ <a href="/cgi-bin/koha/patroncards/manage.pl?card_element=template">Templates</a> ›
+ [% IF (template_id) %]Edit ([% template_id %])[% ELSE %]New[% END %]
</div>
<div id="doc3" class="yui-t2">
<div id="bd">
<div id="yui-main">
<div class="yui-b">
+ <div class="yui-g">
+ [% INCLUDE 'patroncards-toolbar.inc' %]
+ <div class="yui-u first">
+
+ </div>
+ </div>
<form name="input" action="/cgi-bin/koha/patroncards/edit-template.pl" method="get">
<div class="yui-g">
- <h3>Edit patron card template</h3>
+ <h3>[% IF (template_id) %]Edit[% ELSE %]Create[% END %] patron card template[% IF (template_id) %] ([% template_id %])[% END %]</h3>
<div class="yui-u first">
<fieldset class="rows">
<ol>
<label for="page_width">Page width:</label>
<input type="text" size="4" name="page_width" id="page_width" value="[% page_width %]" />
</li>
- <li>
- <label for="card_width">Card width:</label>
- <input type="text" size="4" name="card_width" id="card_width" value="[% card_width %]" />
- </li>
<li>
<label for="card_height">Card height:</label>
<input type="text" size="4" name="card_height" id="card_height" value="[% card_height %]" />
</li>
+ <li>
+ <label for="card_width">Card width:</label>
+ <input type="text" size="4" name="card_width" id="card_width" value="[% card_width %]" />
+ </li>
+
</ol>
</fieldset>
</div>
<div class="yui-g">
<fieldset class="action">
- <span id="save"><input type="submit" class="submit" value="Save" /></span>
- <span id="cancel"><a class="cancel" href="/cgi-bin/koha/patroncards/manage.pl?card_element=template">Cancel</a></span>
+ <input type="submit" class="submit" value="Save" />
+ <a class="cancel" href="/cgi-bin/koha/patroncards/manage.pl?card_element=template">Cancel</a>
<input type="hidden" name="op" value="save" />
[% IF ( template_id ) %]
<input type="hidden" name="template_id" value="[% template_id %]" />
</div>
</div>
<div class="yui-b">
- [% INCLUDE 'patroncards-menu.inc' %]
+ [% INCLUDE 'tools-menu.inc' %]
</div>
</div>
[% INCLUDE 'intranet-bottom.inc' %]