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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/club-enrollments.tt (-20 / +22 lines)
Lines 44-71 Link Here
44
                [% ELSE %]
44
                [% ELSE %]
45
                <h1>Club enrollments for <em>[% club.name | html %]</em></h1>
45
                <h1>Club enrollments for <em>[% club.name | html %]</em></h1>
46
46
47
                <table id="enrollments-table">
47
                <div class="page-section">
48
                    <thead>
48
                    <table id="enrollments-table">
49
                        <tr>
49
                        <thead>
50
                            <th>Name</th>
51
                            <th>Card number</th>
52
                        </tr>
53
                    </thead>
54
55
                    <tbody>
56
                        [% FOREACH e IN club.club_enrollments %]
57
                            [% SET p = e.patron %]
58
                            <tr>
50
                            <tr>
59
                                <td>
51
                                <th>Name</th>
60
                                    <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% p.id | uri %]">[% p.surname | html %], [% p.firstname | html %]</a>
52
                                <th>Card number</th>
61
                                </td>
62
                                <td>
63
                                    [% p.cardnumber | html %]
64
                                </td>
65
                            </tr>
53
                            </tr>
66
                        [% END %]
54
                        </thead>
67
                    </tbody>
55
68
                </table>
56
                        <tbody>
57
                            [% FOREACH e IN club.club_enrollments %]
58
                                [% SET p = e.patron %]
59
                                <tr>
60
                                    <td>
61
                                        <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% p.id | uri %]">[% p.surname | html %], [% p.firstname | html %]</a>
62
                                    </td>
63
                                    <td>
64
                                        [% p.cardnumber | html %]
65
                                    </td>
66
                                </tr>
67
                            [% END %]
68
                        </tbody>
69
                    </table>
70
                </div> <!-- /.page-section -->
69
                [% END %]
71
                [% END %]
70
72
71
            </main>
73
            </main>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt (-45 / +48 lines)
Lines 69-119 Link Here
69
                [% END %]
69
                [% END %]
70
70
71
                [% IF club_templates.count %]
71
                [% IF club_templates.count %]
72
                    <table id="club-templates-table">
72
                    <div class="page-section">
73
                        <thead>
73
                        <table id="club-templates-table">
74
                            <tr>
74
                            <thead>
75
                                <th>Name</th>
76
                                <th>Description</th>
77
                                <th>Public enrollment</th>
78
                                <th>Email required</th>
79
                                <th>Library</th>
80
                                <th class="noExport">Actions</th>
81
                            </tr>
82
                        </thead>
83
                        <tbody>
84
                            [% FOREACH t IN club_templates %]
85
                                <tr>
75
                                <tr>
86
                                    <td>[% t.name | html %]</td>
76
                                    <th>Name</th>
87
                                    <td>[% t.description | html %]</td>
77
                                    <th>Description</th>
88
                                    <td>
78
                                    <th>Public enrollment</th>
89
                                        [% IF t.is_enrollable_from_opac %]
79
                                    <th>Email required</th>
90
                                            <span>Yes</span>
80
                                    <th>Library</th>
91
                                        [% ELSE %]
81
                                    <th class="noExport">Actions</th>
92
                                            <span>No</span>
93
                                        [% END %]
94
                                    </td>
95
                                    <td>
96
                                        [% IF t.is_email_required %]
97
                                            <span>Yes</span>
98
                                        [% ELSE %]
99
                                            <span>No</span>
100
                                        [% END %]
101
                                    </td>
102
                                    <td>[% Branches.GetName( t.branchcode ) | html %]</td>
103
                                    <td class="actions">
104
                                        [% IF CAN_user_clubs_edit_templates %]
105
                                            <a class="btn btn-xs btn-default" style="white-space:nowrap"  href="/cgi-bin/koha/clubs/templates-add-modify.pl?id=[% t.id | html %]">
106
                                                <i class="fa fa-pencil"></i> Edit
107
                                            </a>
108
                                            <a class="btn btn-xs btn-default delete_template" href="#" data-id="[% t.id | html %]" data-name="[% t.name | html %]">
109
                                                <i class="fa fa-trash"></i> Delete
110
                                            </a>
111
                                        [% END %]
112
                                    </td>
113
                                </tr>
82
                                </tr>
114
                            [% END %]
83
                            </thead>
115
                        </tbody>
84
                            <tbody>
116
                    </table>
85
                                [% FOREACH t IN club_templates %]
86
                                    <tr>
87
                                        <td>[% t.name | html %]</td>
88
                                        <td>[% t.description | html %]</td>
89
                                        <td>
90
                                            [% IF t.is_enrollable_from_opac %]
91
                                                <span>Yes</span>
92
                                            [% ELSE %]
93
                                                <span>No</span>
94
                                            [% END %]
95
                                        </td>
96
                                        <td>
97
                                            [% IF t.is_email_required %]
98
                                                <span>Yes</span>
99
                                            [% ELSE %]
100
                                                <span>No</span>
101
                                            [% END %]
102
                                        </td>
103
                                        <td>[% Branches.GetName( t.branchcode ) | html %]</td>
104
                                        <td class="actions">
105
                                            [% IF CAN_user_clubs_edit_templates %]
106
                                                <a class="btn btn-xs btn-default" style="white-space:nowrap"  href="/cgi-bin/koha/clubs/templates-add-modify.pl?id=[% t.id | html %]">
107
                                                    <i class="fa fa-pencil"></i> Edit
108
                                                </a>
109
                                                <a class="btn btn-xs btn-default delete_template" href="#" data-id="[% t.id | html %]" data-name="[% t.name | html %]">
110
                                                    <i class="fa fa-trash"></i> Delete
111
                                                </a>
112
                                            [% END %]
113
                                        </td>
114
                                    </tr>
115
                                [% END %]
116
                            </tbody>
117
                        </table>
118
                    </div> <!-- /.page-section -->
117
                [% ELSE %]
119
                [% ELSE %]
118
                    <div class="dialog message">No club templates defined.</div>
120
                    <div class="dialog message">No club templates defined.</div>
119
                [% END %]
121
                [% END %]
Lines 138-144 Link Here
138
                [% END %]
140
                [% END %]
139
141
140
                [% IF clubs.count %]
142
                [% IF clubs.count %]
141
                    [% INCLUDE 'clubs-table.inc' %]
143
                    <div class="page-section">
144
                        [% INCLUDE 'clubs-table.inc' %]
145
                    </div> <!-- /.page-section -->
142
                [% ELSE %]
146
                [% ELSE %]
143
                    [% IF club_templates.count %]
147
                    [% IF club_templates.count %]
144
                        <div class="dialog message">No clubs defined.</div>
148
                        <div class="dialog message">No clubs defined.</div>
145
- 

Return to bug 31764