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

(-)a/Koha/Patron.pm (+1 lines)
Lines 23-28 use Carp; Link Here
23
23
24
use Koha::Database;
24
use Koha::Database;
25
use Koha::Patron::Images;
25
use Koha::Patron::Images;
26
use Koha::Club::Enrollments;
26
27
27
use base qw(Koha::Object);
28
use base qw(Koha::Object);
28
29
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc (+4 lines)
Lines 19-24 Link Here
19
    [%- CASE 'coursereserves' -%]<span>Course reserves</span>
19
    [%- CASE 'coursereserves' -%]<span>Course reserves</span>
20
    [%- CASE 'plugins' -%]<span>Koha plugins</span>
20
    [%- CASE 'plugins' -%]<span>Koha plugins</span>
21
    [%- CASE 'lists' -%]<span>Lists</span>
21
    [%- CASE 'lists' -%]<span>Lists</span>
22
    [%- CASE 'clubs' -%]<span>Patron clubs</span>
22
    [%- END -%]
23
    [%- END -%]
23
[%- END -%]
24
[%- END -%]
24
25
Lines 100-104 Link Here
100
    [%- CASE 'report' -%]<span>Use report plugins</span>
101
    [%- CASE 'report' -%]<span>Use report plugins</span>
101
    [%- CASE 'tool' -%]<span>Use tool plugins</span>
102
    [%- CASE 'tool' -%]<span>Use tool plugins</span>
102
    [%- CASE 'delete_public_lists' -%]<span>Delete public lists</span>
103
    [%- CASE 'delete_public_lists' -%]<span>Delete public lists</span>
104
    [%- CASE 'edit_clubs' -%]<span>Create and edit clubs</span>
105
    [%- CASE 'edit_templates' -%]<span>Create and edit club templates</span>
106
    [%- CASE 'enroll' -%]<span>Enroll patrons in clubs</span>
103
    [%- END -%]
107
    [%- END -%]
104
[%- END -%]
108
[%- END -%]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc (+3 lines)
Lines 26-31 Link Here
26
    [% IF ( CAN_user_tools_manage_patron_lists ) %]
26
    [% IF ( CAN_user_tools_manage_patron_lists ) %]
27
	<li><a href="/cgi-bin/koha/patron_lists/lists.pl">Patron lists</a></li>
27
	<li><a href="/cgi-bin/koha/patron_lists/lists.pl">Patron lists</a></li>
28
    [% END %]
28
    [% END %]
29
    [% IF (CAN_user_clubs) %]
30
        <li><a href="/cgi-bin/koha/clubs/clubs.pl">Patron clubs</a></li>
31
    [% END %]
29
    [% IF ( CAN_user_tools_moderate_comments ) %]
32
    [% IF ( CAN_user_tools_moderate_comments ) %]
30
	<li><a href="/cgi-bin/koha/reviews/reviewswaiting.pl">Comments</a></li>
33
	<li><a href="/cgi-bin/koha/reviews/reviewswaiting.pl">Comments</a></li>
31
    [% END %]
34
    [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs-add-modify.tt (-22 / +12 lines)
Lines 6-27 Link Here
6
<title>Koha &rsaquo; Tools &rsaquo; Patron clubs &rsaquo; Club</title>
6
<title>Koha &rsaquo; Tools &rsaquo; Patron clubs &rsaquo; Club</title>
7
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
8
[% INCLUDE 'calendar.inc' %]
8
[% INCLUDE 'calendar.inc' %]
9
10
<script type="text/javascript">
11
//<![CDATA[
12
13
function CheckForm() {
14
  if ( !$("#club-name").val() ) {
15
    alert( _("Name is a required field!")  );
16
    return false;
17
  }
18
19
  return true;
20
}
21
22
//]]>
23
</script>
24
25
</head>
9
</head>
26
10
27
<body id="clubs_add_modify" class="clubs">
11
<body id="clubs_add_modify" class="clubs">
Lines 33-44 function CheckForm() { Link Here
33
    <div class="yui-main">
17
    <div class="yui-main">
34
        [% IF stored %]
18
        [% IF stored %]
35
            <div class="alert">
19
            <div class="alert">
36
                <p>Your club was [% IF stored == 'updated' %] updated [% ELSE %] saved [% END %]</p>
20
                [% IF stored == 'updated' %]
21
                    <p>Your club was updated</p>
22
                [% ELSE %]
23
                    <p>Your club was created</p>
24
                [% END %]
37
                <a href="clubs.pl">Return to patron clubs</a>
25
                <a href="clubs.pl">Return to patron clubs</a>
38
            </div>
26
            </div>
39
        [% END %]
27
        [% END %]
40
28
41
        <form method="post" onsubmit="return CheckForm()">
29
        <form method="post" class="validated">
42
            <input type="hidden" name="id" value="[% club.id %]" />
30
            <input type="hidden" name="id" value="[% club.id %]" />
43
            <input type="hidden" name="club_template_id" value="[% club_template.id %]" />
31
            <input type="hidden" name="club_template_id" value="[% club_template.id %]" />
44
32
Lines 55-61 function CheckForm() { Link Here
55
                <ol>
43
                <ol>
56
                    <li>
44
                    <li>
57
                        <label class="required" for="name">Name:</label>
45
                        <label class="required" for="name">Name:</label>
58
                        <input id="club-name" name="name" type="text" value="[% club.name %]" />
46
                        <input id="club-name" name="name" type="text" value="[% club.name %]" required="required"/>
47
                        <span class="required">Required</span>
59
                    </li>
48
                    </li>
60
49
61
                    <li>
50
                    <li>
Lines 132-140 function CheckForm() { Link Here
132
121
133
            </fieldset>
122
            </fieldset>
134
123
135
            <input type="submit" class="btn" value="Save" />
124
            <fieldset class="action">
136
125
                <input type="submit" class="btn" value="Save" />
137
            <a href="clubs.pl" class="cancel">Cancel</a>
126
                <a href="clubs.pl" class="cancel">Cancel</a>
127
            </fieldset>
138
        </form>
128
        </form>
139
    </div>
129
    </div>
140
</div>
130
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt (-130 / +158 lines)
Lines 11-30 Link Here
11
//<![CDATA[
11
//<![CDATA[
12
    $(document).ready(function() {
12
    $(document).ready(function() {
13
        tTable = $('#club-templates-table').dataTable($.extend(true, {}, dataTablesDefaults, {
13
        tTable = $('#club-templates-table').dataTable($.extend(true, {}, dataTablesDefaults, {
14
            "sPaginationType": "four_button",
15
            "sDom": 'C<"top pager"ilpf><"#filter_c">tr<"bottom pager"ip>',
14
            "aoColumnDefs": [
16
            "aoColumnDefs": [
15
                { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
17
                    { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
16
            ]
18
            ]
17
        } ));
19
        } ));
18
20
19
        cTable = $('#clubs-table').dataTable($.extend(true, {}, dataTablesDefaults, {
21
        cTable = $('#clubs-table').dataTable($.extend(true, {}, dataTablesDefaults, {
22
            "sPaginationType": "four_button",
23
            "sDom": 'C<"top pager"ilpf><"#filter_c">tr<"bottom pager"ip>',
20
            "aoColumnDefs": [
24
            "aoColumnDefs": [
21
                { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
25
                    { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
22
            ]
26
            ]
23
        } ));
27
        } ));
24
    });
28
    });
25
29
26
    function ConfirmDeleteTemplate( id, name, a ) {
30
    function ConfirmDeleteTemplate( id, name, a ) {
27
        if ( confirm( _("Are you sure you want to delete the club template") + name + "?" ) ) {
31
        if ( confirm( _("Are you sure you want to delete the club template %s?" ).format(name) ) ) {
28
            $.ajax({
32
            $.ajax({
29
                type: "POST",
33
                type: "POST",
30
                url: '/cgi-bin/koha/svc/club/template/delete',
34
                url: '/cgi-bin/koha/svc/club/template/delete',
Lines 42-48 Link Here
42
    }
46
    }
43
47
44
    function ConfirmDeleteClub( id, name, a ) {
48
    function ConfirmDeleteClub( id, name, a ) {
45
        if ( confirm( _("Are you sure you want to delete the club ") + name + "?" ) ) {
49
        if ( confirm( _("Are you sure you want to delete the club %s?" ).format(name) ) ) {
46
            $.ajax({
50
            $.ajax({
47
                type: "POST",
51
                type: "POST",
48
                url: '/cgi-bin/koha/svc/club/delete',
52
                url: '/cgi-bin/koha/svc/club/delete',
Lines 68-206 Link Here
68
[% INCLUDE 'cat-search.inc' %]
72
[% INCLUDE 'cat-search.inc' %]
69
<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; Patron clubs</div>
73
<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; Patron clubs</div>
70
74
71
<div class="yui-t7">
75
<div id="doc3" class="yui-t2">
72
    <div class="yui-main">
76
   <div id="bd">
73
        <h1>Patron clubs</h1>
77
        <div id="yui-main">
78
            <div class="yui-b">
79
                <h1>Patron clubs</h1>
74
80
81
                <h3>Club templates</h3>
75
82
76
        <h3>Club templates</h3>
83
                [% IF CAN_user_clubs_edit_templates %]
84
                    <div class="btn-toolbar">
85
                        <div class="btn-group">
86
                            <a class="btn" href="templates-add-modify.pl"><i class="fa fa-plus"></i> New club template</a>
87
                        </div>
88
                    </div>
89
                [% END %]
77
90
78
        [% IF CAN_user_clubs_edit_templates %]
91
                <table id="club-templates-table">
79
            <div class="btn-group">
92
                    <thead>
80
                <a class="btn" href="templates-add-modify.pl"><i class="fa fa-plus"></i> New club template</a>
93
                        <tr>
81
            </div>
94
                            <th>Name</th>
82
        [% END %]
95
                            <th>Description</th>
83
96
                            <th>Public enrollment</th>
84
        <table id="club-templates-table">
97
                            <th>Email required</th>
85
            <thead>
98
                            <th>Library</th>
86
                <tr>
99
                            <th>&nbsp;</th>
87
                    <th>Name</th>
100
                            <th>&nbsp;</th>
88
                    <th>Description</th>
101
                        </tr>
89
                    <th>Public enrollment</th>
102
                    </thead>
90
                    <th>Email required</th>
103
91
                    <th>Library</th>
104
                    <tbody>
92
                    <th>&nbsp;</th>
105
                        [% IF club_templates %]
93
                    <th>&nbsp;</th>
106
                            [% FOREACH t IN club_templates %]
94
                </tr>
107
                                <tr>
95
            </thead>
108
                                    <td>[% t.name %]</td>
96
109
                                    <td>[% t.description %]</td>
97
            <tbody>
110
                                    <td>
98
                [% FOREACH t IN club_templates %]
111
                                        [% IF t.is_enrollable_from_opac %]
99
                    <tr>
112
                                            Yes
100
                        <td>[% t.name %]</td>
113
                                        [% ELSE %]
101
                        <td>[% t.description %]</td>
114
                                            No
102
                        <td>
115
                                        [% END %]
103
                            [% IF t.is_enrollable_from_opac %]
116
                                    </td>
104
                                Yes
117
                                    <td>
105
                            [% ELSE %]
118
                                        [% IF t.is_email_required %]
106
                                No
119
                                            Yes
107
                            [% END %]
120
                                        [% ELSE %]
108
                        </td>
121
                                            No
109
                        <td>
122
                                        [% END %]
110
                            [% IF t.is_email_required %]
123
                                    </td>
111
                                Yes
124
                                    <td>[% Branches.GetName( t.branchcode ) %]</td>
112
                            [% ELSE %]
125
                                    <td>
113
                                No
126
                                        [% IF CAN_user_clubs_edit_templates %]
114
                            [% END %]
127
                                            <a class="btn" style="white-space:nowrap"  href="templates-add-modify.pl?id=[% t.id %]">
115
                        </td>
128
                                                <i class="fa fa-edit"></i> Edit
116
                        <td>[% Branches.GetName( t.branchcode ) %]</td>
129
                                            </a>
117
                        <td>
130
                                        [% END %]
118
                            [% IF CAN_user_clubs_edit_templates %]
131
                                    </td>
119
                                <a class="btn" style="white-space:nowrap"  href="templates-add-modify.pl?id=[% t.id %]">
132
                                    <td>
120
                                    <i class="fa fa-edit"></i> Edit
133
                                        [% IF CAN_user_clubs_edit_templates %]
121
                                </a>
134
                                            <a class="btn" href="#" onclick='ConfirmDeleteTemplate([% t.id %], "[% t.name | html %]", $(this) ); return false;'>
135
                                                <i class="fa fa-trash"></i> Delete
136
                                            </a>
137
                                        [% END %]
138
                                    </td>
139
                                </tr>
122
                            [% END %]
140
                            [% END %]
123
                        </td>
141
                        [% ELSE %]
124
                        <td>
142
                            <tr>
125
                            [% IF CAN_user_clubs_edit_templates %]
143
                                <td colspan="7">
126
                                <a class="btn" href="#" onclick='ConfirmDeleteTemplate([% t.id %], "[% t.name | html %]", $(this) ); return false;'>
144
                                    No club templates defined.
127
                                    <i class="fa fa-trash"></i> Delete
145
                                </td>
128
                                </a>
146
                            </td>
129
                            [% END %]
147
                        [% END %]
130
                        </td>
148
                    </tbody>
131
                    </tr>
149
                </table>
150
151
                <h3>Clubs</h3>
152
153
                [% IF CAN_user_clubs_edit_clubs %]
154
                    <div class="btn-toolbar">
155
                        <div class="btn-group">
156
                            <button class="btn dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> New club <span class="caret"></span></button>
157
                            <ul class="dropdown-menu">
158
                                [% FOREACH t IN club_templates %]
159
                                    <li><a href="/cgi-bin/koha/clubs/clubs-add-modify.pl?club_template_id=[% t.id %]">[% t.name %]</a></li>
160
                                [% END %]
161
                            </ul>
162
                        </div>
163
                    </div>
132
                [% END %]
164
                [% END %]
133
            </tbody>
165
134
        </table>
166
                <table id="clubs-table">
135
167
                    <thead>
136
        <h3>Clubs</h3>
168
                        <tr>
137
169
                            <th>Name</th>
138
        [% IF CAN_user_clubs_edit_clubs %]
170
                            <th>Template</th>
139
            <div class="btn-group">
171
                            <th>Description</th>
140
                <div class="btn-group">
172
                            <th>Public enrollment</th>
141
                    <button class="btn dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> New club <span class="caret"></span></button>
173
                            <th>Email required</th>
142
                    <ul class="dropdown-menu">
174
                            <th>Library</th>
143
                        [% FOREACH t IN club_templates %]
175
                            <th>&nbsp;</th>
144
                            <li><a href="/cgi-bin/koha/clubs/clubs-add-modify.pl?club_template_id=[% t.id %]">[% t.name %]</a></li>
176
                            <th>&nbsp;</th>
177
                        </tr>
178
                    </thead>
179
180
                    <tbody>
181
                        [% IF clubs %]
182
                            [% FOREACH c IN clubs %]
183
                                <tr>
184
                                    <td>[% c.name %]</td>
185
                                    <td>[% c.club_template.name %]</td>
186
                                    <td>[% c.description %]</td>
187
                                    <td>
188
                                        [% IF c.club_template.is_enrollable_from_opac %]
189
                                            Yes
190
                                        [% ELSE %]
191
                                            No
192
                                        [% END %]
193
                                    </td>
194
                                    <td>
195
                                        [% IF c.club_template.is_email_required %]
196
                                            Yes
197
                                        [% ELSE %]
198
                                            No
199
                                        [% END %]
200
                                    </td>
201
                                    <td>[% Branches.GetName( c.branchcode ) %]</td>
202
                                    <td>
203
                                        [% IF CAN_user_clubs_edit_clubs %]
204
                                            <a class="btn" style="white-space:nowrap" href="clubs-add-modify.pl?id=[% c.id %]">
205
                                                <i class="fa fa-edit"></i> Edit
206
                                            </a>
207
                                        [% END %]
208
                                    </td>
209
                                    <td>
210
                                        [% IF CAN_user_clubs_edit_clubs %]
211
                                            <a class="btn" href="#" onclick='ConfirmDeleteClub([% c.id %], "[% c.name | html %]", $(this) ); return false;'>
212
                                                <i class="fa fa-trash"></i> Delete
213
                                            </a>
214
                                        [% END %]
215
                                    </td>
216
                                </tr>
217
                            [% END %]
218
                        [% ELSE %]
219
                            <tr>
220
                                <td colspan="8">
221
                                    No club templates defined.
222
                                </td>
223
                            </td>
145
                        [% END %]
224
                        [% END %]
146
                    </ul>
225
                    </tbody>
147
                </div>
226
                </table>
148
            </div>
227
            </div>
149
        [% END %]
228
        </div>
150
229
        <div class="yui-b noprint">
151
        <table id="clubs-table">
230
            [% INCLUDE 'tools-menu.inc' %]
152
            <thead>
231
        </div>
153
                <tr>
154
                    <th>Name</th>
155
                    <th>Template</th>
156
                    <th>Description</th>
157
                    <th>Public enrollment</th>
158
                    <th>Email required</th>
159
                    <th>Library</th>
160
                    <th>&nbsp;</th>
161
                    <th>&nbsp;</th>
162
                </tr>
163
            </thead>
164
165
            <tbody>
166
                [% FOREACH c IN clubs %]
167
                    <tr>
168
                        <td>[% c.name %]</td>
169
                        <td>[% c.club_template.name %]</td>
170
                        <td>[% c.description %]</td>
171
                        <td>
172
                            [% IF c.club_template.is_enrollable_from_opac %]
173
                                Yes
174
                            [% ELSE %]
175
                                No
176
                            [% END %]
177
                        </td>
178
                        <td>
179
                            [% IF c.club_template.is_email_required %]
180
                                Yes
181
                            [% ELSE %]
182
                                No
183
                            [% END %]
184
                        </td>
185
                        <td>[% Branches.GetName( c.branchcode ) %]</td>
186
                        <td>
187
                            [% IF CAN_user_clubs_edit_clubs %]
188
                                <a class="btn" style="white-space:nowrap" href="clubs-add-modify.pl?id=[% c.id %]">
189
                                    <i class="fa fa-edit"></i> Edit
190
                                </a>
191
                            [% END %]
192
                        </td>
193
                        <td>
194
                            [% IF CAN_user_clubs_edit_clubs %]
195
                                <a class="btn" href="#" onclick='ConfirmDeleteClub([% c.id %], "[% c.name | html %]", $(this) ); return false;'>
196
                                    <i class="fa fa-trash"></i> Delete
197
                                </a>
198
                            [% END %]
199
                        </td>
200
                    </tr>
201
                [% END %]
202
            </tbody>
203
        </table>
204
    </div>
232
    </div>
205
</div>
233
</div>
206
[% INCLUDE 'intranet-bottom.inc' %]
234
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/templates-add-modify.tt (-31 / +20 lines)
Lines 4-25 Link Here
4
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Tools &rsaquo; Patron clubs &rsaquo; Club template</title>
5
<title>Koha &rsaquo; Tools &rsaquo; Patron clubs &rsaquo; Club template</title>
6
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
7
8
<script type="text/javascript">
9
//<![CDATA[
10
11
function CheckForm() {
12
  if ( !$("#club-template-name").val() ) {
13
    alert( _("Name is a required field!")  );
14
    return false;
15
  }
16
17
  return true;
18
}
19
20
//]]>
21
</script>
22
23
</head>
7
</head>
24
8
25
<body id="clubs_templates_add_modify" class="clubs">
9
<body id="clubs_templates_add_modify" class="clubs">
Lines 36-42 function CheckForm() { Link Here
36
            </div>
20
            </div>
37
        [% END %]
21
        [% END %]
38
22
39
        <form method="post" onsubmit="return CheckForm()">
23
        <form method="post" class="validated">
40
            <input type="hidden" name="id" value="[% club_template.id %]" />
24
            <input type="hidden" name="id" value="[% club_template.id %]" />
41
25
42
            <fieldset class="rows">
26
            <fieldset class="rows">
Lines 52-58 function CheckForm() { Link Here
52
                <ol>
36
                <ol>
53
                    <li>
37
                    <li>
54
                        <label class="required" for="name">Name:</label>
38
                        <label class="required" for="name">Name:</label>
55
                        <input id="club-template-name" name="name" type="text" value="[% club_template.name %]" />
39
                        <input id="club-template-name" name="name" type="text" value="[% club_template.name %]" required="required"/>
40
                        <span class="required">Required</span>
56
                    </li>
41
                    </li>
57
42
58
                    <li>
43
                    <li>
Lines 98-104 function CheckForm() { Link Here
98
                </ol>
83
                </ol>
99
84
100
                <h2>Club fields:</h2>
85
                <h2>Club fields:</h2>
101
                <span class="hint">These fields will be used in the creation of clubs based on this template</span>
86
                <p><span class="hint">These fields will be used in the creation of clubs based on this template</span></p>
102
                <span id="club-template-fields">
87
                <span id="club-template-fields">
103
                    [% FOREACH f IN club_template.club_template_fields %]
88
                    [% FOREACH f IN club_template.club_template_fields %]
104
                        <ul>
89
                        <ul>
Lines 136-147 function CheckForm() { Link Here
136
                        </ul>
121
                        </ul>
137
                    [% END %]
122
                    [% END %]
138
                </span>
123
                </span>
139
                <a href="#" class="btn" onclick="$('#new-field-template').clone().attr('id','').show().appendTo('#club-template-fields'); return false;">
124
                <div class="btn-toolbar">
140
                    Add new field
125
                    <a href="#" class="btn" onclick="$('#new-field-template').clone().attr('id','').show().appendTo('#club-template-fields'); return false;">
141
                </a>
126
                        <i class="fa fa-plus"></i> Add new field
127
                    </a>
128
                </div>
142
129
143
                <h2>Enrollment fields:</h2>
130
                <h2>Enrollment fields:</h2>
144
                <span class="hint">These fields will be used when enrolling a patron in a club based on this template</span>
131
                <p><span class="hint">These fields will be used when enrolling a patron in a club based on this template</span></p>
145
                <span id="club-template-enrollment-fields">
132
                <span id="club-template-enrollment-fields">
146
                    [% FOREACH f IN club_template.club_template_enrollment_fields %]
133
                    [% FOREACH f IN club_template.club_template_enrollment_fields %]
147
                        <ul>
134
                        <ul>
Lines 179-195 function CheckForm() { Link Here
179
                        </ul>
166
                        </ul>
180
                    [% END %]
167
                    [% END %]
181
                </span>
168
                </span>
182
                <a href="#" class="btn" onclick="$('#new-enrollment-field-template').clone().attr('id','').show().appendTo('#club-template-enrollment-fields'); return false;">
169
                <div class="btn-toolbar">
183
                    Add new field
170
                    <a href="#" class="btn" onclick="$('#new-enrollment-field-template').clone().attr('id','').show().appendTo('#club-template-enrollment-fields'); return false;">
184
                </a>
171
                        <i class="fa fa-plus"></i> Add new field
172
                    </a>
173
                </div>
185
174
186
            </fieldset>
175
            </fieldset>
187
176
188
            <input type="hidden" name="id" value="[% club_template.id %]" />
177
            <fieldset class="action">
189
178
                <input type="hidden" name="id" value="[% club_template.id %]" />
190
            <input type="submit" class="btn" value="Save" />
179
                <input type="submit" class="btn" value="Save" />
191
180
                <a href="clubs.pl" class="cancel">Cancel</a>
192
            <a href="clubs.pl" class="cancel">Cancel</a>
181
            </fieldset>
193
        </form>
182
        </form>
194
    </div>
183
    </div>
195
</div>
184
</div>
(-)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" onclick="addEnrollment(); return false;"><i class="icon-plus"></i> Enroll</a>
31
                    <a href="#" class="btn" onclick="addEnrollment(); return false;"><i class="fa fa-plus"></i> Enroll</a>
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 12461