2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Tools › Patron card creator › Profiles › [% IF ( profile_id ) %]Edit ([% profile_id | html %])[% 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 | html %])[% ELSE %]New[% END%]
18 <div class="main container-fluid">
20 <div class="col-sm-10 col-sm-push-2">
23 [% INCLUDE 'patroncards-toolbar.inc' %]
25 <h3>[% IF (profile_id) %]Edit[% ELSE %]Create[% END%] printer profile[% IF (profile_id) %] ([% profile_id | html %])[% END %]</h3>
26 <form name="input" action="/cgi-bin/koha/patroncards/edit-profile.pl" method="get">
27 <fieldset class="rows"><legend>Profile settings</legend>
30 [% IF ( profile_id ) %]
31 <span class="label">Printer name:</span>[% printer_name | html %]
32 <input type="hidden" name="printer_name" value="[% printer_name | html %]" />
34 <label for="printer_name">Printer name:</label><input type="text" size="20" name="printer_name" id="printer_name" />
38 [% IF ( profile_id ) %]
39 <span class="label">Paper bin:</span> [% paper_bin | html %]
40 <input type="hidden" name="paper_bin" value="[% paper_bin | html %]" />
42 <label for="paper_bin">Paper bin:</label><input type="text" size="20" name="paper_bin" id="paper_bin" />
46 [% IF ( label_template ) %]
47 <label for="template_name">Template name:</label> [% label_template | html %]
49 <span class="label">Template name:</span> Profile unassigned
53 <label for="units">Units: </label>
54 <select id="units" name="units">
55 [% FOREACH unit IN units %]
56 [% IF ( unit.selected ) %]
57 <option value="[% unit.type | html %]" selected="selected">
59 <option value="[% unit.type | html %]">
61 [% unit.desc | html %]
69 <fieldset class="rows"><legend>Offset:</legend>
72 <label for="offset_horz">Horizontal: </label><input type="text" size="4" name="offset_horz" id="offset_horz" value="[% offset_horz | html %]" />
75 <label for="offset_vert">Vertical: </label><input type="text" size="4" name="offset_vert" id="offset_vert" value="[% offset_vert | html %]" />
80 <fieldset class="rows"><legend>Creep:</legend>
83 <label for="creep_horz">Horizontal: </label><input type="text" size="4" name="creep_horz" id="creep_horz" value="[% creep_horz | html %]" />
86 <label for="creep_vert">Vertical: </label><input type="text" size="4" name="creep_vert" id="creep_vert" value="[% creep_vert | html %]" />
90 <fieldset class="action">
91 <input type="submit" value="Save" />
92 <a href="/cgi-bin/koha/patroncards/manage.pl?card_element=profile" class="cancel">Cancel</a>
93 <input type="hidden" name="op" value="save" />
94 <input type="hidden" name="profile_id" value="[% profile_id | html %]" />
99 </div> <!-- /.col-sm-10.col-sm-push-2 -->
101 <div class="col-sm-2 col-sm-pull-10">
103 [% INCLUDE 'tools-menu.inc' %]
105 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
106 </div> <!-- /.row -->
108 [% MACRO jsinclude BLOCK %]
110 $(document).ready(function(){
111 var selectedUnit = $("#units option:selected").attr("value");
112 var unitfields = $("#offset_horz,#offset_vert,#creep_horz,#creep_vert");
113 $(unitfields).after("<span class=\"unit\">"+getUnit(selectedUnit)+"</span>");
114 $("#units").change(function(){
115 $(".unit").html(getUnit($(this).val()));
117 function getUnit(unit){
143 [% INCLUDE 'intranet-bottom.inc' %]