1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Tools › Patron Card Creator</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/javascript">
6 $(document).ready(function(){
7 var selectedUnit = $("#units option:selected").attr("value");
8 var unitfields = $("#offset_horz,#offset_vert,#creep_horz,#creep_vert");
9 $(unitfields).after("<span class=\"unit\">"+getUnit(selectedUnit)+"</span>");
10 $("#units").change(function(){
11 $(".unit").html(getUnit($(this).val()));
13 function getUnit(unit){
38 <script type="text/javascript">
40 $(document).ready(function() {
45 function submitForm() {
46 document.input.submit();
48 function buildButtons() {
49 var saveButton = new YAHOO.widget.Button({
51 onclick: {fn: submitForm},
56 var cancelButton = new YAHOO.widget.Button({
58 href: "/cgi-bin/koha/patroncards/manage.pl?card_element=profile",
67 <!-- TMPL_INCLUDE NAME="header.inc" -->
68 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
69 <div id="breadcrumbs">
70 <a href="/cgi-bin/koha/mainpage.pl">Home</a> ›
71 <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> ›
72 <a href="/cgi-bin/koha/patroncards/home.pl">Patron Card Creator</a> ›
73 <a href="/cgi-bin/koha/patroncards/manage.pl?label_element=profile">Printer Profiles</a> ›
76 <div id="doc3" class="yui-t2">
81 <h3>Edit Printer Profile</h3>
82 <div class="yui-g first">
83 <form name="input" action="/cgi-bin/koha/patroncards/edit-profile.pl" method="get">
84 <fieldset class="rows"><legend>Profile settings</legend>
87 <!-- TMPL_IF NAME="profile_id" -->
88 <span class="label">Printer name:</span><!-- TMPL_VAR NAME="printer_name" -->
89 <input type="hidden" name="printer_name" value="<!-- TMPL_VAR NAME="printer_name" -->" />
91 <label for="printer_name">Printer name:</label><input type="text" size="20" name="printer_name" id="printer_name" />
95 <!-- TMPL_IF NAME="profile_id" -->
96 <span class="label">Paper bin:</span> <!-- TMPL_VAR NAME="paper_bin" -->
97 <input type="hidden" name="paper_bin" value="<!-- TMPL_VAR NAME="paper_bin" -->" />
99 <label for="paper_bin">Paper bin:</label><input type="text" size="20" name="paper_bin" id="paper_bin" />
103 <!-- TMPL_IF NAME="label_template" -->
104 <label for="template_name">Template name:</label> <!-- TMPL_VAR NAME="label_template" -->
106 <span class="label">Template name:</span> Profile Unassigned
110 <label for="units">Units: </label>
111 <select id="units" name="units">
112 <!-- TMPL_LOOP NAME="units" -->
113 <!-- TMPL_IF NAME="selected" -->
114 <option value="<!-- TMPL_VAR NAME="type" -->" selected="selected">
116 <option value="<!-- TMPL_VAR NAME="type" -->">
118 <!-- TMPL_VAR NAME="desc" -->
126 <fieldset class="rows"><legend>Offset:</legend>
129 <label for="offset_horz">Horizontal: </label><input type="text" size="4" name="offset_horz" id="offset_horz" value="<!-- TMPL_VAR NAME="offset_horz" -->" />
132 <label for="offset_vert">Vertical: </label><input type="text" size="4" name="offset_vert" id="offset_vert" value="<!-- TMPL_VAR NAME="offset_vert" -->" />
137 <fieldset class="rows"><legend>Creep:</legend>
140 <label for="creep_horz">Horizontal: </label><input type="text" size="4" name="creep_horz" id="creep_horz" value="<!-- TMPL_VAR NAME="creep_horz" -->" />
143 <label for="creep_vert">Vertical: </label><input type="text" size="4" name="creep_vert" id="creep_vert" value="<!-- TMPL_VAR NAME="creep_vert" -->" />
147 <fieldset class="action">
148 <span id="save"><input type="submit" value="Save" /></span>
149 <span id ="cancel"><a href="/cgi-bin/koha/patroncards/manage.pl?card_element=profile" class="cancel">Cancel</a></span>
150 <input type="hidden" name="op" value="save" />
151 <input type="hidden" name="profile_id" value="<!-- TMPL_VAR NAME="profile_id" -->" />
159 <!-- TMPL_INCLUDE NAME="patroncards-menu.inc" -->
162 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->