3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha › Tools › Label creator › Profiles › [% IF ( profile_id ) %]Edit ([% profile_id | html %])[% ELSE %]New[% END%]</title>
5 [% INCLUDE 'doc-head-close.inc' %]
8 <body id="labels_label-edit-profile" class="tools labels">
9 [% INCLUDE 'header.inc' %]
10 [% INCLUDE 'cat-search.inc' %]
12 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
15 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
18 <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
21 <a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a>
24 <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile">Profiles</a>
27 [% IF ( profile_id ) %]
29 <a href="#" aria-current="page">
30 Edit ([% profile_id | html %])
35 <a href="#" aria-current="page">
43 <div class="main container-fluid">
45 <div class="col-sm-10 col-sm-push-2">
48 [% INCLUDE 'labels-toolbar.inc' %]
49 <h3>Edit printer profile</h3>
50 <form name="input" action="/cgi-bin/koha/labels/label-edit-profile.pl" method="get">
51 <fieldset class="rows"><legend>Profile settings</legend>
54 [% IF ( profile_id ) %]
55 <span class="label">Printer name:</span>[% printer_name | html %]
56 <input type="hidden" name="printer_name" value="[% printer_name | html %]" />
58 <label for="printer_name">Printer name:</label><input type="text" size="20" name="printer_name" id="printer_name" />
62 [% IF ( profile_id ) %]
63 <span class="label">Paper bin:</span> [% paper_bin | html %]
64 <input type="hidden" name="paper_bin" value="[% paper_bin | html %]" />
66 <label for="paper_bin">Paper bin:</label><input type="text" size="20" name="paper_bin" id="paper_bin" />
70 [% IF ( label_template ) %]
71 <label for="template_name">Template name:</label> [% label_template | html %]
73 <span class="label">Template name:</span> Profile unassigned
77 <label for="units">Units: </label>
78 <select id="units" name="units">
79 [% FOREACH unit IN units %]
80 [% IF ( unit.selected ) %]
81 <option value="[% unit.type | html %]" selected="selected">
83 <option value="[% unit.type | html %]">
85 [% SWITCH unit.type %]
104 <fieldset class="rows"><legend>Offset:</legend>
107 <label for="offset_horz">Horizontal: </label><input type="text" size="4" name="offset_horz" id="offset_horz" value="[% offset_horz | html %]" />
110 <label for="offset_vert">Vertical: </label><input type="text" size="4" name="offset_vert" id="offset_vert" value="[% offset_vert | html %]" />
115 <fieldset class="rows"><legend>Creep:</legend>
118 <label for="creep_horz">Horizontal: </label><input type="text" size="4" name="creep_horz" id="creep_horz" value="[% creep_horz | html %]" />
121 <label for="creep_vert">Vertical: </label><input type="text" size="4" name="creep_vert" id="creep_vert" value="[% creep_vert | html %]" />
125 <fieldset class="action">
126 <input type="submit" value="Save" />
127 <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile" class="cancel">Cancel</a>
128 <input type="hidden" name="op" value="save" />
129 <input type="hidden" name="profile_id" value="[% profile_id | html %]" />
134 </div> <!-- /.col-sm-10.col-sm-push-2 -->
136 <div class="col-sm-2 col-sm-pull-10">
138 [% INCLUDE 'tools-menu.inc' %]
140 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
141 </div> <!-- /.row -->
143 [% MACRO jsinclude BLOCK %]
144 [% Asset.js("js/tools-menu.js") | $raw %]
146 $(document).ready(function(){
147 var selectedUnit = $("#units option:selected").attr("value");
148 var unitfields = $("#offset_horz,#offset_vert,#creep_horz,#creep_vert");
149 $(unitfields).after("<span class=\"unit\">"+getUnit(selectedUnit)+"</span>");
150 $("#units").change(function(){
151 $(".unit").html(getUnit($(this).val()));
154 function getUnit(unit){
179 [% INCLUDE 'intranet-bottom.inc' %]