2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Tools › Patron card creator › Profiles › [% IF ( profile_id ) %]Edit ([% profile_id %])[% ELSE %]New[% END%]</title>
4 [% INCLUDE 'doc-head-close.inc' %]
7 <body id="pcard_edit-profile" class="tools pcard">
8 [% INCLUDE 'header.inc' %]
9 [% INCLUDE 'cat-search.inc' %]
10 <div id="breadcrumbs">
11 <a href="/cgi-bin/koha/mainpage.pl">Home</a> ›
12 <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> ›
13 <a href="/cgi-bin/koha/patroncards/home.pl">Patron card creator</a> ›
14 <a href="/cgi-bin/koha/patroncards/manage.pl?card_element=profile">Profiles</a> ›
15 [% IF ( profile_id ) %]Edit ([% profile_id %])[% ELSE %]New[% END%]
17 <div id="doc3" class="yui-t2">
22 [% INCLUDE 'patroncards-toolbar.inc' %]
23 <div class="yui-u first">
28 <h3>[% IF (profile_id) %]Edit[% ELSE %]Create[% END%] printer profile[% IF (profile_id) %] ([% profile_id %])[% END %]</h3>
29 <div class="yui-g first">
30 <form name="input" action="/cgi-bin/koha/patroncards/edit-profile.pl" method="get">
31 <fieldset class="rows"><legend>Profile settings</legend>
34 [% IF ( profile_id ) %]
35 <span class="label">Printer name:</span>[% printer_name %]
36 <input type="hidden" name="printer_name" value="[% printer_name %]" />
38 <label for="printer_name">Printer name:</label><input type="text" size="20" name="printer_name" id="printer_name" />
42 [% IF ( profile_id ) %]
43 <span class="label">Paper bin:</span> [% paper_bin %]
44 <input type="hidden" name="paper_bin" value="[% paper_bin %]" />
46 <label for="paper_bin">Paper bin:</label><input type="text" size="20" name="paper_bin" id="paper_bin" />
50 [% IF ( label_template ) %]
51 <label for="template_name">Template name:</label> [% label_template %]
53 <span class="label">Template name:</span> Profile unassigned
57 <label for="units">Units: </label>
58 <select id="units" name="units">
59 [% FOREACH unit IN units %]
60 [% IF ( unit.selected ) %]
61 <option value="[% unit.type %]" selected="selected">
63 <option value="[% unit.type %]">
73 <fieldset class="rows"><legend>Offset:</legend>
76 <label for="offset_horz">Horizontal: </label><input type="text" size="4" name="offset_horz" id="offset_horz" value="[% offset_horz %]" />
79 <label for="offset_vert">Vertical: </label><input type="text" size="4" name="offset_vert" id="offset_vert" value="[% offset_vert %]" />
84 <fieldset class="rows"><legend>Creep:</legend>
87 <label for="creep_horz">Horizontal: </label><input type="text" size="4" name="creep_horz" id="creep_horz" value="[% creep_horz %]" />
90 <label for="creep_vert">Vertical: </label><input type="text" size="4" name="creep_vert" id="creep_vert" value="[% creep_vert %]" />
94 <fieldset class="action">
95 <input type="submit" value="Save" />
96 <a href="/cgi-bin/koha/patroncards/manage.pl?card_element=profile" class="cancel">Cancel</a>
97 <input type="hidden" name="op" value="save" />
98 <input type="hidden" name="profile_id" value="[% profile_id %]" />
106 [% INCLUDE 'tools-menu.inc' %]
110 [% MACRO jsinclude BLOCK %]
112 $(document).ready(function(){
113 var selectedUnit = $("#units option:selected").attr("value");
114 var unitfields = $("#offset_horz,#offset_vert,#creep_horz,#creep_vert");
115 $(unitfields).after("<span class=\"unit\">"+getUnit(selectedUnit)+"</span>");
116 $("#units").change(function(){
117 $(".unit").html(getUnit($(this).val()));
119 function getUnit(unit){
145 [% INCLUDE 'intranet-bottom.inc' %]