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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt (-13 / +11 lines)
Lines 36-42 Link Here
36
                data: { id: id },
36
                data: { id: id },
37
                success: function( data ) {
37
                success: function( data ) {
38
                    if ( data.success ) {
38
                    if ( data.success ) {
39
                        tTable.fnDeleteRow(a.closest("tr")[0]);
39
                        location.reload();
40
                    } else {
40
                    } else {
41
                        alert(_("Unable to delete template!"));
41
                        alert(_("Unable to delete template!"));
42
                    }
42
                    }
Lines 54-60 Link Here
54
                data: { id: id },
54
                data: { id: id },
55
                success: function( data ) {
55
                success: function( data ) {
56
                    if ( data.success ) {
56
                    if ( data.success ) {
57
                        cTable.fnDeleteRow(a.closest("tr")[0]);
57
                        location.reload();
58
                    } else {
58
                    } else {
59
                        alert(_("Unable to delete club!"));
59
                        alert(_("Unable to delete club!"));
60
                    }
60
                    }
Lines 232-253 Link Here
232
                                                Actions <b class="caret"></b>
232
                                                Actions <b class="caret"></b>
233
                                            </a>
233
                                            </a>
234
                                            <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="clubactions[% c.id %]">
234
                                            <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="clubactions[% c.id %]">
235
                                                <li>
235
                                                [% IF ( c.club_enrollments.count ) %]
236
                                                    [% IF ( c.club_enrollments.count ) %]
236
                                                    <li>
237
                                                        <a class="btn btn-xs btn-default" href="club-enrollments.pl?id=[% c.id %]">
237
                                                        <a href="club-enrollments.pl?id=[% c.id %]">
238
                                                    [% ELSE %]
238
                                                            <i class="fa fa-list-ul"></i> Enrollments
239
                                                        <a class="btn btn-xs btn-default disabled" href="club-enrollments.pl?id=[% c.id %]">
239
                                                        </a>
240
                                                    [% END %]
240
                                                    </li>
241
                                                    <i class="fa fa-list-ul"></i> Enrollments
241
                                                [% END %]
242
                                                </li>
243
                                                [% IF CAN_user_clubs_edit_clubs %]
242
                                                [% IF CAN_user_clubs_edit_clubs %]
244
                                                    <li>
243
                                                    <li>
245
                                                        <a class="btn btn-xs btn-default" href="clubs-add-modify.pl?id=[% c.id %]">
244
                                                        <a href="clubs-add-modify.pl?id=[% c.id %]">
246
                                                            <i class="fa fa-pencil"></i> Edit
245
                                                            <i class="fa fa-pencil"></i> Edit
247
                                                        </a>
246
                                                        </a>
248
                                                    </li>
247
                                                    </li>
249
                                                    <li>
248
                                                    <li>
250
                                                        <a class="btn btn-xs btn-default" href="#" onclick='ConfirmDeleteClub([% c.id %], "[% c.name | html %]", $(this) ); return false;'>
249
                                                        <a href="#" onclick='ConfirmDeleteClub([% c.id %], "[% c.name | html %]", $(this) ); return false;'>
251
                                                            <i class="fa fa-trash"></i> Delete
250
                                                            <i class="fa fa-trash"></i> Delete
252
                                                        </a>
251
                                                        </a>
253
                                                    </li>
252
                                                    </li>
254
- 

Return to bug 18869