Lines 131-138
Link Here
|
131 |
<div id="course_instructors"> |
131 |
<div id="course_instructors"> |
132 |
<div id="instructors"> |
132 |
<div id="instructors"> |
133 |
[% FOREACH i IN instructors %] |
133 |
[% FOREACH i IN instructors %] |
134 |
<div class="instructor_line" id="borrower_[% i.borrowernumber | html %]" |
134 |
<div class="instructor_line" id="borrower_[% i.borrowernumber | html %]"> |
135 |
>[% i.surname | html %], [% i.firstname | html %] ( <a href="#" class="removeInstructor"><i class="fa fa-trash-can"></i> Remove </a> ) |
135 |
[% INCLUDE 'patron-title.inc' patron=i no_cardnumber=1 %] (<a href="#" class="removeInstructor"><i class="fa fa-trash-can"></i> Remove </a>) |
136 |
<input type="hidden" name="instructors" value="[% i.borrowernumber | html %]" /> |
136 |
<input type="hidden" name="instructors" value="[% i.borrowernumber | html %]" /> |
137 |
</div> |
137 |
</div> |
138 |
[% END %] |
138 |
[% END %] |
Lines 195-205
Link Here
|
195 |
|
195 |
|
196 |
[% IF ( departments ) %] |
196 |
[% IF ( departments ) %] |
197 |
[% MACRO jsinclude BLOCK %] |
197 |
[% MACRO jsinclude BLOCK %] |
|
|
198 |
[% INCLUDE 'js-patron-format.inc' %] |
198 |
<script> |
199 |
<script> |
199 |
$(document).ready(function () { |
200 |
$(document).ready(function () { |
200 |
patron_autocomplete($("#find_instructor"), { |
201 |
patron_autocomplete($("#find_instructor"), { |
201 |
"on-select-callback": function (event, ui) { |
202 |
"on-select-callback": function (event, ui) { |
202 |
AddInstructor(ui.item.surname + ", " + ui.item.firstname, ui.item.patron_id); |
203 |
AddInstructor($patron_to_html(ui.item, { display_cardnumber: false }), ui.item.patron_id); |
203 |
return false; |
204 |
return false; |
204 |
}, |
205 |
}, |
205 |
}); |
206 |
}); |
206 |
- |
|
|