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' %]
11 <div id="breadcrumbs">
12 <a href="/cgi-bin/koha/mainpage.pl">Home</a> ›
13 <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> ›
14 <a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a> ›
15 <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile">Profiles</a> ›
16 [% IF ( profile_id ) %]Edit ([% profile_id | html %])[% ELSE %]New[% END%]
19 <div class="main container-fluid">
21 <div class="col-sm-10 col-sm-push-2">
24 [% INCLUDE 'labels-toolbar.inc' %]
25 <h3>Edit printer profile</h3>
26 <form name="input" action="/cgi-bin/koha/labels/label-edit-profile.pl" method="get">
27 <fieldset class="rows"><legend>Profile settings</legend>
30 [% IF ( profile_id ) %]
31 <span class="label">Printer name:</span>[% printer_name | html %]
32 <input type="hidden" name="printer_name" value="[% printer_name | html %]" />
34 <label for="printer_name">Printer name:</label><input type="text" size="20" name="printer_name" id="printer_name" />
38 [% IF ( profile_id ) %]
39 <span class="label">Paper bin:</span> [% paper_bin | html %]
40 <input type="hidden" name="paper_bin" value="[% paper_bin | html %]" />
42 <label for="paper_bin">Paper bin:</label><input type="text" size="20" name="paper_bin" id="paper_bin" />
46 [% IF ( label_template ) %]
47 <label for="template_name">Template name:</label> [% label_template | html %]
49 <span class="label">Template name:</span> Profile unassigned
53 <label for="units">Units: </label>
54 <select id="units" name="units">
55 [% FOREACH unit IN units %]
56 [% IF ( unit.selected ) %]
57 <option value="[% unit.type | html %]" selected="selected">
59 <option value="[% unit.type | html %]">
61 [% SWITCH unit.type %]
80 <fieldset class="rows"><legend>Offset:</legend>
83 <label for="offset_horz">Horizontal: </label><input type="text" size="4" name="offset_horz" id="offset_horz" value="[% offset_horz | html %]" />
86 <label for="offset_vert">Vertical: </label><input type="text" size="4" name="offset_vert" id="offset_vert" value="[% offset_vert | html %]" />
91 <fieldset class="rows"><legend>Creep:</legend>
94 <label for="creep_horz">Horizontal: </label><input type="text" size="4" name="creep_horz" id="creep_horz" value="[% creep_horz | html %]" />
97 <label for="creep_vert">Vertical: </label><input type="text" size="4" name="creep_vert" id="creep_vert" value="[% creep_vert | html %]" />
101 <fieldset class="action">
102 <input type="submit" value="Save" />
103 <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile" class="cancel">Cancel</a>
104 <input type="hidden" name="op" value="save" />
105 <input type="hidden" name="profile_id" value="[% profile_id | html %]" />
110 </div> <!-- /.col-sm-10.col-sm-push-2 -->
112 <div class="col-sm-2 col-sm-pull-10">
114 [% INCLUDE 'tools-menu.inc' %]
116 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
117 </div> <!-- /.row -->
119 [% MACRO jsinclude BLOCK %]
120 [% Asset.js("js/tools-menu.js") | $raw %]
122 $(document).ready(function(){
123 var selectedUnit = $("#units option:selected").attr("value");
124 var unitfields = $("#offset_horz,#offset_vert,#creep_horz,#creep_vert");
125 $(unitfields).after("<span class=\"unit\">"+getUnit(selectedUnit)+"</span>");
126 $("#units").change(function(){
127 $(".unit").html(getUnit($(this).val()));
130 function getUnit(unit){
155 [% INCLUDE 'intranet-bottom.inc' %]