View | Details | Raw Unified | Return to bug 21838
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt (-1 / +18 lines)
Lines 10-15 Link Here
10
[% INCLUDE 'doc-head-close.inc' %]
10
[% INCLUDE 'doc-head-close.inc' %]
11
11
12
[% Asset.css("css/datatables.css") | $raw %]
12
[% Asset.css("css/datatables.css") | $raw %]
13
<style>
14
    #instructors {
15
        float: left;
16
    }
17
    .instructor_line {
18
        padding: 0 .1em;
19
    }
20
</style>
13
</head>
21
</head>
14
22
15
<body id="courses_course_details" class="course">
23
<body id="courses_course_details" class="course">
Lines 45-51 Link Here
45
                <li><span class="label">Department</span> [% AuthorisedValues.GetByCode( 'DEPARTMENT', course.department ) | html %]</li>
53
                <li><span class="label">Department</span> [% AuthorisedValues.GetByCode( 'DEPARTMENT', course.department ) | html %]</li>
46
                <li><span class="label">Course number</span> [% course.course_number | html %]</li>
54
                <li><span class="label">Course number</span> [% course.course_number | html %]</li>
47
                <li><span class="label">Section</span> [% course.section | html %]</li>
55
                <li><span class="label">Section</span> [% course.section | html %]</li>
48
                <li><span class="label">Instructors</span> [% FOREACH i IN course.instructors %]<div class="instructor"><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% i.borrowernumber | uri %]">[% i.firstname | html %] [% i.surname | html %]</a></div>[% END %]</li>
56
                <li>
57
                    <span class="label">Instructors</span>
58
                    <div id="instructors">
59
                        [% FOREACH i IN course.instructors %]
60
                            <div class="instructor_line">
61
                                <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% i.borrowernumber | uri %]">[% i.firstname | html %] [% i.surname | html %]</a>
62
                            </div>
63
                        [% END %]
64
                    </div>
65
                </li>
49
                <li><span class="label">Staff note</span> [% course.staff_note | html %]</li>
66
                <li><span class="label">Staff note</span> [% course.staff_note | html %]</li>
50
                <li><span class="label">Public note</span> [% course.public_note | html %]</li>
67
                <li><span class="label">Public note</span> [% course.public_note | html %]</li>
51
                <li><span class="label">Student count</span> [% course.students_count | html %]</li>
68
                <li><span class="label">Student count</span> [% course.students_count | html %]</li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course.tt (-11 / +22 lines)
Lines 2-7 Link Here
2
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
<title>Koha &rsaquo; Course reserves &rsaquo; [% IF course_name %] Edit [% course_name | html %] [% ELSE %] New course [% END %]</title>
3
<title>Koha &rsaquo; Course reserves &rsaquo; [% 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
- 

Return to bug 21838