Lines 58-64
Link Here
|
58 |
<td>[% c.name | html %]</td> |
58 |
<td>[% c.name | html %]</td> |
59 |
<td>[% c.description | html %]</td> |
59 |
<td>[% c.description | html %]</td> |
60 |
<td> |
60 |
<td> |
61 |
[% IF !c.club_template.is_email_required || ( c.club_template.is_email_required && borrower.notice_email_address ) %] |
61 |
[% IF !c.club_template.is_email_required || ( c.club_template.is_email_required && patron.notice_email_address ) %] |
62 |
<button class="btn btn-sm btn-primary load_enrollment" data-id="[% c.id | html%]"> |
62 |
<button class="btn btn-sm btn-primary load_enrollment" data-id="[% c.id | html%]"> |
63 |
<i class="fa fa-plus" aria-hidden="true"></i> Enroll |
63 |
<i class="fa fa-plus" aria-hidden="true"></i> Enroll |
64 |
</button> |
64 |
</button> |
Lines 76-82
Link Here
|
76 |
<script> |
76 |
<script> |
77 |
function loadEnrollmentForm( id ) { |
77 |
function loadEnrollmentForm( id ) { |
78 |
$("body").css("cursor", "progress"); |
78 |
$("body").css("cursor", "progress"); |
79 |
$('#opac-user-clubs_panel').load('/cgi-bin/koha/clubs/enroll.pl?borrowernumber=[% borrower.borrowernumber | html %]&id=' + id, function() { |
79 |
$('#opac-user-clubs_panel').load('/cgi-bin/koha/clubs/enroll.pl?borrowernumber=[% patron.borrowernumber | html %]&id=' + id, function() { |
80 |
$("body").css("cursor", "default"); |
80 |
$("body").css("cursor", "default"); |
81 |
}); |
81 |
}); |
82 |
|
82 |
|
Lines 91-97
function cancelEnrollment( id ) {
Link Here
|
91 |
data: { id: id }, |
91 |
data: { id: id }, |
92 |
success: function( data ) { |
92 |
success: function( data ) { |
93 |
if ( data.success ) { |
93 |
if ( data.success ) { |
94 |
$('#opac-user-clubs_panel').load('/cgi-bin/koha/clubs/clubs-tab.pl?borrowernumber=[% borrower.borrowernumber | html %]', function() { |
94 |
$('#opac-user-clubs_panel').load('/cgi-bin/koha/clubs/clubs-tab.pl?borrowernumber=[% patron.borrowernumber | html %]', function() { |
95 |
$("body").css("cursor", "default"); |
95 |
$("body").css("cursor", "default"); |
96 |
}); |
96 |
}); |
97 |
} else { |
97 |
} else { |