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 › Tools › Koha</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>
28 <a href="#" aria-current="page">
29 [% IF ( profile_id ) %]
30 Edit printer profile [% profile_id | html %]
39 <div class="main container-fluid">
41 <div class="col-sm-10 col-sm-push-2">
44 [% INCLUDE 'labels-toolbar.inc' %]
46 [% IF ( profile_id ) %]
47 <h1>Edit printer profile [% profile_id | html %]</h1>
49 <h1>New printer profile</h1>
52 <form name="input" action="/cgi-bin/koha/labels/label-edit-profile.pl" method="get">
53 <fieldset class="rows"><legend>Profile settings</legend>
56 [% IF ( profile_id ) %]
57 <span class="label">Printer name:</span>[% printer_name | html %]
58 <input type="hidden" name="printer_name" value="[% printer_name | html %]" />
60 <label for="printer_name">Printer name:</label><input type="text" size="20" name="printer_name" id="printer_name" />
64 [% IF ( profile_id ) %]
65 <span class="label">Paper bin:</span> [% paper_bin | html %]
66 <input type="hidden" name="paper_bin" value="[% paper_bin | html %]" />
68 <label for="paper_bin">Paper bin:</label><input type="text" size="20" name="paper_bin" id="paper_bin" />
72 [% IF ( label_template ) %]
73 <label for="template_name">Template name:</label> [% label_template | html %]
75 <span class="label">Template name:</span> Profile unassigned
79 <label for="units">Units: </label>
80 <select id="units" name="units">
81 [% FOREACH unit IN units %]
82 [% IF ( unit.selected ) %]
83 <option value="[% unit.type | html %]" selected="selected">
85 <option value="[% unit.type | html %]">
87 [% SWITCH unit.type %]
106 <fieldset class="rows"><legend>Offset:</legend>
109 <label for="offset_horz">Horizontal: </label><input type="text" size="4" name="offset_horz" id="offset_horz" value="[% offset_horz | html %]" />
112 <label for="offset_vert">Vertical: </label><input type="text" size="4" name="offset_vert" id="offset_vert" value="[% offset_vert | html %]" />
117 <fieldset class="rows"><legend>Creep:</legend>
120 <label for="creep_horz">Horizontal: </label><input type="text" size="4" name="creep_horz" id="creep_horz" value="[% creep_horz | html %]" />
123 <label for="creep_vert">Vertical: </label><input type="text" size="4" name="creep_vert" id="creep_vert" value="[% creep_vert | html %]" />
127 <fieldset class="action">
128 <input type="submit" value="Save" />
129 <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile" class="cancel">Cancel</a>
130 <input type="hidden" name="op" value="save" />
131 <input type="hidden" name="profile_id" value="[% profile_id | html %]" />
136 </div> <!-- /.col-sm-10.col-sm-push-2 -->
138 <div class="col-sm-2 col-sm-pull-10">
140 [% INCLUDE 'tools-menu.inc' %]
142 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
143 </div> <!-- /.row -->
145 [% MACRO jsinclude BLOCK %]
146 [% Asset.js("js/tools-menu.js") | $raw %]
148 $(document).ready(function(){
149 var selectedUnit = $("#units option:selected").attr("value");
150 var unitfields = $("#offset_horz,#offset_vert,#creep_horz,#creep_vert");
151 $(unitfields).after("<span class=\"unit\">"+getUnit(selectedUnit)+"</span>");
152 $("#units").change(function(){
153 $(".unit").html(getUnit($(this).val()));
156 function getUnit(unit){
181 [% INCLUDE 'intranet-bottom.inc' %]