1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Tools › Label creator › Profiles › [% IF ( profile_id ) %]Edit ([% profile_id %])[% ELSE %]Create[% END%]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/javascript">
6 $(document).ready(function(){
7 var selectedUnit = $("#units option:selected").attr("value");
8 var unitfields = $("#offset_horz,#offset_vert,#creep_horz,#creep_vert");
9 $(unitfields).after("<span class=\"unit\">"+getUnit(selectedUnit)+"</span>");
10 $("#units").change(function(){
11 $(".unit").html(getUnit($(this).val()));
13 function getUnit(unit){
39 <body id="labels_label-edit-profile" class="tools labels">
40 [% INCLUDE 'header.inc' %]
41 [% INCLUDE 'cat-search.inc' %]
42 <div id="breadcrumbs">
43 <a href="/cgi-bin/koha/mainpage.pl">Home</a> ›
44 <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> ›
45 <a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a> ›
46 <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile">Profiles</a> ›
47 [% IF ( profile_id ) %]Edit ([% profile_id %])[% ELSE %]Create[% END%]
49 <div id="doc3" class="yui-t2">
54 [% INCLUDE 'labels-toolbar.inc' %]
56 <div class="yui-u first">
57 <h3>Edit printer profile</h3>
58 <div class="yui-g first">
59 <form name="input" action="/cgi-bin/koha/labels/label-edit-profile.pl" method="get">
60 <fieldset class="rows"><legend>Profile settings</legend>
63 [% IF ( profile_id ) %]
64 <span class="label">Printer name:</span>[% printer_name %]
65 <input type="hidden" name="printer_name" value="[% printer_name %]" />
67 <label for="printer_name">Printer name:</label><input type="text" size="20" name="printer_name" id="printer_name" />
71 [% IF ( profile_id ) %]
72 <span class="label">Paper bin:</span> [% paper_bin %]
73 <input type="hidden" name="paper_bin" value="[% paper_bin %]" />
75 <label for="paper_bin">Paper bin:</label><input type="text" size="20" name="paper_bin" id="paper_bin" />
79 [% IF ( label_template ) %]
80 <label for="template_name">Template name:</label> [% label_template %]
82 <span class="label">Template name:</span> Profile unassigned
86 <label for="units">Units: </label>
87 <select id="units" name="units">
88 [% FOREACH unit IN units %]
89 [% IF ( unit.selected ) %]
90 <option value="[% unit.type %]" selected="selected">
92 <option value="[% unit.type %]">
94 [% SWITCH unit.type %]
113 <fieldset class="rows"><legend>Offset:</legend>
116 <label for="offset_horz">Horizontal: </label><input type="text" size="4" name="offset_horz" id="offset_horz" value="[% offset_horz %]" />
119 <label for="offset_vert">Vertical: </label><input type="text" size="4" name="offset_vert" id="offset_vert" value="[% offset_vert %]" />
124 <fieldset class="rows"><legend>Creep:</legend>
127 <label for="creep_horz">Horizontal: </label><input type="text" size="4" name="creep_horz" id="creep_horz" value="[% creep_horz %]" />
130 <label for="creep_vert">Vertical: </label><input type="text" size="4" name="creep_vert" id="creep_vert" value="[% creep_vert %]" />
134 <fieldset class="action">
135 <input type="submit" value="Save" />
136 <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile" class="cancel">Cancel</a>
137 <input type="hidden" name="op" value="save" />
138 <input type="hidden" name="profile_id" value="[% profile_id %]" />
146 [% INCLUDE 'intranet-bottom.inc' %]