2 [% PROCESS 'i18n.inc' %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>[% FILTER collapse %]
7 [% tx("Edit printer profile {profile_id}", { profile_id = profile_id }) | html %]
9 [% t("New printer profile") | html %]
11 [% t("Profiles") | html %] ›
12 [% t("Label creator") | html %] ›
13 [% t("Cataloging") | html %] ›
14 [% t("Koha") | html %]
16 [% INCLUDE 'doc-head-close.inc' %]
19 <body id="labels_label-edit-profile" class="tools labels">
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/cataloguing/cataloging-home.pl">Cataloging</a>
29 [% WRAPPER breadcrumb_item %]
30 <a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a>
32 [% WRAPPER breadcrumb_item %]
33 <a href="/cgi-bin/koha/labels/label-manage.pl?label_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 'labels-toolbar.inc' %]
52 [% IF ( profile_id ) %]
53 <h1>Edit printer profile [% profile_id | html %]</h1>
55 <h1>New printer profile</h1>
58 <form name="input" action="/cgi-bin/koha/labels/label-edit-profile.pl" method="get">
59 <fieldset class="rows"><legend>Profile settings</legend>
62 [% IF ( profile_id ) %]
63 <span class="label">Printer name:</span>[% printer_name | html %]
64 <input type="hidden" name="printer_name" value="[% printer_name | html %]" />
66 <label for="printer_name">Printer name:</label><input type="text" size="20" name="printer_name" id="printer_name" />
70 [% IF ( profile_id ) %]
71 <span class="label">Paper bin:</span> [% paper_bin | html %]
72 <input type="hidden" name="paper_bin" value="[% paper_bin | html %]" />
74 <label for="paper_bin">Paper bin:</label><input type="text" size="20" name="paper_bin" id="paper_bin" />
78 [% IF ( label_template ) %]
79 <label for="template_name">Template name:</label> [% label_template | html %]
81 <span class="label">Template name:</span> Profile unassigned
85 <label for="units">Units: </label>
86 <select id="units" name="units">
87 [% FOREACH unit IN units %]
88 [% IF ( unit.selected ) %]
89 <option value="[% unit.type | html %]" selected="selected">
91 <option value="[% unit.type | html %]">
93 [% SWITCH unit.type %]
95 <span>PostScript points</span>
99 <span>US Inches</span>
101 <span>SI Millimeters</span>
103 <span>SI Centimeters</span>
112 <fieldset class="rows"><legend>Offset:</legend>
115 <label for="offset_horz">Horizontal: </label><input type="text" size="4" name="offset_horz" id="offset_horz" value="[% offset_horz | html %]" />
118 <label for="offset_vert">Vertical: </label><input type="text" size="4" name="offset_vert" id="offset_vert" value="[% offset_vert | html %]" />
123 <fieldset class="rows"><legend>Creep:</legend>
126 <label for="creep_horz">Horizontal: </label><input type="text" size="4" name="creep_horz" id="creep_horz" value="[% creep_horz | html %]" />
129 <label for="creep_vert">Vertical: </label><input type="text" size="4" name="creep_vert" id="creep_vert" value="[% creep_vert | html %]" />
133 <fieldset class="action">
134 <input type="submit" class="btn btn-primary" value="Save" />
135 <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile" class="cancel">Cancel</a>
136 <input type="hidden" name="op" value="save" />
137 <input type="hidden" name="profile_id" value="[% profile_id | html %]" />
142 </div> <!-- /.col-sm-10.col-sm-push-2 -->
144 <div class="col-sm-2 col-sm-pull-10">
146 [% INCLUDE 'cat-menu.inc' %]
148 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
149 </div> <!-- /.row -->
151 [% MACRO jsinclude BLOCK %]
153 $(document).ready(function(){
154 $('#navmenulist a[href$="/cgi-bin/koha/labels/label-home.pl"]').addClass("current");
155 var selectedUnit = $("#units option:selected").val();
156 var unitfields = $("#offset_horz,#offset_vert,#creep_horz,#creep_vert");
157 $(unitfields).after("<span class=\"unit\">"+getUnit(selectedUnit)+"</span>");
158 $("#units").change(function(){
159 $(".unit").html(getUnit($(this).val()));
162 function getUnit(unit){
187 [% INCLUDE 'intranet-bottom.inc' %]