2 [% PROCESS 'i18n.inc' %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>[% FILTER collapse %]
7 [% t("Edit printer profile") | html %] ([% profile_id | html %])
9 [% t("New printer profile") | html %]
11 [% t("Profiles") | html %] ›
12 [% t("Patron card creator") | html %] ›
13 [% t("Tools") | html %] ›
14 [% t("Koha") | html %]
16 [% INCLUDE 'doc-head-close.inc' %]
19 <body id="pcard_edit-profile" class="tools pcard">
20 [% WRAPPER 'header.inc' %]
21 [% INCLUDE 'cat-search.inc' %]
24 [% WRAPPER 'sub-header.inc' %]
25 [% WRAPPER breadcrumbs %]
26 [% WRAPPER breadcrumb_item %]
27 <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
29 [% WRAPPER breadcrumb_item %]
30 <a href="/cgi-bin/koha/patroncards/home.pl">Patron card creator</a>
32 [% WRAPPER breadcrumb_item %]
33 <a href="/cgi-bin/koha/patroncards/manage.pl?card_element=profile">Profiles</a>
35 [% WRAPPER breadcrumb_item bc_active= 1 %]
36 [% IF ( profile_id ) %]
37 <span>Edit printer profile ([% profile_id | html %])</span>
39 <span>New printer profile</span>
42 [% END #/ WRAPPER breadcrumbs %]
43 [% END #/ WRAPPER sub-header.inc %]
45 <div class="main container-fluid">
47 <div class="col-sm-10 col-sm-push-2">
50 [% INCLUDE 'patroncards-toolbar.inc' %]
54 <span>Edit printer profile ([% profile_id | html %])</span>
56 <span>New printer profile</span>
59 <form name="input" action="/cgi-bin/koha/patroncards/edit-profile.pl" method="get">
60 <fieldset class="rows"><legend>Profile settings</legend>
63 [% IF ( profile_id ) %]
64 <span class="label">Printer name:</span>[% printer_name | html %]
65 <input type="hidden" name="printer_name" value="[% printer_name | html %]" />
67 <label for="printer_name">Printer name:</label><input type="text" size="20" name="printer_name" id="printer_name" />
71 [% IF ( profile_id ) %]
72 <span class="label">Paper bin:</span> [% paper_bin | html %]
73 <input type="hidden" name="paper_bin" value="[% paper_bin | html %]" />
75 <label for="paper_bin">Paper bin:</label><input type="text" size="20" name="paper_bin" id="paper_bin" />
79 [% IF ( label_template ) %]
80 <label for="template_name">Template name:</label> [% label_template | html %]
82 <span class="label">Template name:</span> Profile unassigned
86 <label for="units">Units: </label>
87 <select id="units" name="units">
88 [% FOREACH unit IN units %]
89 [% IF ( unit.selected ) %]
90 <option value="[% unit.type | html %]" selected="selected">
92 <option value="[% unit.type | html %]">
94 [% unit.desc | html %]
102 <fieldset class="rows"><legend>Offset:</legend>
105 <label for="offset_horz">Horizontal: </label><input type="text" size="4" name="offset_horz" id="offset_horz" value="[% offset_horz | html %]" />
108 <label for="offset_vert">Vertical: </label><input type="text" size="4" name="offset_vert" id="offset_vert" value="[% offset_vert | html %]" />
113 <fieldset class="rows"><legend>Creep:</legend>
116 <label for="creep_horz">Horizontal: </label><input type="text" size="4" name="creep_horz" id="creep_horz" value="[% creep_horz | html %]" />
119 <label for="creep_vert">Vertical: </label><input type="text" size="4" name="creep_vert" id="creep_vert" value="[% creep_vert | html %]" />
123 <fieldset class="action">
124 <input type="submit" class="btn btn-primary" value="Save" />
125 <a href="/cgi-bin/koha/patroncards/manage.pl?card_element=profile" class="cancel">Cancel</a>
126 <input type="hidden" name="op" value="save" />
127 <input type="hidden" name="profile_id" value="[% profile_id | html %]" />
132 </div> <!-- /.col-sm-10.col-sm-push-2 -->
134 <div class="col-sm-2 col-sm-pull-10">
136 [% INCLUDE 'tools-menu.inc' %]
138 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
139 </div> <!-- /.row -->
141 [% MACRO jsinclude BLOCK %]
143 $(document).ready(function(){
144 var selectedUnit = $("#units option:selected").val();
145 var unitfields = $("#offset_horz,#offset_vert,#creep_horz,#creep_vert");
146 $(unitfields).after("<span class=\"unit\">"+getUnit(selectedUnit)+"</span>");
147 $("#units").change(function(){
148 $(".unit").html(getUnit($(this).val()));
150 function getUnit(unit){
176 [% INCLUDE 'intranet-bottom.inc' %]