3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>[% IF ( profile_id ) %]Edit ([% profile_id | html %])[% ELSE %]New[% END%] › Profiles › Patron card creator › Tools › Koha</title>
5 [% INCLUDE 'doc-head-close.inc' %]
8 <body id="pcard_edit-profile" class="tools pcard">
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/tools/tools-home.pl">Tools</a>
18 [% WRAPPER breadcrumb_item %]
19 <a href="/cgi-bin/koha/patroncards/home.pl">Patron card creator</a>
21 [% WRAPPER breadcrumb_item %]
22 <a href="/cgi-bin/koha/patroncards/manage.pl?card_element=profile">Profiles</a>
24 [% WRAPPER breadcrumb_item bc_active= 1 %]
25 [% IF ( profile_id ) %]
26 <span>Edit ([% profile_id | html %])</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 'patroncards-toolbar.inc' %]
43 <span>Edit printer profile</span>
45 <span>Create printer profile</span>
47 [% IF (profile_id) %] ([% profile_id | html %])[% END %]
49 <form name="input" action="/cgi-bin/koha/patroncards/edit-profile.pl" method="get">
50 <fieldset class="rows"><legend>Profile settings</legend>
53 [% IF ( profile_id ) %]
54 <span class="label">Printer name:</span>[% printer_name | html %]
55 <input type="hidden" name="printer_name" value="[% printer_name | html %]" />
57 <label for="printer_name">Printer name:</label><input type="text" size="20" name="printer_name" id="printer_name" />
61 [% IF ( profile_id ) %]
62 <span class="label">Paper bin:</span> [% paper_bin | html %]
63 <input type="hidden" name="paper_bin" value="[% paper_bin | html %]" />
65 <label for="paper_bin">Paper bin:</label><input type="text" size="20" name="paper_bin" id="paper_bin" />
69 [% IF ( label_template ) %]
70 <label for="template_name">Template name:</label> [% label_template | html %]
72 <span class="label">Template name:</span> Profile unassigned
76 <label for="units">Units: </label>
77 <select id="units" name="units">
78 [% FOREACH unit IN units %]
79 [% IF ( unit.selected ) %]
80 <option value="[% unit.type | html %]" selected="selected">
82 <option value="[% unit.type | html %]">
84 [% unit.desc | html %]
92 <fieldset class="rows"><legend>Offset:</legend>
95 <label for="offset_horz">Horizontal: </label><input type="text" size="4" name="offset_horz" id="offset_horz" value="[% offset_horz | html %]" />
98 <label for="offset_vert">Vertical: </label><input type="text" size="4" name="offset_vert" id="offset_vert" value="[% offset_vert | html %]" />
103 <fieldset class="rows"><legend>Creep:</legend>
106 <label for="creep_horz">Horizontal: </label><input type="text" size="4" name="creep_horz" id="creep_horz" value="[% creep_horz | html %]" />
109 <label for="creep_vert">Vertical: </label><input type="text" size="4" name="creep_vert" id="creep_vert" value="[% creep_vert | html %]" />
113 <fieldset class="action">
114 <input type="submit" class="btn btn-primary" value="Save" />
115 <a href="/cgi-bin/koha/patroncards/manage.pl?card_element=profile" class="cancel">Cancel</a>
116 <input type="hidden" name="op" value="save" />
117 <input type="hidden" name="profile_id" value="[% profile_id | html %]" />
122 </div> <!-- /.col-sm-10.col-sm-push-2 -->
124 <div class="col-sm-2 col-sm-pull-10">
126 [% INCLUDE 'tools-menu.inc' %]
128 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
129 </div> <!-- /.row -->
131 [% MACRO jsinclude BLOCK %]
133 $(document).ready(function(){
134 var selectedUnit = $("#units option:selected").val();
135 var unitfields = $("#offset_horz,#offset_vert,#creep_horz,#creep_vert");
136 $(unitfields).after("<span class=\"unit\">"+getUnit(selectedUnit)+"</span>");
137 $("#units").change(function(){
138 $(".unit").html(getUnit($(this).val()));
140 function getUnit(unit){
166 [% INCLUDE 'intranet-bottom.inc' %]