2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>[% IF ( profile_id ) %]Edit ([% profile_id | html %])[% ELSE %]New[% END%] › Profiles › Patron card creator › Tools › Koha</title>
4 [% INCLUDE 'doc-head-close.inc' %]
7 <body id="pcard_edit-profile" class="tools pcard">
8 [% WRAPPER 'header.inc' %]
9 [% INCLUDE 'cat-search.inc' %]
12 [% WRAPPER 'sub-header.inc' %]
13 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
16 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
19 <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
22 <a href="/cgi-bin/koha/patroncards/home.pl">Patron card creator</a>
25 <a href="/cgi-bin/koha/patroncards/manage.pl?card_element=profile">Profiles</a>
28 <a href="#" aria-current="page">
29 [% IF ( profile_id ) %]
30 Edit ([% profile_id | html %])
40 <div class="main container-fluid">
42 <div class="col-sm-10 col-sm-push-2">
45 [% INCLUDE 'patroncards-toolbar.inc' %]
47 <h1>[% IF (profile_id) %]Edit[% ELSE %]Create[% END%] printer profile[% IF (profile_id) %] ([% profile_id | html %])[% END %]</h1>
48 <form name="input" action="/cgi-bin/koha/patroncards/edit-profile.pl" method="get">
49 <fieldset class="rows"><legend>Profile settings</legend>
52 [% IF ( profile_id ) %]
53 <span class="label">Printer name:</span>[% printer_name | html %]
54 <input type="hidden" name="printer_name" value="[% printer_name | html %]" />
56 <label for="printer_name">Printer name:</label><input type="text" size="20" name="printer_name" id="printer_name" />
60 [% IF ( profile_id ) %]
61 <span class="label">Paper bin:</span> [% paper_bin | html %]
62 <input type="hidden" name="paper_bin" value="[% paper_bin | html %]" />
64 <label for="paper_bin">Paper bin:</label><input type="text" size="20" name="paper_bin" id="paper_bin" />
68 [% IF ( label_template ) %]
69 <label for="template_name">Template name:</label> [% label_template | html %]
71 <span class="label">Template name:</span> Profile unassigned
75 <label for="units">Units: </label>
76 <select id="units" name="units">
77 [% FOREACH unit IN units %]
78 [% IF ( unit.selected ) %]
79 <option value="[% unit.type | html %]" selected="selected">
81 <option value="[% unit.type | html %]">
83 [% unit.desc | html %]
91 <fieldset class="rows"><legend>Offset:</legend>
94 <label for="offset_horz">Horizontal: </label><input type="text" size="4" name="offset_horz" id="offset_horz" value="[% offset_horz | html %]" />
97 <label for="offset_vert">Vertical: </label><input type="text" size="4" name="offset_vert" id="offset_vert" value="[% offset_vert | html %]" />
102 <fieldset class="rows"><legend>Creep:</legend>
105 <label for="creep_horz">Horizontal: </label><input type="text" size="4" name="creep_horz" id="creep_horz" value="[% creep_horz | html %]" />
108 <label for="creep_vert">Vertical: </label><input type="text" size="4" name="creep_vert" id="creep_vert" value="[% creep_vert | html %]" />
112 <fieldset class="action">
113 <input type="submit" class="btn btn-primary" value="Save" />
114 <a href="/cgi-bin/koha/patroncards/manage.pl?card_element=profile" class="cancel">Cancel</a>
115 <input type="hidden" name="op" value="save" />
116 <input type="hidden" name="profile_id" value="[% profile_id | html %]" />
121 </div> <!-- /.col-sm-10.col-sm-push-2 -->
123 <div class="col-sm-2 col-sm-pull-10">
125 [% INCLUDE 'tools-menu.inc' %]
127 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
128 </div> <!-- /.row -->
130 [% MACRO jsinclude BLOCK %]
132 $(document).ready(function(){
133 var selectedUnit = $("#units option:selected").val();
134 var unitfields = $("#offset_horz,#offset_vert,#creep_horz,#creep_vert");
135 $(unitfields).after("<span class=\"unit\">"+getUnit(selectedUnit)+"</span>");
136 $("#units").change(function(){
137 $(".unit").html(getUnit($(this).val()));
139 function getUnit(unit){
165 [% INCLUDE 'intranet-bottom.inc' %]