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

(-)a/koha-tmpl/intranet-tmpl/prog/css/staff-global.css (-2 / +8 lines)
Lines 585-592 fieldset.brief ol, fieldset.brief li { Link Here
585
	font-size : 95%;
585
	font-size : 95%;
586
}
586
}
587
587
588
fieldset.brief div.hint, fieldset.rows div.hint, div.yui-u div.hint {
588
fieldset.brief div.hint,
589
	margin-bottom : .4em;
589
fieldset.rows div.hint,
590
div.yui-u div.hint {
591
    margin-bottom : .4em;
592
}
593
594
fieldset.rows div.hint {
595
    margin-left : 7.5em;
590
}
596
}
591
597
592
div.yui-b fieldset.brief {
598
div.yui-b fieldset.brief {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-10 / +11 lines)
Lines 895-910 No patron matched <span class="ex">[% message | html %]</span> Link Here
895
        [% END %]
895
        [% END %]
896
    </li>
896
    </li>
897
897
898
    [% SET enrollments = patron.get_club_enrollments(1) %]
899
    [% SET enrollable  = patron.get_enrollable_clubs(0,1) %]
900
    [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
901
        <li>
902
            <a id="clubs-tab-link" href="#clubs-tab">
903
                Clubs ([% enrollments.count %]/[% enrollable.count %])
904
            </a>
905
        </li>
906
    [% END %]
907
908
    [% IF relatives_issues_count %]
898
    [% IF relatives_issues_count %]
909
        <li><a id="relatives-issues-tab" href="#relatives-issues">Relatives' checkouts</a></li>
899
        <li><a id="relatives-issues-tab" href="#relatives-issues">Relatives' checkouts</a></li>
910
    [% END %]
900
    [% END %]
Lines 924-929 No patron matched <span class="ex">[% message | html %]</span> Link Here
924
    [% END %]
914
    [% END %]
925
915
926
    <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.count %] Restrictions</a></li>
916
    <li><a id="debarments-tab-link" href="#reldebarments">[% debarments.count %] Restrictions</a></li>
917
918
    [% SET enrollments = patron.get_club_enrollments(1) %]
919
    [% SET enrollable  = patron.get_enrollable_clubs(0,1) %]
920
    [% IF CAN_user_clubs && ( enrollable.count || enrollments.count ) %]
921
        <li>
922
            <a id="clubs-tab-link" href="#clubs-tab">
923
                Clubs ([% enrollments.count %]/[% enrollable.count %])
924
            </a>
925
        </li>
926
    [% END %]
927
927
</ul>
928
</ul>
928
929
929
<!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
930
<!-- SUMMARY : TODAY & PREVIOUS ISSUES -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/club-enrollments.tt (-8 / +1 lines)
Lines 40-46 Link Here
40
                        <tr>
40
                        <tr>
41
                            <th>Name</th>
41
                            <th>Name</th>
42
                            <th>Card number</th>
42
                            <th>Card number</th>
43
                            <th>&nbsp;</th>
44
                        </tr>
43
                        </tr>
45
                    </thead>
44
                    </thead>
46
45
Lines 49-65 Link Here
49
                            [% SET p = e.patron %]
48
                            [% SET p = e.patron %]
50
                            <tr>
49
                            <tr>
51
                                <td>
50
                                <td>
52
                                    [% p.firstname %] [% p.surname %]
51
                                    <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% p.id %]">[% p.surname %], [% p.firstname %]</a>
53
                                </td>
52
                                </td>
54
                                <td>
53
                                <td>
55
                                    [% p.cardnumber %]
54
                                    [% p.cardnumber %]
56
                                </td>
55
                                </td>
57
                                <td>
58
                                    <a class="btn btn-sm" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% p.id %]">
59
                                        <i class="fa fa-eye"></i>
60
                                        View patron
61
                                    </a>
62
                                </td>
63
                            </tr>
56
                            </tr>
64
                        [% END %]
57
                        [% END %]
65
                    </tbody>
58
                    </tbody>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs-add-modify.tt (-94 / +107 lines)
Lines 3-9 Link Here
3
[% USE AuthorisedValues %]
3
[% USE AuthorisedValues %]
4
[% SET AuthorisedValuesCategories = AuthorisedValues.GetCategories %]
4
[% SET AuthorisedValuesCategories = AuthorisedValues.GetCategories %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
<title>Koha &rsaquo; Tools &rsaquo; Patron clubs &rsaquo; Club</title>
6
<title>Koha &rsaquo; Tools &rsaquo; Patron clubs &rsaquo;
7
    [% IF club %]
8
        Modify club [% club.name %]
9
    [% ELSE %]
10
        Create a new [% club_template.name %] club
11
    [% END %]
12
</title>
7
[% INCLUDE 'doc-head-close.inc' %]
13
[% INCLUDE 'doc-head-close.inc' %]
8
[% INCLUDE 'calendar.inc' %]
14
[% INCLUDE 'calendar.inc' %]
9
</head>
15
</head>
Lines 11-115 Link Here
11
<body id="clubs_add_modify" class="clubs">
17
<body id="clubs_add_modify" class="clubs">
12
[% INCLUDE 'header.inc' %]
18
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'cat-search.inc' %]
19
[% INCLUDE 'cat-search.inc' %]
14
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; <a href="clubs.pl">Patron clubs</a> &rsaquo; Add / modify club</div>
20
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; <a href="clubs.pl">Patron clubs</a> &rsaquo;
15
21
    [% IF club %]
16
<div class="yui-t7">
22
        Modify club <i>[% club.name %]</i>
17
    <div class="yui-main">
23
    [% ELSE %]
18
        <form method="post" class="validated">
24
        Create a new <i>[% club_template.name %]</i> club
19
            <input type="hidden" name="id" value="[% club.id %]" />
25
    [% END %]
20
            <input type="hidden" name="club_template_id" value="[% club_template.id %]" />
26
</div>
21
27
22
            <fieldset class="rows">
28
<div id="doc" class="yui-t7">
23
29
    <div id="bd">
24
                <legend>
30
        <div class="yui-main">
25
                    [% IF club %]
31
            <form method="post" class="validated">
26
                        Modify club <i>[% club.name %]</i>
32
                <input type="hidden" name="id" value="[% club.id %]" />
27
                    [% ELSE %]
33
                <input type="hidden" name="club_template_id" value="[% club_template.id %]" />
28
                        Create a new <i>[% club_template.name %]</i> club
34
29
                    [% END %]
35
                <fieldset class="rows">
30
                </legend>
36
31
37
                    <legend>
32
                <ol>
38
                        [% IF club %]
33
                    <li>
39
                            Modify club <i>[% club.name %]</i>
34
                        <label class="required" for="name">Name:</label>
40
                        [% ELSE %]
35
                        <input id="club-name" name="name" type="text" value="[% club.name %]" required="required"/>
41
                            Create a new <i>[% club_template.name %]</i> club
36
                        <span class="required">Required</span>
42
                        [% END %]
37
                    </li>
43
                    </legend>
38
44
39
                    <li>
45
                    <ol>
40
                        <label for="description">Description:</label>
46
                        <li>
41
                        <input id="club-template-name" name="description" type="text" value="[% club.description %]" />
47
                            <label class="required" for="club-name">Name:</label>
42
                    </li>
48
                            <input id="club-name" name="name" type="text" value="[% club.name %]" required="required"/>
43
49
                            <span class="required">Required</span>
44
                    <li>
50
                        </li>
45
                        <label for="date_start">Start date:</label>
51
46
                        <input name="date_start" id="from" size="10" readonly="readonly" class="datepickerfrom" value="[% club.date_start | $KohaDates %]">
52
                        <li>
47
                    </li>
53
                            <label for="club-template-name">Description:</label>
48
54
                            <input id="club-template-name" name="description" type="text" value="[% club.description %]" size="40" />
49
                    <li>
55
                        </li>
50
                        <label for="date_end">End date:</label>
56
51
                        <input name="date_end" id="to" size="10" readonly="readonly" class="datepickerto" value="[% club.date_end | $KohaDates %]" >
57
                        <li>
52
                    </li>
58
                            <label for="from">Start date:</label>
53
59
                            <input name="date_start" id="from" size="10" readonly="readonly" class="datepickerfrom" value="[% club.date_start | $KohaDates %]">
54
                    <li>
60
                        </li>
55
                        <label for="name">Library:</label>
61
56
                        <select name="branchcode" id="club-template-branchcode">
62
                        <li>
57
                            <option value="">&nbsp</option>
63
                            <label for="to">End date:</label>
58
                            [% PROCESS options_for_libraries libraries => Branches.all( selected => club.branch.branchcode ) %]
64
                            <input name="date_end" id="to" size="10" readonly="readonly" class="datepickerto" value="[% club.date_end | $KohaDates %]" >
59
                        </select>
65
                        </li>
60
                    </li>
66
61
67
                        <li>
62
                    [% IF club %]
68
                            <label for="club-template-branchcode">Library:</label>
63
                        [% FOREACH f IN club.club_fields %]
69
                            <select name="branchcode" id="club-template-branchcode">
64
                            <li>
70
                                <option value=""></option>
65
                                <input type="hidden" name="club_template_field_id" value="[% f.club_template_field.id %]" />
71
                                [% PROCESS options_for_libraries libraries => Branches.all( selected => club.branch.branchcode ) %]
66
                                <input type="hidden" name="club_field_id" value="[% f.id %]" />
72
                            </select>
67
73
                        </li>
68
                                <label for="club_field">[% f.club_template_field.name %]</label>
74
69
                                [% IF f.club_template_field.authorised_value_category %]
75
                        [% IF club %]
70
                                    <select name="club_field">
76
                            [% FOREACH f IN club.club_fields %]
71
                                        [% FOREACH a IN AuthorisedValues.Get( f.club_template_field.authorised_value_category ) %]
77
                                <li>
72
                                            [% IF a.authorised_value == f.value %]
78
                                    <input type="hidden" name="club_template_field_id" value="[% f.club_template_field.id %]" />
73
                                                <option value="[% a.authorised_value %]" selected="selected">[% a.lib %]</option>
79
                                    <input type="hidden" name="club_field_id" value="[% f.id %]" />
74
                                            [% ELSE %]
80
81
                                    <label for="club_field_[% f.club_template_field_id %]">[% f.club_template_field.name %]</label>
82
                                    [% IF f.club_template_field.authorised_value_category %]
83
                                        <select name="club_field" id="club_field_[% f.club_template_field_id %]">
84
                                            [% FOREACH a IN AuthorisedValues.Get( f.club_template_field.authorised_value_category ) %]
85
                                                [% IF a.authorised_value == f.value %]
86
                                                    <option value="[% a.authorised_value %]" selected="selected">[% a.lib %]</option>
87
                                                [% ELSE %]
88
                                                    <option value="[% a.authorised_value %]">[% a.lib %]</option>
89
                                                [% END %]
90
                                            [% END %]
91
                                        </select>
92
                                    [% ELSE %]
93
                                        <input type="text" name="club_field" id="club_field_[% f.club_template_field_id %]" value="[% f.value %]" size="40" />
94
                                    [% END %]
95
                                </li>
96
                            [% END %]
97
                        [% ELSE %]
98
                            [% FOREACH f IN club_template.club_template_fields %]
99
                                <li>
100
                                    <input type="hidden" name="club_template_field_id" value="[% f.id %]" />
101
102
                                    <label for="club_template_field_[% f.id %]">[% f.name %]</label>
103
                                    [% IF f.authorised_value_category %]
104
                                        <select name="club_field" id="club_template_field_[% f.id %]">
105
                                            [% FOREACH a IN AuthorisedValues.Get( f.authorised_value_category ) %]
75
                                                <option value="[% a.authorised_value %]">[% a.lib %]</option>
106
                                                <option value="[% a.authorised_value %]">[% a.lib %]</option>
76
                                            [% END %]
107
                                            [% END %]
77
                                        [% END %]
108
                                        </select>
78
                                    </select>
109
                                    [% ELSE %]
79
                                [% ELSE %]
110
                                        <input type="text" name="club_field" id="club_template_field_[% f.id %]" size="40" />
80
                                    <input type="text" name="club_field" value="[% f.value %]" />
111
                                    [% END %]
81
                                [% END %]
112
                                </li>
82
                            </li>
113
                            [% END %]
83
                        [% END %]
114
                        [% END %]
84
                    [% ELSE %]
85
                        [% FOREACH f IN club_template.club_template_fields %]
86
                            <li>
87
                                <input type="hidden" name="club_template_field_id" value="[% f.id %]" />
88
89
                                <label for="club_field">[% f.name %]</label>
90
                                [% IF f.authorised_value_category %]
91
                                    <select name="club_field">
92
                                        [% FOREACH a IN AuthorisedValues.Get( f.authorised_value_category ) %]
93
                                            <option value="[% a.authorised_value %]">[% a.lib %]</option>
94
                                        [% END %]
95
                                    </select>
96
                                [% ELSE %]
97
                                    <input type="text" name="club_field" />
98
                                [% END %]
99
                            </li>
100
                        [% END %]
101
                    [% END %]
102
115
103
                </ol>
116
                    </ol>
104
117
105
            </fieldset>
118
                </fieldset>
106
119
107
            <fieldset class="action">
120
                <fieldset class="action">
108
                <input type="submit" class="btn btn-default" value="Save" />
121
                    <input type="submit" value="Save" />
109
                <a href="clubs.pl" class="cancel">Cancel</a>
122
                    <a href="clubs.pl" class="cancel">Cancel</a>
110
            </fieldset>
123
                </fieldset>
111
        </form>
124
            </form>
125
        </div>
112
    </div>
126
    </div>
113
</div>
114
127
115
[% INCLUDE 'intranet-bottom.inc' %]
128
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt (-22 / +29 lines)
Lines 15-21 Link Here
15
            "sPaginationType": "four_button",
15
            "sPaginationType": "four_button",
16
            "sDom": 'C<"top pager"ilpf><"#filter_c">tr<"bottom pager"ip>',
16
            "sDom": 'C<"top pager"ilpf><"#filter_c">tr<"bottom pager"ip>',
17
            "aoColumnDefs": [
17
            "aoColumnDefs": [
18
                    { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
18
                { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
19
            ]
19
            ]
20
        } ));
20
        } ));
21
21
Lines 23-29 Link Here
23
            "sPaginationType": "four_button",
23
            "sPaginationType": "four_button",
24
            "sDom": 'C<"top pager"ilpf><"#filter_c">tr<"bottom pager"ip>',
24
            "sDom": 'C<"top pager"ilpf><"#filter_c">tr<"bottom pager"ip>',
25
            "aoColumnDefs": [
25
            "aoColumnDefs": [
26
                    { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
26
                { "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false },
27
            ]
27
            ]
28
        } ));
28
        } ));
29
    });
29
    });
Lines 102-108 Link Here
102
                [% IF CAN_user_clubs_edit_templates %]
102
                [% IF CAN_user_clubs_edit_templates %]
103
                    <div class="btn-toolbar">
103
                    <div class="btn-toolbar">
104
                        <div class="btn-group">
104
                        <div class="btn-group">
105
                            <a class="btn btn-default" href="templates-add-modify.pl"><i class="fa fa-plus"></i> New club template</a>
105
                            <a class="btn btn-sm btn-default" href="templates-add-modify.pl"><i class="fa fa-plus"></i> New club template</a>
106
                        </div>
106
                        </div>
107
                    </div>
107
                    </div>
108
                [% END %]
108
                [% END %]
Lines 143-156 Link Here
143
                                    <td>[% Branches.GetName( t.branchcode ) %]</td>
143
                                    <td>[% Branches.GetName( t.branchcode ) %]</td>
144
                                    <td>
144
                                    <td>
145
                                        [% IF CAN_user_clubs_edit_templates %]
145
                                        [% IF CAN_user_clubs_edit_templates %]
146
                                            <a class="btn btn-default" style="white-space:nowrap"  href="templates-add-modify.pl?id=[% t.id %]">
146
                                            <a class="btn btn-xs btn-default" style="white-space:nowrap"  href="templates-add-modify.pl?id=[% t.id %]">
147
                                                <i class="fa fa-edit"></i> Edit
147
                                                <i class="fa fa-pencil"></i> Edit
148
                                            </a>
148
                                            </a>
149
                                        [% END %]
149
                                        [% END %]
150
                                    </td>
150
                                    </td>
151
                                    <td>
151
                                    <td>
152
                                        [% IF CAN_user_clubs_edit_templates %]
152
                                        [% IF CAN_user_clubs_edit_templates %]
153
                                            <a class="btn btn-default" href="#" onclick='ConfirmDeleteTemplate([% t.id %], "[% t.name | html %]", $(this) ); return false;'>
153
                                            <a class="btn btn-xs btn-default" href="#" onclick='ConfirmDeleteTemplate([% t.id %], "[% t.name | html %]", $(this) ); return false;'>
154
                                                <i class="fa fa-trash"></i> Delete
154
                                                <i class="fa fa-trash"></i> Delete
155
                                            </a>
155
                                            </a>
156
                                        [% END %]
156
                                        [% END %]
Lines 173-181 Link Here
173
                    <div class="btn-toolbar">
173
                    <div class="btn-toolbar">
174
                        <div class="btn-group">
174
                        <div class="btn-group">
175
                            [% IF club_templates %]
175
                            [% IF club_templates %]
176
                                <button class="btn btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> New club <span class="caret"></span></button>
176
                                <button class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> New club <span class="caret"></span></button>
177
                            [% ELSE %]
177
                            [% ELSE %]
178
                                <button disabled="disabled" class="btn btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> New club <span class="caret"></span></button>
178
                                <button disabled="disabled" class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> New club <span class="caret"></span></button>
179
                            [% END %]
179
                            [% END %]
180
                            <ul class="dropdown-menu">
180
                            <ul class="dropdown-menu">
181
                                [% FOREACH t IN club_templates %]
181
                                [% FOREACH t IN club_templates %]
Lines 200-205 Link Here
200
                            <th>Enrolled patrons</th>
200
                            <th>Enrolled patrons</th>
201
                            <th>&nbsp;</th>
201
                            <th>&nbsp;</th>
202
                            <th>&nbsp;</th>
202
                            <th>&nbsp;</th>
203
                            <th>&nbsp;</th>
203
                        </tr>
204
                        </tr>
204
                    </thead>
205
                    </thead>
205
206
Lines 237-256 Link Here
237
                                    </td>
238
                                    </td>
238
                                    <td>
239
                                    <td>
239
                                        [% c.club_enrollments.count %]
240
                                        [% c.club_enrollments.count %]
240
                                        <a class="btn btn-xs" href="club-enrollments.pl?id=[% c.id %]">
241
                                    </td>
241
                                            View enrollments
242
                                    <td class="actions">
243
                                        [% IF ( c.club_enrollments.count ) %]
244
                                            <a class="btn btn-xs btn-default" href="club-enrollments.pl?id=[% c.id %]">
245
                                        [% ELSE %]
246
                                            <a class="btn btn-xs btn-default disabled" href="club-enrollments.pl?id=[% c.id %]">
247
                                        [% END %]
248
                                            <i class="fa fa-list-ul"></i> Enrollments
242
                                        </a>
249
                                        </a>
243
                                    </td>
250
                                    </td>
244
                                    <td>
251
                                    <td class="actions">
245
                                        [% IF CAN_user_clubs_edit_clubs %]
252
                                        [% IF CAN_user_clubs_edit_clubs %]
246
                                            <a class="btn btn-default" style="white-space:nowrap" href="clubs-add-modify.pl?id=[% c.id %]">
253
                                            <a class="btn btn-xs btn-default" href="clubs-add-modify.pl?id=[% c.id %]">
247
                                                <i class="fa fa-edit"></i> Edit
254
                                                <i class="fa fa-pencil"></i> Edit
248
                                            </a>
255
                                            </a>
249
                                        [% END %]
256
                                        [% END %]
250
                                    </td>
257
                                    </td>
251
                                    <td>
258
                                    <td class="actions">
252
                                        [% IF CAN_user_clubs_edit_clubs %]
259
                                        [% IF CAN_user_clubs_edit_clubs %]
253
                                            <a class="btn btn-default" href="#" onclick='ConfirmDeleteClub([% c.id %], "[% c.name | html %]", $(this) ); return false;'>
260
                                            <a class="btn btn-xs btn-default" href="#" onclick='ConfirmDeleteClub([% c.id %], "[% c.name | html %]", $(this) ); return false;'>
254
                                                <i class="fa fa-trash"></i> Delete
261
                                                <i class="fa fa-trash"></i> Delete
255
                                            </a>
262
                                            </a>
256
                                        [% END %]
263
                                        [% END %]
Lines 259-276 Link Here
259
                            [% END %]
266
                            [% END %]
260
                        [% ELSE %]
267
                        [% ELSE %]
261
                            <tr>
268
                            <tr>
262
                                <td colspan="8">
269
                                <td colspan="11">
263
                                    No clubs defined.
270
                                    No clubs defined.
264
                                </td>
271
                                </td>
265
                            </td>
272
                            </tr>
266
                        [% END %]
273
                        [% END %]
267
                    </tbody>
274
                    </tbody>
268
                </table>
275
                </table> <!-- /.clubs-table -->
269
            </div>
276
            </div> <!-- /.yui-b -->
270
        </div>
277
        </div> <!-- /.yui-main -->
271
        <div class="yui-b noprint">
278
        <div class="yui-b noprint">
272
            [% INCLUDE 'tools-menu.inc' %]
279
            [% INCLUDE 'tools-menu.inc' %]
273
        </div>
280
        </div>
274
    </div>
281
    </div> <!-- /#bd -->
275
</div>
282
276
[% INCLUDE 'intranet-bottom.inc' %]
283
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-clubs-tab.tt (-15 / +10 lines)
Lines 1-14 Link Here
1
[% USE KohaDates %]
1
[% USE KohaDates %]
2
2
3
[% IF enrollments %]
3
[% IF enrollments %]
4
    <h4>Clubs currently enrolled in</h4>
5
4
    <table>
6
    <table>
5
        <thead>
7
        <thead>
6
            <tr>
8
            <tr>
7
                <th colspan="4">
8
                    Clubs currently enrolled in
9
                </th>
10
            </tr>
11
            <tr>
12
                <th>Name</th>
9
                <th>Name</th>
13
                <th>Description</th>
10
                <th>Description</th>
14
                <th>Date enrolled</th>
11
                <th>Date enrolled</th>
Lines 24-32 Link Here
24
                    <td>[% e.date_enrolled | $KohaDates %]</td>
21
                    <td>[% e.date_enrolled | $KohaDates %]</td>
25
                    [% IF CAN_user_clubs_enroll %]
22
                    [% IF CAN_user_clubs_enroll %]
26
                        <td>
23
                        <td>
27
                            <a class="btn btn-xs" onclick="cancelEnrollment( [% e.id %] )">
24
                            <button class="btn btn-xs btn-default" onclick="cancelEnrollment( [% e.id %] )">
28
                                <i class="fa fa-remove"></i> Cancel
25
                                <i class="fa fa-remove"></i> Cancel
29
                            </a>
26
                            </button>
30
                        </td>
27
                        </td>
31
                    [% END %]
28
                    [% END %]
32
                </tr>
29
                </tr>
Lines 36-49 Link Here
36
[% END %]
33
[% END %]
37
34
38
[% IF clubs %]
35
[% IF clubs %]
36
37
    <h4>Clubs not enrolled in</h4>
38
39
    <table>
39
    <table>
40
        <thead>
40
        <thead>
41
            <tr>
41
            <tr>
42
                <th colspan="3">
43
                    Clubs not enrolled in
44
                </th>
45
            </tr>
46
            <tr>
47
                <th>Name</th>
42
                <th>Name</th>
48
                <th>Description</th>
43
                <th>Description</th>
49
                [% IF CAN_user_clubs_enroll %]<th>&nbsp;</th>[% END %]
44
                [% IF CAN_user_clubs_enroll %]<th>&nbsp;</th>[% END %]
Lines 56-65 Link Here
56
                    <td>[% c.name %]</td>
51
                    <td>[% c.name %]</td>
57
                    <td>[% c.description %]</td>
52
                    <td>[% c.description %]</td>
58
                    [% IF CAN_user_clubs_enroll %]
53
                    [% IF CAN_user_clubs_enroll %]
59
                        <td>
54
                        <td class="action">
60
                            <a class="btn btn-xs" onclick="loadEnrollmentForm([% c.id %])">
55
                            <button class="btn btn-xs btn-default" onclick="loadEnrollmentForm([% c.id %])">
61
                                <i class="fa fa-plus"></i> Enroll
56
                                <i class="fa fa-plus"></i> Enroll
62
                            </a>
57
                            </button>
63
                        </td>
58
                        </td>
64
                    [% END %]
59
                    [% END %]
65
                </tr>
60
                </tr>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-enroll.tt (-2 / +2 lines)
Lines 28-35 Link Here
28
                [% END %]
28
                [% END %]
29
29
30
                <li>
30
                <li>
31
                    <a href="#" class="btn btn-default" onclick="addEnrollment(); return false;"><i class="fa fa-plus"></i> Finish enrollment</a>
31
                    <a href="#" class="btn btn-sm btn-default" onclick="addEnrollment(); return false;">Finish enrollment</a>
32
                    <a href="#" onclick="showClubs(); return false;">Cancel</a>
32
                    <a class="cancel" href="#" onclick="showClubs(); return false;">Cancel</a>
33
                </li>
33
                </li>
34
            </ol>
34
            </ol>
35
        </fieldset>
35
        </fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/templates-add-modify.tt (-161 / +187 lines)
Lines 1-165 Link Here
1
[% USE Branches %]
1
[% USE Branches %]
2
[% USE AuthorisedValues %]
2
[% USE AuthorisedValues %]
3
[% INCLUDE 'doc-head-open.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Tools &rsaquo; Patron clubs &rsaquo; Club template</title>
4
<title>Koha &rsaquo; Tools &rsaquo; Patron clubs &rsaquo;
5
    [% IF club_template %]
6
        Modify club template [% club_template.name %]
7
    [% ELSE %]
8
        Create a new club template
9
    [% END %]
10
</title>
5
[% INCLUDE 'doc-head-close.inc' %]
11
[% INCLUDE 'doc-head-close.inc' %]
12
<style type="text/css">
13
    .club-field,
14
    .enrollment-field {
15
        border-top: 1px solid #DDD;
16
    }
17
</style>
6
</head>
18
</head>
7
19
8
<body id="clubs_templates_add_modify" class="clubs">
20
<body id="clubs_templates_add_modify" class="clubs">
9
[% INCLUDE 'header.inc' %]
21
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'cat-search.inc' %]
22
[% INCLUDE 'cat-search.inc' %]
11
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; <a href="clubs.pl">Patron clubs</a> &rsaquo; Add / modify club template</div>
23
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; <a href="clubs.pl">Patron clubs</a> &rsaquo;
12
24
    [% IF club_template %]
13
<div class="yui-t7">
25
        Modify club template <i>[% club_template.name %]</i>
14
    <div class="yui-main">
26
    [% ELSE %]
15
        <form method="post" class="validated">
27
        Create a new club template
16
            <input type="hidden" name="id" value="[% club_template.id %]" />
28
    [% END %]
29
</div>
17
30
18
            <fieldset class="rows">
31
<div id="doc" class="yui-t7">
32
    <div id="bd">
33
        <div class="yui-main">
34
            <form method="post" class="validated">
35
                <input type="hidden" name="id" value="[% club_template.id %]" />
19
36
20
                <legend>
37
                <h2>
21
                    [% IF club_template %]
38
                    [% IF club_template %]
22
                        Modify club template <i>[% club_template.name %]</i>
39
                        Modify club template <i>[% club_template.name %]</i>
23
                    [% ELSE %]
40
                    [% ELSE %]
24
                        Create a new club template
41
                        Create a new club template
25
                    [% END %]
42
                    [% END %]
26
                </legend>
43
                </h2>
27
44
28
                <ol>
45
29
                    <li>
46
                <fieldset class="rows">
30
                        <label class="required" for="name">Name:</label>
47
                    <ol>
31
                        <input id="club-template-name" name="name" type="text" value="[% club_template.name %]" required="required"/>
48
                        <li>
32
                        <span class="required">Required</span>
49
                            <label class="required" for="name">Name:</label>
33
                    </li>
50
                            <input id="club-template-name" name="name" type="text" value="[% club_template.name %]" required="required"/>
34
51
                            <span class="required">Required</span>
35
                    <li>
52
                        </li>
36
                        <label for="description">Description:</label>
53
37
                        <input id="club-template-description" name="description" type="text" value="[% club_template.description %]" />
54
                        <li>
38
                    </li>
55
                            <label for="description">Description:</label>
39
56
                            <input id="club-template-description" name="description" type="text" value="[% club_template.description %]" />
40
                    <li>
57
                        </li>
41
                        <label for="is_enrollable_from_opac">Allow public enrollment:</label>
58
42
                        [% IF club_template.is_enrollable_from_opac %]
59
                        <li>
43
                            <input type="checkbox" id="club-template-is-enrollable-from-opac" name="is_enrollable_from_opac" checked="checked" />
60
                            <label for="is_enrollable_from_opac">Allow public enrollment:</label>
44
                        [% ELSE %]
61
                            [% IF club_template.is_enrollable_from_opac %]
45
                            <input type="checkbox" id="club-template-is-enrollable-from-opac" name="is_enrollable_from_opac" />
62
                                <input type="checkbox" id="club-template-is-enrollable-from-opac" name="is_enrollable_from_opac" checked="checked" />
63
                            [% ELSE %]
64
                                <input type="checkbox" id="club-template-is-enrollable-from-opac" name="is_enrollable_from_opac" />
65
                            [% END %]
66
                            <span class="hint">If a template allows public enrollment, patrons can enroll in a club based on this template from the public catalog.</span>
67
                        </li>
68
69
                        <li>
70
                            <label for="is_email_required">Require valid email address:</label>
71
                            [% IF club_template.is_email_required %]
72
                                <input type="checkbox" id="club-template-is-email-required" name="is_email_required" checked="checked" />
73
                            [% ELSE %]
74
                                <input type="checkbox" id="club-template-is-email-required" name="is_email_required" />
75
                            [% END %]
76
                            <span class="hint">If set, a club based on this template can only be enrolled in by patrons with a valid email address.</span>
77
                        </li>
78
79
                        <li>
80
                            <label for="branchcode">Library:</label>
81
                            <select name="branchcode" id="club-template-branchcode">
82
                                <option value=""></option>
83
                                [% PROCESS options_for_libraries libraries => Branches.all( selected => club_template.branchcode ) %]
84
                            </select>
85
                            <div class="hint">If set, only librarians logged in with this branch will be able to modify this club template.</div>
86
                        </li>
87
88
                    </ol>
89
                </fieldset>
90
91
                <fieldset class="rows">
92
                    <legend>Club fields:</legend>
93
                    <p><span class="hint">These fields will be used in the creation of clubs based on this template</span></p>
94
                    <div id="club-template-fields">
95
                        [% FOREACH f IN club_template.club_template_fields %]
96
                            <div class="club-field">
97
                                <ol class="clearfix">
98
                                    <input type="hidden" name="club_template_field_id" value="[% f.id %]" />
99
                                    <li>
100
                                        <label for="field-name-[% f.id %]">Name:</label>
101
                                        <input name="club_template_field_name" id="field-name-[% f.id %]" value="[% f.name %]" />
102
                                    </li>
103
104
                                    <li>
105
                                        <label for="field-description-[% f.id %]">Description:</label>
106
                                        <input name="club_template_field_description" id="field-description-[% f.id %]" value="[% f.description %]" />
107
                                    </li>
108
109
                                    <li>
110
                                        <label for="field-description-[% f.id %]">Authorised value category:</label>
111
                                        <select name="club_template_field_authorised_value_category" id="field-authorised-value-category-[% f.id %]">
112
                                            <option value=""></option>
113
                                            [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => f.authorised_value_category) %]
114
                                        </select>
115
                                    </li>
116
117
                                    <li>
118
                                        <label for="field-delete-[% f.id %]">Delete field:</label>
119
                                        <input type="checkbox" name="club_template_field_delete" id="field-delete-[% f.id %]" value="[% f.id %]" />
120
                                    </li>
121
                                </ol>
122
                            </div>
46
                        [% END %]
123
                        [% END %]
47
                        <span class="hint">If a template allows public enrollment, patrons can enroll in a club based on this template from the public catalog.</span>
124
                    </div>
48
                    </li>
125
                    <fieldset class="action">
49
126
                        <a href="#" onclick="$('#new-field-template').clone().attr('id','').show().appendTo('#club-template-fields'); return false;">
50
                    <li>
127
                            <i class="fa fa-plus"></i> Add new field
51
                        <label for="is_email_required">Require valid email address:</label>
128
                        </a>
52
                        [% IF club_template.is_email_required %]
129
                    </fieldset>
53
                            <input type="checkbox" id="club-template-is-email-required" name="is_email_required" checked="checked" />
130
                </fieldset>
54
                        [% ELSE %]
131
55
                            <input type="checkbox" id="club-template-is-email-required" name="is_email_required" />
132
                <fieldset class="rows">
133
                    <legend>Enrollment fields</legend>
134
                    <p><span class="hint">These fields will be used when enrolling a patron in a club based on this template</span></p>
135
                    <div id="club-template-enrollment-fields">
136
                        [% FOREACH f IN club_template.club_template_enrollment_fields %]
137
                            <div class="enrollment-field">
138
                                <ol class="clearfix">
139
                                    <li>
140
                                        <span class="label">&nbsp;</span>
141
                                        <strong>Enrollment field</strong>
142
                                    </li>
143
                                    <li>
144
                                        <input type="hidden" name="club_template_enrollment_field_id" value="[% f.id %]" />
145
                                        <label for="enrollment-field-name-[% f.id %]">Name:</label>
146
                                        <input name="club_template_enrollment_field_name" id="enrollment-field-name-[% f.id %]" value="[% f.name %]" size="40" />
147
                                    </li>
148
149
                                    <li>
150
                                        <label for="enrollment-field-description-[% f.id %]">Description:</label>
151
                                        <input name="club_template_enrollment_field_description" id="enrollment-field-description-[% f.id %]" value="[% f.description %]" size="40" />
152
                                    </li>
153
154
                                    <li>
155
                                        <label for="enrollment-field-description-[% f.id %]">Authorised value category:</label>
156
                                        <select name="club_template_enrollment_field_authorised_value_category" id="enrollment-field-authorised-value-category-[% f.id %]">
157
                                            <option value=""></option>
158
                                            [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => f.authorised_value_category) %]
159
                                        </select>
160
                                    </li>
161
162
                                    <li>
163
                                        <label for="enrollment-field-delete-[% f.id %]">Delete field:</label>
164
                                        <input type="checkbox" name="club_template_enrollment_field_delete" id="enrollment-field-delete-[% f.id %]" value="[% f.id %]" />
165
                                    </li>
166
                                </ol>
167
                            </div>
56
                        [% END %]
168
                        [% END %]
57
                        <span class="hint">If set, a club based on this template can only be enrolled in by patrons with a valid email address.</span>
169
                    </div>
58
                    </li>
170
                    <fieldset class="action">
59
171
                        <a href="#" onclick="$('#new-enrollment-field-template').clone().attr('id','').show().appendTo('#club-template-enrollment-fields'); return false;">
60
                    <li>
172
                            <i class="fa fa-plus"></i> Add new field
61
                        <label for="branchcode">Library:</label>
173
                        </a>
62
                        <select name="branchcode" id="club-template-branchcode">
174
                    </fieldset>
63
                            <option value="">&nbsp</option>
175
                </fieldset>
64
                            [% PROCESS options_for_libraries libraries => Branches.all( selected => club_template.branchcode ) %]
176
65
                        </select>
177
                <fieldset class="action">
66
                        <span class="hint">If set, only librarians logged in with this branch will be able to modify this club template.</span>
178
                    <input type="hidden" name="id" value="[% club_template.id %]" />
67
                    </li>
179
                    <input type="submit" value="Save" />
68
180
                    <a href="clubs.pl" class="cancel">Cancel</a>
69
                </ol>
181
                </fieldset>
70
182
            </form>
71
                <h2>Club fields:</h2>
183
72
                <p><span class="hint">These fields will be used in the creation of clubs based on this template</span></p>
184
        </div> <!-- /#yui-main -->
73
                <span id="club-template-fields">
185
    </div> <!-- /#bd -->
74
                    [% FOREACH f IN club_template.club_template_fields %]
186
75
                        <ul>
187
76
                            <input type="hidden" name="club_template_field_id" value="[% f.id %]" />
188
<div id="new-field-template" class="club-field" style="display:none">
77
                            <li>
189
    <h4 style="margin-left:1em;">New club field</h4>
78
                                <label for="field-name-[% f.id %]">Name:</label>
190
    <input type="hidden" name="club_template_field_id" value="" />
79
                                <input name="club_template_field_name" id="field-name-[% f.id %]" value="[% f.name %]" />
191
    <ol class="clearfix">
80
                            </li>
81
82
                            <li>
83
                                <label for="field-description-[% f.id %]">Description:</label>
84
                                <input name="club_template_field_description" id="field-description-[% f.id %]" value="[% f.description %]" />
85
                            </li>
86
87
                            <li>
88
                                <label for="field-description-[% f.id %]">Authorised value category:</label>
89
                                <select name="club_template_field_authorised_value_category" id="field-authorised-value-category-[% f.id %]">
90
                                    <option value="">&nbsp;</option>
91
                                    [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => f.authorised_value_category) %]
92
                                </select>
93
                            </li>
94
95
                            <li>
96
                                <label for="field-delete-[% f.id %]">Delete field:</label>
97
                                <input type="checkbox" name="club_template_field_delete" id="field-delete-[% f.id %]" value="[% f.id %]" />
98
                            </li>
99
100
                            <hr/>
101
                        </ul>
102
                    [% END %]
103
                </span>
104
                <div class="btn-toolbar">
105
                    <a href="#" class="btn btn-default" onclick="$('#new-field-template').clone().attr('id','').show().appendTo('#club-template-fields'); return false;">
106
                        <i class="fa fa-plus"></i> Add new field
107
                    </a>
108
                </div>
109
110
                <h2>Enrollment fields:</h2>
111
                <p><span class="hint">These fields will be used when enrolling a patron in a club based on this template</span></p>
112
                <span id="club-template-enrollment-fields">
113
                    [% FOREACH f IN club_template.club_template_enrollment_fields %]
114
                        <ul>
115
                            <input type="hidden" name="club_template_enrollment_field_id" value="[% f.id %]" />
116
                            <li>
117
                                <label for="enrollment-field-name-[% f.id %]">Name:</label>
118
                                <input name="club_template_enrollment_field_name" id="enrollment-field-name-[% f.id %]" value="[% f.name %]" />
119
                            </li>
120
121
                            <li>
122
                                <label for="enrollment-field-description-[% f.id %]">Description:</label>
123
                                <input name="club_template_enrollment_field_description" id="enrollment-field-description-[% f.id %]" value="[% f.description %]" />
124
                            </li>
125
126
                            <li>
127
                                <label for="enrollment-field-description-[% f.id %]">Authorised value category:</label>
128
                                <select name="club_template_enrollment_field_authorised_value_category" id="enrollment-field-authorised-value-category-[% f.id %]">
129
                                    <option value="">&nbsp;</option>
130
                                    [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => f.authorised_value_category) %]
131
                                </select>
132
                            </li>
133
134
                            <li>
135
                                <label for="enrollment-field-delete-[% f.id %]">Delete field:</label>
136
                                <input type="checkbox" name="club_template_enrollment_field_delete" id="enrollment-field-delete-[% f.id %]" value="[% f.id %]" />
137
                            </li>
138
139
                            <hr/>
140
                        </ul>
141
                    [% END %]
142
                </span>
143
                <div class="btn-toolbar">
144
                    <a href="#" class="btn btn-default" onclick="$('#new-enrollment-field-template').clone().attr('id','').show().appendTo('#club-template-enrollment-fields'); return false;">
145
                        <i class="fa fa-plus"></i> Add new field
146
                    </a>
147
                </div>
148
149
            </fieldset>
150
151
            <fieldset class="action">
152
                <input type="hidden" name="id" value="[% club_template.id %]" />
153
                <input type="submit" class="btn btn-default" value="Save" />
154
                <a href="clubs.pl" class="cancel">Cancel</a>
155
            </fieldset>
156
        </form>
157
    </div>
158
</div>
159
160
<span id="new-field-template" style="display:none">
161
    <ul>
162
        <input type="hidden" name="club_template_field_id" value="" />
163
192
164
        <li>
193
        <li>
165
            <label for="club_template_field_name">Name:</label>
194
            <label for="club_template_field_name">Name:</label>
Lines 174-193 Link Here
174
        <li>
203
        <li>
175
            <label for="club_template_field_authorised_value_category">Authorised value category:</label>
204
            <label for="club_template_field_authorised_value_category">Authorised value category:</label>
176
            <select name="club_template_field_authorised_value_category">
205
            <select name="club_template_field_authorised_value_category">
177
                <option value="">&nbsp;</option>
206
                <option value=""></option>
178
                [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories() %]
207
                [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories() %]
179
            </select>
208
            </select>
180
        </li>
209
        </li>
210
    </ol>
211
    <fieldset class="action"><a href="#" onclick="$(this).parent().parent().remove(); return false;"><i class="fa fa-trash"></i> Delete field</a></fieldset>
212
    <hr/>
213
</div>
181
214
182
        <a href="#" onclick="$(this).parent().remove(); return false;">Cancel</a>
215
<div id="new-enrollment-field-template" class="enrollment-field" style="display:none">
183
216
    <h4 style="margin-left:1em;">New enrollment field</h4>
184
        <hr/>
217
    <input type="hidden" name="club_template_enrollment_field_id" value="" />
185
    </ul>
218
    <ol class="clearfix">
186
</span>
187
188
<span id="new-enrollment-field-template" style="display:none">
189
    <ul>
190
        <input type="hidden" name="club_template_enrollment_field_id" value="" />
191
219
192
        <li>
220
        <li>
193
            <label for="club_template_enrollment_field_name">Name:</label>
221
            <label for="club_template_enrollment_field_name">Name:</label>
Lines 202-216 Link Here
202
        <li>
230
        <li>
203
            <label for="club_template_enrollment_field_authorised_value_category">Authorised value category:</label>
231
            <label for="club_template_enrollment_field_authorised_value_category">Authorised value category:</label>
204
            <select name="club_template_enrollment_field_authorised_value_category">
232
            <select name="club_template_enrollment_field_authorised_value_category">
205
                <option value="">&nbsp;</option>
233
                <option value=""></option>
206
                [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories() %]
234
                [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories() %]
207
            </select>
235
            </select>
208
        </li>
236
        </li>
209
237
    </ol>
210
        <a href="#" onclick="$(this).parent().remove(); return false;">Cancel</a>
238
    <fieldset class="action"><a href="#" onclick="$(this).parent().parent().remove(); return false;"><i class="fa fa-trash"></i> Delete field</a></fieldset>
211
239
    </div>
212
        <hr/>
240
</div>
213
    </ul>
214
</span>
215
241
216
[% INCLUDE 'intranet-bottom.inc' %]
242
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/clubs/clubs-tab.tt (-14 / +10 lines)
Lines 1-14 Link Here
1
[% USE KohaDates %]
1
[% USE KohaDates %]
2
2
3
[% IF enrollments %]
3
[% IF enrollments %]
4
5
    <h4>Clubs currently enrolled in</h4>
6
4
    <table id="clubs-table-enrolled" class="table table-bordered table-striped">
7
    <table id="clubs-table-enrolled" class="table table-bordered table-striped">
5
        <thead>
8
        <thead>
6
            <tr>
9
            <tr>
7
                <th colspan="4">
8
                    Clubs you are currently enrolled in
9
                </th>
10
            </tr>
11
            <tr>
12
                <th>Name</th>
10
                <th>Name</th>
13
                <th>Description</th>
11
                <th>Description</th>
14
                <th>Date enrolled</th>
12
                <th>Date enrolled</th>
Lines 24-32 Link Here
24
                    <td>[% e.date_enrolled | $KohaDates %]</td>
22
                    <td>[% e.date_enrolled | $KohaDates %]</td>
25
                    [% IF e.club.club_template.is_enrollable_from_opac %]
23
                    [% IF e.club.club_template.is_enrollable_from_opac %]
26
                        <td>
24
                        <td>
27
                            <a class="btn btn-xs" onclick="cancelEnrollment( [% e.id %] )">
25
                            <button class="btn btn-xs btn-default" onclick="cancelEnrollment( [% e.id %] )">
28
                                <i class="icon-remove"></i> Cancel
26
                                <i class="icon-remove"></i> Cancel
29
                            </a>
27
                            </button>
30
                        </td>
28
                        </td>
31
                    [% END %]
29
                    [% END %]
32
                </tr>
30
                </tr>
Lines 36-49 Link Here
36
[% END %]
34
[% END %]
37
35
38
[% IF clubs %]
36
[% IF clubs %]
37
38
    <h4>Clubs you can enroll in</h4>
39
39
    <table id="clubs-table-unenrolled" class="table table-bordered table-striped">
40
    <table id="clubs-table-unenrolled" class="table table-bordered table-striped">
40
        <thead>
41
        <thead>
41
            <tr>
42
            <tr>
42
                <th colspan="3">
43
                    Clubs you can enroll in
44
                </th>
45
            </tr>
46
            <tr>
47
                <th>Name</th>
43
                <th>Name</th>
48
                <th>Description</th>
44
                <th>Description</th>
49
                <th>&nbsp;</th>
45
                <th>&nbsp;</th>
Lines 57-65 Link Here
57
                    <td>[% c.description %]</td>
53
                    <td>[% c.description %]</td>
58
                    <td>
54
                    <td>
59
                        [% IF !c.club_template.is_email_required || ( c.club_template.is_email_required && borrower.first_valid_email_address ) %]
55
                        [% IF !c.club_template.is_email_required || ( c.club_template.is_email_required && borrower.first_valid_email_address ) %]
60
                            <a class="btn btn-xs" onclick="loadEnrollmentForm([% c.id %])">
56
                            <button class="btn btn-xs btn-default" onclick="loadEnrollmentForm([% c.id %])">
61
                                <i class="icon-plus"></i> Enroll
57
                                <i class="icon-plus"></i> Enroll
62
                            </a>
58
                            </button>
63
                        [% ELSE %]
59
                        [% ELSE %]
64
                            <span class="hint">You must have an email address to enroll</span>
60
                            <span class="hint">You must have an email address to enroll</span>
65
                        [% END %]
61
                        [% END %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/clubs/enroll.tt (-2 / +1 lines)
Lines 28-34 Link Here
28
                [% END %]
28
                [% END %]
29
29
30
                <li>
30
                <li>
31
                    <a href="#" class="btn btn-default" onclick="addEnrollment(); return false;"><i class="fa fa-plus"></i> Finish enrollment</a>
31
                    <button class="btn btn-default" onclick="addEnrollment(); return false;">Finish enrollment</button>
32
                    <a href="#" onclick="showClubs(); return false;">Cancel</a>
32
                    <a href="#" onclick="showClubs(); return false;">Cancel</a>
33
                </li>
33
                </li>
34
            </ol>
34
            </ol>
35
- 

Return to bug 18529