|
Lines 2-7
Link Here
|
| 2 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
[% INCLUDE 'doc-head-open.inc' %] |
| 3 |
<title>Koha › Course reserves › [% IF course_name %] Edit [% course_name | html %] [% ELSE %] New course [% END %]</title> |
3 |
<title>Koha › Course reserves › [% IF course_name %] Edit [% course_name | html %] [% ELSE %] New course [% END %]</title> |
| 4 |
[% INCLUDE 'doc-head-close.inc' %] |
4 |
[% INCLUDE 'doc-head-close.inc' %] |
|
|
5 |
<style> |
| 6 |
#course_instructors { |
| 7 |
float: left; |
| 8 |
} |
| 9 |
.instructor_line { |
| 10 |
padding: .3em; |
| 11 |
} |
| 12 |
</style> |
| 5 |
</head> |
13 |
</head> |
| 6 |
|
14 |
|
| 7 |
<body id="courses_course" class="course"> |
15 |
<body id="courses_course" class="course"> |
|
Lines 78-93
Link Here
|
| 78 |
<li> |
86 |
<li> |
| 79 |
<span class="label">Instructors:</span> |
87 |
<span class="label">Instructors:</span> |
| 80 |
|
88 |
|
| 81 |
<fieldset id="course_instructors"> |
89 |
<div id="course_instructors"> |
| 82 |
<div id="instructors">[% FOREACH i IN instructors %]<div id="borrower_[% i.borrowernumber | html %]">[% i.surname | html %], [% i.firstname | html %] ( <a href="#" class="removeInstructor"> Remove </a> ) |
90 |
<div id="instructors"> |
| 83 |
<input type='hidden' name='instructors' value='[% i.borrowernumber | html %]' /></div>[% END %]</div> |
91 |
[% FOREACH i IN instructors %] |
| 84 |
</fieldset> |
92 |
<div class="instructor_line" id="borrower_[% i.borrowernumber | html %]">[% i.surname | html %], [% i.firstname | html %] ( <a href="#" class="removeInstructor"><i class="fa fa-trash"></i> Remove </a> ) |
| 85 |
|
93 |
<input type='hidden' name='instructors' value='[% i.borrowernumber | html %]' /> |
| 86 |
<fieldset> |
94 |
</div> |
| 87 |
<label for="find_instructor">Instructor search:</label> |
95 |
[% END %] |
| 88 |
<input autocomplete="off" id="find_instructor" type="text" style="width:150px" class="noEnterSubmit"/> |
96 |
</div> |
|
|
97 |
<p> |
| 98 |
<label for="find_instructor">Instructor search:</label> |
| 99 |
<input autocomplete="off" id="find_instructor" type="text" style="width:150px" class="noEnterSubmit"/> |
| 100 |
</p> |
| 89 |
<div id="find_instructor_container"></div> |
101 |
<div id="find_instructor_container"></div> |
| 90 |
</fieldset> |
102 |
</div> |
| 91 |
<li> |
103 |
<li> |
| 92 |
<label for="staff_note">Staff note:</label> |
104 |
<label for="staff_note">Staff note:</label> |
| 93 |
<textarea name="staff_note" id="staff_note">[% staff_note | html %]</textarea> |
105 |
<textarea name="staff_note" id="staff_note">[% staff_note | html %]</textarea> |
|
Lines 174-180
Link Here
|
| 174 |
}); |
186 |
}); |
| 175 |
|
187 |
|
| 176 |
function AddInstructor( name, borrowernumber ) { |
188 |
function AddInstructor( name, borrowernumber ) { |
| 177 |
div = "<div id='borrower_" + borrowernumber + "'>" + name + " ( <a href='#' class='removeInstructor'> " + _("Remove")+ " </a> ) <input type='hidden' name='instructors' value='" + borrowernumber + "' /></div>"; |
189 |
div = "<div class='instructor_line' id='borrower_" + borrowernumber + "'>" + name + " ( <a href='#' class='removeInstructor'><i class='fa fa-trash'></i> " + _("Remove")+ " </a> ) <input type='hidden' name='instructors' value='" + borrowernumber + "' /></div>"; |
| 178 |
$('#instructors').append( div ); |
190 |
$('#instructors').append( div ); |
| 179 |
|
191 |
|
| 180 |
$('#find_instructor').val('').focus(); |
192 |
$('#find_instructor').val('').focus(); |
| 181 |
- |
|
|