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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/club-enrollments.tt (-5 / +6 lines)
Lines 1-10 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% USE Branches %]
4
[% USE Branches %]
4
[% USE Koha %]
5
[% USE Koha %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Koha &rsaquo; Tools &rsaquo; Patron clubs &rsaquo; Club enrollments</title>
8
<title>[% t('Koha › Tools › Patron clubs › Club enrollments') %]</title>
8
[% INCLUDE 'doc-head-close.inc' %]
9
[% INCLUDE 'doc-head-close.inc' %]
9
[% Asset.css("css/datatables.css") %]
10
[% Asset.css("css/datatables.css") %]
10
</head>
11
</head>
Lines 12-30 Link Here
12
<body id="club_enrollments" class="clubs">
13
<body id="club_enrollments" class="clubs">
13
[% INCLUDE 'header.inc' %]
14
[% INCLUDE 'header.inc' %]
14
[% INCLUDE 'cat-search.inc' %]
15
[% INCLUDE 'cat-search.inc' %]
15
<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; Club enrollments</div>
16
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> › <a href="clubs.pl">[% t('Patron clubs') %]</a> [% t('› Club enrollments') %]</div>
16
17
17
<div id="doc3" class="yui-t2">
18
<div id="doc3" class="yui-t2">
18
   <div id="bd">
19
   <div id="bd">
19
        <div id="yui-main">
20
        <div id="yui-main">
20
            <div class="yui-b">
21
            <div class="yui-b">
21
                <h1>Club enrollments for <i>[% club.name %]</i></h1>
22
                <h1>[% t('Club enrollments for') %] <i>[% club.name %]</i></h1>
22
23
23
                <table id="enrollments-table">
24
                <table id="enrollments-table">
24
                    <thead>
25
                    <thead>
25
                        <tr>
26
                        <tr>
26
                            <th>Name</th>
27
                            <th>[% t('Name') %]</th>
27
                            <th>Card number</th>
28
                            <th>[% t('Card number') %]</th>
28
                        </tr>
29
                        </tr>
29
                    </thead>
30
                    </thead>
30
31
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs-add-modify.tt (-17 / +18 lines)
Lines 1-14 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE KohaDates %]
2
[% USE KohaDates %]
2
[% USE Branches %]
3
[% USE Branches %]
3
[% USE AuthorisedValues %]
4
[% USE AuthorisedValues %]
4
[% SET AuthorisedValuesCategories = AuthorisedValues.GetCategories %]
5
[% SET AuthorisedValuesCategories = AuthorisedValues.GetCategories %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Koha &rsaquo; Tools &rsaquo; Patron clubs &rsaquo;
8
<title>[% t('Koha › Tools › Patron clubs ›') %]
8
    [% IF club %]
9
    [% IF club %]
9
        Modify club [% club.name %]
10
        [% t('Modify club') %] [% club.name %]
10
    [% ELSE %]
11
    [% ELSE %]
11
        Create a new [% club_template.name %] club
12
        [% t('Create a new') %] [% club_template.name %] [% t('club') %]
12
    [% END %]
13
    [% END %]
13
</title>
14
</title>
14
[% INCLUDE 'doc-head-close.inc' %]
15
[% INCLUDE 'doc-head-close.inc' %]
Lines 17-27 Link Here
17
<body id="clubs_add_modify" class="clubs">
18
<body id="clubs_add_modify" class="clubs">
18
[% INCLUDE 'header.inc' %]
19
[% INCLUDE 'header.inc' %]
19
[% INCLUDE 'cat-search.inc' %]
20
[% INCLUDE 'cat-search.inc' %]
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;
21
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> › <a href="clubs.pl">[% t('Patron clubs') %]</a> ›
21
    [% IF club %]
22
    [% IF club %]
22
        Modify club <i>[% club.name %]</i>
23
        [% t('Modify club') %] <i>[% club.name %]</i>
23
    [% ELSE %]
24
    [% ELSE %]
24
        Create a new <i>[% club_template.name %]</i> club
25
        [% t('Create a new') %] <i>[% club_template.name %]</i> [% t('club') %]
25
    [% END %]
26
    [% END %]
26
</div>
27
</div>
27
28
Lines 37-72 Link Here
37
38
38
                    <legend>
39
                    <legend>
39
                        [% IF club %]
40
                        [% IF club %]
40
                            Modify club <i>[% club.name %]</i>
41
                            [% t('Modify club') %] <i>[% club.name %]</i>
41
                        [% ELSE %]
42
                        [% ELSE %]
42
                            Create a new <i>[% club_template.name %]</i> club
43
                            [% t('Create a new') %] <i>[% club_template.name %]</i> [% t('club') %]
43
                        [% END %]
44
                        [% END %]
44
                    </legend>
45
                    </legend>
45
46
46
                    <ol>
47
                    <ol>
47
                        <li>
48
                        <li>
48
                            <label class="required" for="club-name">Name:</label>
49
                            <label class="required" for="club-name">[% t('Name:') %]</label>
49
                            <input id="club-name" name="name" type="text" value="[% club.name %]" required="required"/>
50
                            <input id="club-name" name="name" type="text" value="[% club.name %]" required="required" />
50
                            <span class="required">Required</span>
51
                            <span class="required">[% t('Required') %]</span>
51
                        </li>
52
                        </li>
52
53
53
                        <li>
54
                        <li>
54
                            <label for="club-template-name">Description:</label>
55
                            <label for="club-template-name">[% t('Description:') %]</label>
55
                            <input id="club-template-name" name="description" type="text" value="[% club.description %]" size="40" />
56
                            <input id="club-template-name" name="description" type="text" value="[% club.description %]" size="40" />
56
                        </li>
57
                        </li>
57
58
58
                        <li>
59
                        <li>
59
                            <label for="from">Start date:</label>
60
                            <label for="from">[% t('Start date:') %]</label>
60
                            <input name="date_start" id="from" size="10" readonly="readonly" class="datepickerfrom" value="[% club.date_start | $KohaDates %]">
61
                            <input name="date_start" id="from" size="10" readonly="readonly" class="datepickerfrom" value="[% club.date_start | $KohaDates %]">
61
                        </li>
62
                        </li>
62
63
63
                        <li>
64
                        <li>
64
                            <label for="to">End date:</label>
65
                            <label for="to">[% t('End date:') %]</label>
65
                            <input name="date_end" id="to" size="10" readonly="readonly" class="datepickerto" value="[% club.date_end | $KohaDates %]" >
66
                            <input name="date_end" id="to" size="10" readonly="readonly" class="datepickerto" value="[% club.date_end | $KohaDates %]">
66
                        </li>
67
                        </li>
67
68
68
                        <li>
69
                        <li>
69
                            <label for="club-template-branchcode">Library:</label>
70
                            <label for="club-template-branchcode">[% t('Library:') %]</label>
70
                            <select name="branchcode" id="club-template-branchcode">
71
                            <select name="branchcode" id="club-template-branchcode">
71
                                <option value=""></option>
72
                                <option value=""></option>
72
                                [% PROCESS options_for_libraries libraries => Branches.all( selected => club.branch.branchcode ) %]
73
                                [% PROCESS options_for_libraries libraries => Branches.all( selected => club.branch.branchcode ) %]
Lines 120-126 Link Here
120
121
121
                <fieldset class="action">
122
                <fieldset class="action">
122
                    <input type="submit" value="Save" />
123
                    <input type="submit" value="Save" />
123
                    <a href="clubs.pl" class="cancel">Cancel</a>
124
                    <a href="clubs.pl" class="cancel">[% t('Cancel') %]</a>
124
                </fieldset>
125
                </fieldset>
125
            </form>
126
            </form>
126
        </div>
127
        </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt (-49 / +50 lines)
Lines 1-10 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% USE Branches %]
4
[% USE Branches %]
4
[% USE Koha %]
5
[% USE Koha %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Koha &rsaquo; Tools &rsaquo; Patron clubs</title>
8
<title>[% t('Koha › Tools › Patron clubs') %]</title>
8
[% INCLUDE 'doc-head-close.inc' %]
9
[% INCLUDE 'doc-head-close.inc' %]
9
10
10
[% Asset.css("css/datatables.css") %]
11
[% Asset.css("css/datatables.css") %]
Lines 13-50 Link Here
13
<body id="clubs_clubs" class="clubs">
14
<body id="clubs_clubs" class="clubs">
14
[% INCLUDE 'header.inc' %]
15
[% INCLUDE 'header.inc' %]
15
[% INCLUDE 'cat-search.inc' %]
16
[% INCLUDE 'cat-search.inc' %]
16
<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>
17
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> [% t('› Patron clubs') %]</div>
17
18
18
<div id="doc3" class="yui-t2">
19
<div id="doc3" class="yui-t2">
19
   <div id="bd">
20
   <div id="bd">
20
        <div id="yui-main">
21
        <div id="yui-main">
21
            <div class="yui-b">
22
            <div class="yui-b">
22
                <h1>Patron clubs</h1>
23
                <h1>[% t('Patron clubs') %]</h1>
23
24
24
                [% IF club_template %]
25
                [% IF club_template %]
25
                    <div class="dialog message">
26
                    <div class="dialog message">
26
                        [% IF stored == 'updated' %]
27
                        [% IF stored == 'updated' %]
27
                            <p>Club template <i>[% club_template.name %]</i> was updated.</p>
28
                            <p>[% t('Club template') %] <i>[% club_template.name %]</i> [% t('was updated.') %]</p>
28
                        [% ELSE %]
29
                        [% ELSE %]
29
                            <p>Club template <i>[% club_template.name %]</i> was saved.</p>
30
                            <p>[% t('Club template') %] <i>[% club_template.name %]</i> [% t('was saved.') %]</p>
30
                        [% END %]
31
                        [% END %]
31
                    </div>
32
                    </div>
32
                [% ELSIF club %]
33
                [% ELSIF club %]
33
                    <div class="dialog message">
34
                    <div class="dialog message">
34
                        [% IF stored == 'updated' %]
35
                        [% IF stored == 'updated' %]
35
                            <p>Club <i>[% club.name %]</i> was updated.</p>
36
                            <p>[% t('Club') %] <i>[% club.name %]</i> [% t('was updated.') %]</p>
36
                        [% ELSE %]
37
                        [% ELSE %]
37
                            <p>Club <i>[% club.name %]</i> was saved.</p>
38
                            <p>[% t('Club') %] <i>[% club.name %]</i> [% t('was saved.') %]</p>
38
                        [% END %]
39
                        [% END %]
39
                    </div>
40
                    </div>
40
                [% END %]
41
                [% END %]
41
42
42
                <h3>Club templates</h3>
43
                <h3>[% t('Club templates') %]</h3>
43
44
44
                [% IF CAN_user_clubs_edit_templates %]
45
                [% IF CAN_user_clubs_edit_templates %]
45
                    <div class="btn-toolbar">
46
                    <div class="btn-toolbar">
46
                        <div class="btn-group">
47
                        <div class="btn-group">
47
                            <a class="btn btn-sm btn-default" href="templates-add-modify.pl"><i class="fa fa-plus"></i> New club template</a>
48
                            <a class="btn btn-sm btn-default" href="templates-add-modify.pl"><i class="fa fa-plus"></i> [% t('New club template') %]</a>
48
                        </div>
49
                        </div>
49
                    </div>
50
                    </div>
50
                [% END %]
51
                [% END %]
Lines 53-64 Link Here
53
                    <table id="club-templates-table">
54
                    <table id="club-templates-table">
54
                        <thead>
55
                        <thead>
55
                            <tr>
56
                            <tr>
56
                                <th>Name</th>
57
                                <th>[% t('Name') %]</th>
57
                                <th>Description</th>
58
                                <th>[% t('Description') %]</th>
58
                                <th>Public enrollment</th>
59
                                <th>[% t('Public enrollment') %]</th>
59
                                <th>Email required</th>
60
                                <th>[% t('Email required') %]</th>
60
                                <th>Library</th>
61
                                <th>[% t('Library') %]</th>
61
                                <th>Actions</th>
62
                                <th>[% t('Actions') %]</th>
62
                            </tr>
63
                            </tr>
63
                        </thead>
64
                        </thead>
64
                        <tbody>
65
                        <tbody>
Lines 68-93 Link Here
68
                                    <td>[% t.description %]</td>
69
                                    <td>[% t.description %]</td>
69
                                    <td>
70
                                    <td>
70
                                        [% IF t.is_enrollable_from_opac %]
71
                                        [% IF t.is_enrollable_from_opac %]
71
                                            Yes
72
                                            [% t('Yes') %]
72
                                        [% ELSE %]
73
                                        [% ELSE %]
73
                                            No
74
                                            [% t('No') %]
74
                                        [% END %]
75
                                        [% END %]
75
                                    </td>
76
                                    </td>
76
                                    <td>
77
                                    <td>
77
                                        [% IF t.is_email_required %]
78
                                        [% IF t.is_email_required %]
78
                                            Yes
79
                                            [% t('Yes') %]
79
                                        [% ELSE %]
80
                                        [% ELSE %]
80
                                            No
81
                                            [% t('No') %]
81
                                        [% END %]
82
                                        [% END %]
82
                                    </td>
83
                                    </td>
83
                                    <td>[% Branches.GetName( t.branchcode ) %]</td>
84
                                    <td>[% Branches.GetName( t.branchcode ) %]</td>
84
                                    <td class="actions">
85
                                    <td class="actions">
85
                                        [% IF CAN_user_clubs_edit_templates %]
86
                                        [% IF CAN_user_clubs_edit_templates %]
86
                                            <a class="btn btn-xs btn-default" style="white-space:nowrap"  href="/cgi-bin/koha/clubs/templates-add-modify.pl?id=[% t.id %]">
87
                                            <a class="btn btn-xs btn-default" style="white-space:nowrap" href="/cgi-bin/koha/clubs/templates-add-modify.pl?id=[% t.id %]">
87
                                                <i class="fa fa-pencil"></i> Edit
88
                                                <i class="fa fa-pencil"></i> [% t('Edit') %]
88
                                            </a>
89
                                            </a>
89
                                            <a class="btn btn-xs btn-default" href="#" onclick='ConfirmDeleteTemplate([% t.id %], "[% t.name | html %]", $(this) ); return false;'>
90
                                            <a class="btn btn-xs btn-default" href="#" onclick="ConfirmDeleteTemplate([% t.id %], "[% t.name | html %]", $(this) ); return false;">
90
                                                <i class="fa fa-trash"></i> Delete
91
                                                <i class="fa fa-trash"></i> [% t('Delete') %]
91
                                            </a>
92
                                            </a>
92
                                        [% END %]
93
                                        [% END %]
93
                                    </td>
94
                                    </td>
Lines 96-113 Link Here
96
                        </tbody>
97
                        </tbody>
97
                    </table>
98
                    </table>
98
                [% ELSE %]
99
                [% ELSE %]
99
                    <div class="dialog message">No club templates defined.</div>
100
                    <div class="dialog message">[% t('No club templates defined.') %]</div>
100
                [% END %]
101
                [% END %]
101
102
102
                <h3>Clubs</h3>
103
                <h3>[% t('Clubs') %]</h3>
103
104
104
                [% IF CAN_user_clubs_edit_clubs %]
105
                [% IF CAN_user_clubs_edit_clubs %]
105
                    <div class="btn-toolbar">
106
                    <div class="btn-toolbar">
106
                        <div class="btn-group">
107
                        <div class="btn-group">
107
                            [% IF club_templates %]
108
                            [% IF club_templates %]
108
                                <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>
109
                                <button class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> [% t('New club') %] <span class="caret"></span></button>
109
                            [% ELSE %]
110
                            [% ELSE %]
110
                                <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>
111
                                <button disabled="disabled" class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> [% t('New club') %] <span class="caret"></span></button>
111
                            [% END %]
112
                            [% END %]
112
                            <ul class="dropdown-menu">
113
                            <ul class="dropdown-menu">
113
                                [% FOREACH t IN club_templates %]
114
                                [% FOREACH t IN club_templates %]
Lines 122-137 Link Here
122
                    <table id="clubs-table">
123
                    <table id="clubs-table">
123
                        <thead>
124
                        <thead>
124
                            <tr>
125
                            <tr>
125
                                <th>Name</th>
126
                                <th>[% t('Name') %]</th>
126
                                <th>Template</th>
127
                                <th>[% t('Template') %]</th>
127
                                <th>Description</th>
128
                                <th>[% t('Description') %]</th>
128
                                <th>Public enrollment</th>
129
                                <th>[% t('Public enrollment') %]</th>
129
                                <th>Email required</th>
130
                                <th>[% t('Email required') %]</th>
130
                                <th>Library</th>
131
                                <th>[% t('Library') %]</th>
131
                                <th>Start date</th>
132
                                <th>[% t('Start date') %]</th>
132
                                <th>End date</th>
133
                                <th>[% t('End date') %]</th>
133
                                <th>Enrolled patrons</th>
134
                                <th>[% t('Enrolled patrons') %]</th>
134
                                <th>&nbsp;</th>
135
                                <th> </th>
135
                            </tr>
136
                            </tr>
136
                        </thead>
137
                        </thead>
137
                        <tbody>
138
                        <tbody>
Lines 142-157 Link Here
142
                                    <td>[% c.description %]</td>
143
                                    <td>[% c.description %]</td>
143
                                    <td>
144
                                    <td>
144
                                        [% IF c.club_template.is_enrollable_from_opac %]
145
                                        [% IF c.club_template.is_enrollable_from_opac %]
145
                                            Yes
146
                                            [% t('Yes') %]
146
                                        [% ELSE %]
147
                                        [% ELSE %]
147
                                            No
148
                                            [% t('No') %]
148
                                        [% END %]
149
                                        [% END %]
149
                                    </td>
150
                                    </td>
150
                                    <td>
151
                                    <td>
151
                                        [% IF c.club_template.is_email_required %]
152
                                        [% IF c.club_template.is_email_required %]
152
                                            Yes
153
                                            [% t('Yes') %]
153
                                        [% ELSE %]
154
                                        [% ELSE %]
154
                                            No
155
                                            [% t('No') %]
155
                                        [% END %]
156
                                        [% END %]
156
                                    </td>
157
                                    </td>
157
                                    <td>[% Branches.GetName( c.branchcode ) %]</td>
158
                                    <td>[% Branches.GetName( c.branchcode ) %]</td>
Lines 171-201 Link Here
171
                                    <td class="actions">
172
                                    <td class="actions">
172
                                        <div class="dropdown">
173
                                        <div class="dropdown">
173
                                            <a class="btn btn-default btn-xs dropdown-toggle" id="clubactions[% c.id %]" role="button" data-toggle="dropdown" href="#">
174
                                            <a class="btn btn-default btn-xs dropdown-toggle" id="clubactions[% c.id %]" role="button" data-toggle="dropdown" href="#">
174
                                                Actions <b class="caret"></b>
175
                                                [% t('Actions') %] <b class="caret"></b>
175
                                            </a>
176
                                            </a>
176
                                            <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="clubactions[% c.id %]">
177
                                            <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="clubactions[% c.id %]">
177
                                                [% IF ( c.club_enrollments.count ) %]
178
                                                [% IF ( c.club_enrollments.count ) %]
178
                                                    <li>
179
                                                    <li>
179
                                                        <a href="club-enrollments.pl?id=[% c.id %]">
180
                                                        <a href="club-enrollments.pl?id=[% c.id %]">
180
                                                            <i class="fa fa-list-ul"></i> Enrollments
181
                                                            <i class="fa fa-list-ul"></i> [% t('Enrollments') %]
181
                                                        </a>
182
                                                        </a>
182
                                                    </li>
183
                                                    </li>
183
                                                [% ELSE %]
184
                                                [% ELSE %]
184
                                                    <li class="disabled">
185
                                                    <li class="disabled">
185
                                                        <a href="club-enrollments.pl?id=[% c.id %]">
186
                                                        <a href="club-enrollments.pl?id=[% c.id %]">
186
                                                            <i class="fa fa-list-ul"></i> Enrollments
187
                                                            <i class="fa fa-list-ul"></i> [% t('Enrollments') %]
187
                                                        </a>
188
                                                        </a>
188
                                                    </li>
189
                                                    </li>
189
                                                [% END %]
190
                                                [% END %]
190
                                                [% IF CAN_user_clubs_edit_clubs %]
191
                                                [% IF CAN_user_clubs_edit_clubs %]
191
                                                    <li>
192
                                                    <li>
192
                                                        <a href="clubs-add-modify.pl?id=[% c.id %]">
193
                                                        <a href="clubs-add-modify.pl?id=[% c.id %]">
193
                                                            <i class="fa fa-pencil"></i> Edit
194
                                                            <i class="fa fa-pencil"></i> [% t('Edit') %]
194
                                                        </a>
195
                                                        </a>
195
                                                    </li>
196
                                                    </li>
196
                                                    <li>
197
                                                    <li>
197
                                                        <a href="#" onclick='ConfirmDeleteClub([% c.id %], "[% c.name | html %]", $(this) ); return false;'>
198
                                                        <a href="#" onclick="ConfirmDeleteClub([% c.id %], "[% c.name | html %]", $(this) ); return false;">
198
                                                            <i class="fa fa-trash"></i> Delete
199
                                                            <i class="fa fa-trash"></i> [% t('Delete') %]
199
                                                        </a>
200
                                                        </a>
200
                                                    </li>
201
                                                    </li>
201
                                                [% END %]
202
                                                [% END %]
Lines 208-216 Link Here
208
                    </table> <!-- /.clubs-table -->
209
                    </table> <!-- /.clubs-table -->
209
                [% ELSE %]
210
                [% ELSE %]
210
                    [% IF club_templates %]
211
                    [% IF club_templates %]
211
                        <div class="dialog message">No clubs defined.</div>
212
                        <div class="dialog message">[% t('No clubs defined.') %]</div>
212
                    [% ELSE %]
213
                    [% ELSE %]
213
                        <div class="dialog message">No clubs defined. A club template must be defined before a club can be defined.</div>
214
                        <div class="dialog message">[% t('No clubs defined. A club template must be defined before a club can be defined.') %]</div>
214
                    [% END %]
215
                    [% END %]
215
                [% END %]
216
                [% END %]
216
            </div> <!-- /.yui-b -->
217
            </div> <!-- /.yui-b -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-clubs-tab.tt (-11 / +12 lines)
Lines 1-15 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE KohaDates %]
2
[% USE KohaDates %]
2
3
3
[% IF enrollments %]
4
[% IF enrollments %]
4
    <h4>Clubs currently enrolled in</h4>
5
    <h4>[% t('Clubs currently enrolled in') %]</h4>
5
6
6
    <table>
7
    <table>
7
        <thead>
8
        <thead>
8
            <tr>
9
            <tr>
9
                <th>Name</th>
10
                <th>[% t('Name') %]</th>
10
                <th>Description</th>
11
                <th>[% t('Description') %]</th>
11
                <th>Date enrolled</th>
12
                <th>[% t('Date enrolled') %]</th>
12
                [% IF CAN_user_clubs_enroll %]<th>&nbsp;</th>[% END %]
13
                [% IF CAN_user_clubs_enroll %]<th> </th>[% END %]
13
            </tr>
14
            </tr>
14
        </thead>
15
        </thead>
15
16
Lines 22-28 Link Here
22
                    [% IF CAN_user_clubs_enroll %]
23
                    [% IF CAN_user_clubs_enroll %]
23
                        <td>
24
                        <td>
24
                            <button class="btn btn-xs btn-default" onclick="cancelEnrollment( [% e.id %] )">
25
                            <button class="btn btn-xs btn-default" onclick="cancelEnrollment( [% e.id %] )">
25
                                <i class="fa fa-remove"></i> Cancel enrollment
26
                                <i class="fa fa-remove"></i> [% t('Cancel enrollment') %]
26
                            </button>
27
                            </button>
27
                        </td>
28
                        </td>
28
                    [% END %]
29
                    [% END %]
Lines 34-47 Link Here
34
35
35
[% IF clubs %]
36
[% IF clubs %]
36
37
37
    <h4>Clubs not enrolled in</h4>
38
    <h4>[% t('Clubs not enrolled in') %]</h4>
38
39
39
    <table>
40
    <table>
40
        <thead>
41
        <thead>
41
            <tr>
42
            <tr>
42
                <th>Name</th>
43
                <th>[% t('Name') %]</th>
43
                <th>Description</th>
44
                <th>[% t('Description') %]</th>
44
                [% IF CAN_user_clubs_enroll %]<th>&nbsp;</th>[% END %]
45
                [% IF CAN_user_clubs_enroll %]<th> </th>[% END %]
45
            </tr>
46
            </tr>
46
        </thead>
47
        </thead>
47
48
Lines 53-59 Link Here
53
                    [% IF CAN_user_clubs_enroll %]
54
                    [% IF CAN_user_clubs_enroll %]
54
                        <td class="action">
55
                        <td class="action">
55
                            <button class="btn btn-xs btn-default" onclick="loadEnrollmentForm([% c.id %])">
56
                            <button class="btn btn-xs btn-default" onclick="loadEnrollmentForm([% c.id %])">
56
                                <i class="fa fa-plus"></i> Enroll
57
                                <i class="fa fa-plus"></i> [% t('Enroll') %]
57
                            </button>
58
                            </button>
58
                        </td>
59
                        </td>
59
                    [% END %]
60
                    [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-enroll.tt (-3 / +4 lines)
Lines 1-8 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE AuthorisedValues %]
2
[% USE AuthorisedValues %]
2
[% SET AuthorisedValuesCategories = AuthorisedValues.GetCategories %]
3
[% SET AuthorisedValuesCategories = AuthorisedValues.GetCategories %]
3
4
4
<h3>
5
<h3>
5
    Enroll in <i>[% club.name %]</i>
6
    [% t('Enroll in') %] <i>[% club.name %]</i>
6
</h3>
7
</h3>
7
8
8
<div class="container">
9
<div class="container">
Lines 28-35 Link Here
28
                [% END %]
29
                [% END %]
29
30
30
                <li>
31
                <li>
31
                    <a href="#" class="btn btn-sm btn-default" onclick="addEnrollment(); return false;">Finish enrollment</a>
32
                    <a href="#" class="btn btn-sm btn-default" onclick="addEnrollment(); return false;">[% t('Finish enrollment') %]</a>
32
                    <a class="cancel" href="#" onclick="showClubs(); return false;">Cancel</a>
33
                    <a class="cancel" href="#" onclick="showClubs(); return false;">[% t('Cancel') %]</a>
33
                </li>
34
                </li>
34
            </ol>
35
            </ol>
35
        </fieldset>
36
        </fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/templates-add-modify.tt (-47 / +47 lines)
Lines 1-11 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Branches %]
2
[% USE Branches %]
2
[% USE AuthorisedValues %]
3
[% USE AuthorisedValues %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Tools &rsaquo; Patron clubs &rsaquo;
5
<title>[% t('Koha › Tools › Patron clubs ›') %]
5
    [% IF club_template %]
6
    [% IF club_template %]
6
        Modify club template [% club_template.name %]
7
        [% t('Modify club template') %] [% club_template.name %]
7
    [% ELSE %]
8
    [% ELSE %]
8
        Create a new club template
9
        [% t('Create a new club template') %]
9
    [% END %]
10
    [% END %]
10
</title>
11
</title>
11
[% INCLUDE 'doc-head-close.inc' %]
12
[% INCLUDE 'doc-head-close.inc' %]
Lines 20-30 Link Here
20
<body id="clubs_templates_add_modify" class="clubs">
21
<body id="clubs_templates_add_modify" class="clubs">
21
[% INCLUDE 'header.inc' %]
22
[% INCLUDE 'header.inc' %]
22
[% INCLUDE 'cat-search.inc' %]
23
[% INCLUDE 'cat-search.inc' %]
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;
24
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> › <a href="clubs.pl">[% t('Patron clubs') %]</a> ›
24
    [% IF club_template %]
25
    [% IF club_template %]
25
        Modify club template <i>[% club_template.name %]</i>
26
        [% t('Modify club template') %] <i>[% club_template.name %]</i>
26
    [% ELSE %]
27
    [% ELSE %]
27
        Create a new club template
28
        [% t('Create a new club template') %]
28
    [% END %]
29
    [% END %]
29
</div>
30
</div>
30
31
Lines 37-45 Link Here
37
38
38
                <h2>
39
                <h2>
39
                    [% IF club_template %]
40
                    [% IF club_template %]
40
                        Modify club template <i>[% club_template.name %]</i>
41
                        [% t('Modify club template') %] <i>[% club_template.name %]</i>
41
                    [% ELSE %]
42
                    [% ELSE %]
42
                        Create a new club template
43
                        [% t('Create a new club template') %]
43
                    [% END %]
44
                    [% END %]
44
                </h2>
45
                </h2>
45
46
Lines 47-114 Link Here
47
                <fieldset class="rows">
48
                <fieldset class="rows">
48
                    <ol>
49
                    <ol>
49
                        <li>
50
                        <li>
50
                            <label class="required" for="name">Name:</label>
51
                            <label class="required" for="name">[% t('Name:') %]</label>
51
                            <input id="club-template-name" name="name" type="text" value="[% club_template.name %]" required="required"/>
52
                            <input id="club-template-name" name="name" type="text" value="[% club_template.name %]" required="required" />
52
                            <span class="required">Required</span>
53
                            <span class="required">[% t('Required') %]</span>
53
                        </li>
54
                        </li>
54
55
55
                        <li>
56
                        <li>
56
                            <label for="club-template-description">Description:</label>
57
                            <label for="club-template-description">[% t('Description:') %]</label>
57
                            <input id="club-template-description" name="description" type="text" value="[% club_template.description %]" />
58
                            <input id="club-template-description" name="description" type="text" value="[% club_template.description %]" />
58
                        </li>
59
                        </li>
59
60
60
                        <li>
61
                        <li>
61
                            <label for="club-template-is-enrollable-from-opac">Allow public enrollment:</label>
62
                            <label for="club-template-is-enrollable-from-opac">[% t('Allow public enrollment:') %]</label>
62
                            [% IF club_template.is_enrollable_from_opac %]
63
                            [% IF club_template.is_enrollable_from_opac %]
63
                                <input type="checkbox" id="club-template-is-enrollable-from-opac" name="is_enrollable_from_opac" checked="checked" />
64
                                <input type="checkbox" id="club-template-is-enrollable-from-opac" name="is_enrollable_from_opac" checked="checked" />
64
                            [% ELSE %]
65
                            [% ELSE %]
65
                                <input type="checkbox" id="club-template-is-enrollable-from-opac" name="is_enrollable_from_opac" />
66
                                <input type="checkbox" id="club-template-is-enrollable-from-opac" name="is_enrollable_from_opac" />
66
                            [% END %]
67
                            [% END %]
67
                            <span class="hint">If a template allows public enrollment, patrons can enroll in a club based on this template from the public catalog.</span>
68
                            <span class="hint">[% t('If a template allows public enrollment, patrons can enroll in a club based on this template from the public catalog.') %]</span>
68
                        </li>
69
                        </li>
69
70
70
                        <li>
71
                        <li>
71
                            <label for="club-template-is-email-required">Require valid email address:</label>
72
                            <label for="club-template-is-email-required">[% t('Require valid email address:') %]</label>
72
                            [% IF club_template.is_email_required %]
73
                            [% IF club_template.is_email_required %]
73
                                <input type="checkbox" id="club-template-is-email-required" name="is_email_required" checked="checked" />
74
                                <input type="checkbox" id="club-template-is-email-required" name="is_email_required" checked="checked" />
74
                            [% ELSE %]
75
                            [% ELSE %]
75
                                <input type="checkbox" id="club-template-is-email-required" name="is_email_required" />
76
                                <input type="checkbox" id="club-template-is-email-required" name="is_email_required" />
76
                            [% END %]
77
                            [% END %]
77
                            <span class="hint">If set, a club based on this template can only be enrolled in by patrons with a valid email address.</span>
78
                            <span class="hint">[% t('If set, a club based on this template can only be enrolled in by patrons with a valid email address.') %]</span>
78
                        </li>
79
                        </li>
79
80
80
                        <li>
81
                        <li>
81
                            <label for="club-template-branchcode">Library:</label>
82
                            <label for="club-template-branchcode">[% t('Library:') %]</label>
82
                            <select name="branchcode" id="club-template-branchcode">
83
                            <select name="branchcode" id="club-template-branchcode">
83
                                <option value=""></option>
84
                                <option value=""></option>
84
                                [% PROCESS options_for_libraries libraries => Branches.all( selected => club_template.branchcode ) %]
85
                                [% PROCESS options_for_libraries libraries => Branches.all( selected => club_template.branchcode ) %]
85
                            </select>
86
                            </select>
86
                            <div class="hint">If set, only librarians logged in with this branch will be able to modify this club template.</div>
87
                            <div class="hint">[% t('If set, only librarians logged in with this branch will be able to modify this club template.') %]</div>
87
                        </li>
88
                        </li>
88
89
89
                    </ol>
90
                    </ol>
90
                </fieldset>
91
                </fieldset>
91
92
92
                <fieldset class="rows">
93
                <fieldset class="rows">
93
                    <legend>Club fields:</legend>
94
                    <legend>[% t('Club fields:') %]</legend>
94
                    <p><span class="hint">These fields will be used in the creation of clubs based on this template</span></p>
95
                    <p><span class="hint">[% t('These fields will be used in the creation of clubs based on this template') %]</span></p>
95
                    <div id="club-template-fields">
96
                    <div id="club-template-fields">
96
                        [% FOREACH f IN club_template.club_template_fields %]
97
                        [% FOREACH f IN club_template.club_template_fields %]
97
                            <div class="club-field">
98
                            <div class="club-field">
98
                                <ol class="clearfix">
99
                                <ol class="clearfix">
99
                                    <input type="hidden" name="club_template_field_id" value="[% f.id %]" />
100
                                    <input type="hidden" name="club_template_field_id" value="[% f.id %]" />
100
                                    <li>
101
                                    <li>
101
                                        <label for="field-name-[% f.id %]">Name:</label>
102
                                        <label for="field-name-[% f.id %]">[% t('Name:') %]</label>
102
                                        <input name="club_template_field_name" id="field-name-[% f.id %]" value="[% f.name %]" />
103
                                        <input name="club_template_field_name" id="field-name-[% f.id %]" value="[% f.name %]" />
103
                                    </li>
104
                                    </li>
104
105
105
                                    <li>
106
                                    <li>
106
                                        <label for="field-description-[% f.id %]">Description:</label>
107
                                        <label for="field-description-[% f.id %]">[% t('Description:') %]</label>
107
                                        <input name="club_template_field_description" id="field-description-[% f.id %]" value="[% f.description %]" />
108
                                        <input name="club_template_field_description" id="field-description-[% f.id %]" value="[% f.description %]" />
108
                                    </li>
109
                                    </li>
109
110
110
                                    <li>
111
                                    <li>
111
                                        <label for="field-authorised-value-category-[% f.id %]">Authorised value category:</label>
112
                                        <label for="field-authorised-value-category-[% f.id %]">[% t('Authorised value category:') %]</label>
112
                                        <select name="club_template_field_authorised_value_category" id="field-authorised-value-category-[% f.id %]">
113
                                        <select name="club_template_field_authorised_value_category" id="field-authorised-value-category-[% f.id %]">
113
                                            <option value=""></option>
114
                                            <option value=""></option>
114
                                            [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => f.authorised_value_category) %]
115
                                            [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => f.authorised_value_category) %]
Lines 116-122 Link Here
116
                                    </li>
117
                                    </li>
117
118
118
                                    <li>
119
                                    <li>
119
                                        <label for="field-delete-[% f.id %]">Delete field:</label>
120
                                        <label for="field-delete-[% f.id %]">[% t('Delete field:') %]</label>
120
                                        <input type="checkbox" name="club_template_field_delete" id="field-delete-[% f.id %]" value="[% f.id %]" />
121
                                        <input type="checkbox" name="club_template_field_delete" id="field-delete-[% f.id %]" value="[% f.id %]" />
121
                                    </li>
122
                                    </li>
122
                                </ol>
123
                                </ol>
Lines 125-159 Link Here
125
                    </div>
126
                    </div>
126
                    <fieldset class="action">
127
                    <fieldset class="action">
127
                        <a href="#" onclick="$('#new-field-template').clone().attr('id','').show().appendTo('#club-template-fields'); return false;">
128
                        <a href="#" onclick="$('#new-field-template').clone().attr('id','').show().appendTo('#club-template-fields'); return false;">
128
                            <i class="fa fa-plus"></i> Add new field
129
                            <i class="fa fa-plus"></i> [% t('Add new field') %]
129
                        </a>
130
                        </a>
130
                    </fieldset>
131
                    </fieldset>
131
                </fieldset>
132
                </fieldset>
132
133
133
                <fieldset class="rows">
134
                <fieldset class="rows">
134
                    <legend>Enrollment fields</legend>
135
                    <legend>[% t('Enrollment fields') %]</legend>
135
                    <p><span class="hint">These fields will be used when enrolling a patron in a club based on this template</span></p>
136
                    <p><span class="hint">[% t('These fields will be used when enrolling a patron in a club based on this template') %]</span></p>
136
                    <div id="club-template-enrollment-fields">
137
                    <div id="club-template-enrollment-fields">
137
                        [% FOREACH f IN club_template.club_template_enrollment_fields %]
138
                        [% FOREACH f IN club_template.club_template_enrollment_fields %]
138
                            <div class="enrollment-field">
139
                            <div class="enrollment-field">
139
                                <ol class="clearfix">
140
                                <ol class="clearfix">
140
                                    <li>
141
                                    <li>
141
                                        <span class="label">&nbsp;</span>
142
                                        <span class="label"> </span>
142
                                        <strong>Enrollment field</strong>
143
                                        <strong>[% t('Enrollment field') %]</strong>
143
                                    </li>
144
                                    </li>
144
                                    <li>
145
                                    <li>
145
                                        <input type="hidden" name="club_template_enrollment_field_id" value="[% f.id %]" />
146
                                        <input type="hidden" name="club_template_enrollment_field_id" value="[% f.id %]" />
146
                                        <label for="enrollment-field-name-[% f.id %]">Name:</label>
147
                                        <label for="enrollment-field-name-[% f.id %]">[% t('Name:') %]</label>
147
                                        <input name="club_template_enrollment_field_name" id="enrollment-field-name-[% f.id %]" value="[% f.name %]" size="40" />
148
                                        <input name="club_template_enrollment_field_name" id="enrollment-field-name-[% f.id %]" value="[% f.name %]" size="40" />
148
                                    </li>
149
                                    </li>
149
150
150
                                    <li>
151
                                    <li>
151
                                        <label for="enrollment-field-description-[% f.id %]">Description:</label>
152
                                        <label for="enrollment-field-description-[% f.id %]">[% t('Description:') %]</label>
152
                                        <input name="club_template_enrollment_field_description" id="enrollment-field-description-[% f.id %]" value="[% f.description %]" size="40" />
153
                                        <input name="club_template_enrollment_field_description" id="enrollment-field-description-[% f.id %]" value="[% f.description %]" size="40" />
153
                                    </li>
154
                                    </li>
154
155
155
                                    <li>
156
                                    <li>
156
                                        <label for="enrollment-field-authorised-value-category-[% f.id %]">Authorised value category:</label>
157
                                        <label for="enrollment-field-authorised-value-category-[% f.id %]">[% t('Authorised value category:') %]</label>
157
                                        <select name="club_template_enrollment_field_authorised_value_category" id="enrollment-field-authorised-value-category-[% f.id %]">
158
                                        <select name="club_template_enrollment_field_authorised_value_category" id="enrollment-field-authorised-value-category-[% f.id %]">
158
                                            <option value=""></option>
159
                                            <option value=""></option>
159
                                            [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => f.authorised_value_category) %]
160
                                            [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => f.authorised_value_category) %]
Lines 161-167 Link Here
161
                                    </li>
162
                                    </li>
162
163
163
                                    <li>
164
                                    <li>
164
                                        <label for="enrollment-field-delete-[% f.id %]">Delete field:</label>
165
                                        <label for="enrollment-field-delete-[% f.id %]">[% t('Delete field:') %]</label>
165
                                        <input type="checkbox" name="club_template_enrollment_field_delete" id="enrollment-field-delete-[% f.id %]" value="[% f.id %]" />
166
                                        <input type="checkbox" name="club_template_enrollment_field_delete" id="enrollment-field-delete-[% f.id %]" value="[% f.id %]" />
166
                                    </li>
167
                                    </li>
167
                                </ol>
168
                                </ol>
Lines 170-176 Link Here
170
                    </div>
171
                    </div>
171
                    <fieldset class="action">
172
                    <fieldset class="action">
172
                        <a href="#" onclick="$('#new-enrollment-field-template').clone().attr('id','').show().appendTo('#club-template-enrollment-fields'); return false;">
173
                        <a href="#" onclick="$('#new-enrollment-field-template').clone().attr('id','').show().appendTo('#club-template-enrollment-fields'); return false;">
173
                            <i class="fa fa-plus"></i> Add new field
174
                            <i class="fa fa-plus"></i> [% t('Add new field') %]
174
                        </a>
175
                        </a>
175
                    </fieldset>
176
                    </fieldset>
176
                </fieldset>
177
                </fieldset>
Lines 178-184 Link Here
178
                <fieldset class="action">
179
                <fieldset class="action">
179
                    <input type="hidden" name="id" value="[% club_template.id %]" />
180
                    <input type="hidden" name="id" value="[% club_template.id %]" />
180
                    <input type="submit" value="Save" />
181
                    <input type="submit" value="Save" />
181
                    <a href="clubs.pl" class="cancel">Cancel</a>
182
                    <a href="clubs.pl" class="cancel">[% t('Cancel') %]</a>
182
                </fieldset>
183
                </fieldset>
183
            </form>
184
            </form>
184
185
Lines 187-242 Link Here
187
188
188
189
189
<div id="new-field-template" class="club-field" style="display:none">
190
<div id="new-field-template" class="club-field" style="display:none">
190
    <h4 style="margin-left:1em;">New club field</h4>
191
    <h4 style="margin-left:1em;">[% t('New club field') %]</h4>
191
    <input type="hidden" name="club_template_field_id" value="" />
192
    <input type="hidden" name="club_template_field_id" value="" />
192
    <ol class="clearfix">
193
    <ol class="clearfix">
193
194
194
        <li>
195
        <li>
195
            <label for="club_template_field_name">Name:</label>
196
            <label for="club_template_field_name">[% t('Name:') %]</label>
196
            <input name="club_template_field_name" />
197
            <input name="club_template_field_name" />
197
        </li>
198
        </li>
198
199
199
        <li>
200
        <li>
200
            <label for="club_template_field_description">Description:</label>
201
            <label for="club_template_field_description">[% t('Description:') %]</label>
201
            <input name="club_template_field_description" />
202
            <input name="club_template_field_description" />
202
        </li>
203
        </li>
203
204
204
        <li>
205
        <li>
205
            <label for="club_template_field_authorised_value_category">Authorised value category:</label>
206
            <label for="club_template_field_authorised_value_category">[% t('Authorised value category:') %]</label>
206
            <select name="club_template_field_authorised_value_category">
207
            <select name="club_template_field_authorised_value_category">
207
                <option value=""></option>
208
                <option value=""></option>
208
                [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories() %]
209
                [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories() %]
209
            </select>
210
            </select>
210
        </li>
211
        </li>
211
    </ol>
212
    </ol>
212
    <fieldset class="action"><a href="#" onclick="$(this).parent().parent().remove(); return false;"><i class="fa fa-trash"></i> Delete field</a></fieldset>
213
    <fieldset class="action"><a href="#" onclick="$(this).parent().parent().remove(); return false;"><i class="fa fa-trash"></i> [% t('Delete field') %]</a></fieldset>
213
    <hr/>
214
    <hr />
214
</div>
215
</div>
215
216
216
<div id="new-enrollment-field-template" class="enrollment-field" style="display:none">
217
<div id="new-enrollment-field-template" class="enrollment-field" style="display:none">
217
    <h4 style="margin-left:1em;">New enrollment field</h4>
218
    <h4 style="margin-left:1em;">[% t('New enrollment field') %]</h4>
218
    <input type="hidden" name="club_template_enrollment_field_id" value="" />
219
    <input type="hidden" name="club_template_enrollment_field_id" value="" />
219
    <ol class="clearfix">
220
    <ol class="clearfix">
220
221
221
        <li>
222
        <li>
222
            <label for="club_template_enrollment_field_name">Name:</label>
223
            <label for="club_template_enrollment_field_name">[% t('Name:') %]</label>
223
            <input name="club_template_enrollment_field_name" />
224
            <input name="club_template_enrollment_field_name" />
224
        </li>
225
        </li>
225
226
226
        <li>
227
        <li>
227
            <label for="club_template_enrollment_field_description">Description:</label>
228
            <label for="club_template_enrollment_field_description">[% t('Description:') %]</label>
228
            <input name="club_template_enrollment_field_description" />
229
            <input name="club_template_enrollment_field_description" />
229
        </li>
230
        </li>
230
231
231
        <li>
232
        <li>
232
            <label for="club_template_enrollment_field_authorised_value_category">Authorised value category:</label>
233
            <label for="club_template_enrollment_field_authorised_value_category">[% t('Authorised value category:') %]</label>
233
            <select name="club_template_enrollment_field_authorised_value_category">
234
            <select name="club_template_enrollment_field_authorised_value_category">
234
                <option value=""></option>
235
                <option value=""></option>
235
                [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories() %]
236
                [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories() %]
236
            </select>
237
            </select>
237
        </li>
238
        </li>
238
    </ol>
239
    </ol>
239
    <fieldset class="action"><a href="#" onclick="$(this).parent().parent().remove(); return false;"><i class="fa fa-trash"></i> Delete field</a></fieldset>
240
    <fieldset class="action"><a href="#" onclick="$(this).parent().parent().remove(); return false;"><i class="fa fa-trash"></i> [% t('Delete field') %]</a></fieldset>
240
</div>
241
</div>
241
242
242
[% INCLUDE 'intranet-bottom.inc' %]
243
[% INCLUDE 'intranet-bottom.inc' %]
243
- 

Return to bug 20988