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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-clubs-tab.tt (-6 / +12 lines)
Lines 3-15 Link Here
3
[% IF enrollments %]
3
[% IF enrollments %]
4
    <h4>Clubs currently enrolled in</h4>
4
    <h4>Clubs currently enrolled in</h4>
5
5
6
    <table>
6
    <table id="table_clubenrollments">
7
        <thead>
7
        <thead>
8
            <tr>
8
            <tr>
9
                <th>Name</th>
9
                <th>Name</th>
10
                <th>Description</th>
10
                <th>Description</th>
11
                <th>Date enrolled</th>
11
                <th>Date enrolled</th>
12
                [% IF CAN_user_clubs_enroll %]<th>&nbsp;</th>[% END %]
12
                [% IF CAN_user_clubs_enroll %]<th class="NoSort">Actions</th>[% END %]
13
            </tr>
13
            </tr>
14
        </thead>
14
        </thead>
15
15
Lines 36-47 Link Here
36
36
37
    <h4>Clubs not enrolled in</h4>
37
    <h4>Clubs not enrolled in</h4>
38
38
39
    <table>
39
    <table id="table_clubnoenrollmemnts">
40
        <thead>
40
        <thead>
41
            <tr>
41
            <tr>
42
                <th>Name</th>
42
                <th>Name</th>
43
                <th>Description</th>
43
                <th>Description</th>
44
                [% IF CAN_user_clubs_enroll %]<th>&nbsp;</th>[% END %]
44
                [% IF CAN_user_clubs_enroll %]<th class="NoSort">Actions</th>[% END %]
45
            </tr>
45
            </tr>
46
        </thead>
46
        </thead>
47
47
Lines 63-70 Link Here
63
    </table>
63
    </table>
64
[% END %]
64
[% END %]
65
65
66
[% IF CAN_user_clubs_enroll %]
67
<script>
66
<script>
67
$("#table_clubnoenrollmemnts, #table_clubenrollments").dataTable($.extend(true, {}, dataTablesDefaults, {
68
    "columnDefs": [
69
        { 'sortable': false, 'targets': [ 'NoSort' ] }
70
    ],
71
    paginate: true
72
}));
73
74
[% IF CAN_user_clubs_enroll %]
68
function loadEnrollmentForm( id ) {
75
function loadEnrollmentForm( id ) {
69
    $("body").css("cursor", "progress");
76
    $("body").css("cursor", "progress");
70
    $('#clubs-tab').load('/cgi-bin/koha/clubs/patron-enroll.pl?borrowernumber=[% borrowernumber | html %]&id=' + id, function() {
77
    $('#clubs-tab').load('/cgi-bin/koha/clubs/patron-enroll.pl?borrowernumber=[% borrowernumber | html %]&id=' + id, function() {
71
- 

Return to bug 28034