3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>[% IF ( profile_id ) %]Edit printer profile [% profile_id | html %] [% ELSE %] New printer profile [% END%] › Profiles › Label creator › Cataloging › Koha</title>
5 [% INCLUDE 'doc-head-close.inc' %]
8 <body id="labels_label-edit-profile" class="tools labels">
9 [% WRAPPER 'header.inc' %]
10 [% INCLUDE 'cat-search.inc' %]
13 [% WRAPPER 'sub-header.inc' %]
14 [% WRAPPER breadcrumbs %]
15 [% WRAPPER breadcrumb_item %]
16 <a href="/cgi-bin/koha/cataloguing/cataloging-home.pl">Cataloging</a>
18 [% WRAPPER breadcrumb_item %]
19 <a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a>
21 [% WRAPPER breadcrumb_item %]
22 <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile">Profiles</a>
24 [% WRAPPER breadcrumb_item bc_active= 1 %]
25 [% IF ( profile_id ) %]
26 <span>Edit printer profile [% profile_id | html %]</span>
28 <span>New printer profile</span>
31 [% END #/ WRAPPER breadcrumbs %]
32 [% END #/ WRAPPER sub-header.inc %]
34 <div class="main container-fluid">
36 <div class="col-sm-10 col-sm-push-2">
39 [% INCLUDE 'labels-toolbar.inc' %]
41 [% IF ( profile_id ) %]
42 <h1>Edit printer profile [% profile_id | html %]</h1>
44 <h1>New printer profile</h1>
47 <form name="input" action="/cgi-bin/koha/labels/label-edit-profile.pl" method="get">
48 <fieldset class="rows"><legend>Profile settings</legend>
51 [% IF ( profile_id ) %]
52 <span class="label">Printer name:</span>[% printer_name | html %]
53 <input type="hidden" name="printer_name" value="[% printer_name | html %]" />
55 <label for="printer_name">Printer name:</label><input type="text" size="20" name="printer_name" id="printer_name" />
59 [% IF ( profile_id ) %]
60 <span class="label">Paper bin:</span> [% paper_bin | html %]
61 <input type="hidden" name="paper_bin" value="[% paper_bin | html %]" />
63 <label for="paper_bin">Paper bin:</label><input type="text" size="20" name="paper_bin" id="paper_bin" />
67 [% IF ( label_template ) %]
68 <label for="template_name">Template name:</label> [% label_template | html %]
70 <span class="label">Template name:</span> Profile unassigned
74 <label for="units">Units: </label>
75 <select id="units" name="units">
76 [% FOREACH unit IN units %]
77 [% IF ( unit.selected ) %]
78 <option value="[% unit.type | html %]" selected="selected">
80 <option value="[% unit.type | html %]">
82 [% SWITCH unit.type %]
84 <span>PostScript points</span>
88 <span>US Inches</span>
90 <span>SI Millimeters</span>
92 <span>SI Centimeters</span>
101 <fieldset class="rows"><legend>Offset:</legend>
104 <label for="offset_horz">Horizontal: </label><input type="text" size="4" name="offset_horz" id="offset_horz" value="[% offset_horz | html %]" />
107 <label for="offset_vert">Vertical: </label><input type="text" size="4" name="offset_vert" id="offset_vert" value="[% offset_vert | html %]" />
112 <fieldset class="rows"><legend>Creep:</legend>
115 <label for="creep_horz">Horizontal: </label><input type="text" size="4" name="creep_horz" id="creep_horz" value="[% creep_horz | html %]" />
118 <label for="creep_vert">Vertical: </label><input type="text" size="4" name="creep_vert" id="creep_vert" value="[% creep_vert | html %]" />
122 <fieldset class="action">
123 <input type="submit" class="btn btn-primary" value="Save" />
124 <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile" class="cancel">Cancel</a>
125 <input type="hidden" name="op" value="save" />
126 <input type="hidden" name="profile_id" value="[% profile_id | html %]" />
131 </div> <!-- /.col-sm-10.col-sm-push-2 -->
133 <div class="col-sm-2 col-sm-pull-10">
135 [% INCLUDE 'cat-menu.inc' %]
137 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
138 </div> <!-- /.row -->
140 [% MACRO jsinclude BLOCK %]
142 $(document).ready(function(){
143 $('#navmenulist a[href$="/cgi-bin/koha/labels/label-home.pl"]').addClass("current");
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()));
151 function getUnit(unit){
176 [% INCLUDE 'intranet-bottom.inc' %]