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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/club-enrollments.tt (-1 / +1 lines)
Lines 46-52 Link Here
46
                                <th>Name</th>
46
                                <th>Name</th>
47
                                <th>Card number</th>
47
                                <th>Card number</th>
48
                                [% FOREACH club_template_enrollment_field IN club.club_template.club_template_enrollment_fields %]
48
                                [% FOREACH club_template_enrollment_field IN club.club_template.club_template_enrollment_fields %]
49
                                    <th>[% club_template_enrollment_field.name %] </th>
49
                                    <th>[% club_template_enrollment_field.name | html %] </th>
50
                                [% END %]
50
                                [% END %]
51
                            </tr>
51
                            </tr>
52
                        </thead>
52
                        </thead>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-clubs-tab.tt (-1 / +1 lines)
Lines 21-27 Link Here
21
                    <td>[% e.date_enrolled | $KohaDates %]</td>
21
                    <td>[% e.date_enrolled | $KohaDates %]</td>
22
                    [% IF CAN_user_clubs_enroll %]
22
                    [% IF CAN_user_clubs_enroll %]
23
                        <td>
23
                        <td>
24
                            <button class="btn btn-xs btn-default" onclick="loadEnrollmentForm([% e.club.id %],[% e.id %])">
24
                            <button class="btn btn-xs btn-default" onclick="loadEnrollmentForm([% e.club.id | html %],[% e.id | html %])">
25
                                <i class="fa fa-edit"></i>Modify enrollment
25
                                <i class="fa fa-edit"></i>Modify enrollment
26
                            </button>
26
                            </button>
27
                            <button class="btn btn-xs btn-default" onclick="cancelEnrollment( [% e.id | html %] )">
27
                            <button class="btn btn-xs btn-default" onclick="cancelEnrollment( [% e.id | html %] )">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-enroll.tt (-8 / +11 lines)
Lines 16-32 Link Here
16
                    [% FOREACH c IN club_enrollment_fields %]
16
                    [% FOREACH c IN club_enrollment_fields %]
17
                        [% IF f.id == c.club_template_enrollment_field_id %]
17
                        [% IF f.id == c.club_template_enrollment_field_id %]
18
                            <li>
18
                            <li>
19
                                <label>[% f.name %]</label>
19
                                <label>[% f.name | html %]</label>
20
                                [% IF f.authorised_value_category %]
20
                                [% IF f.authorised_value_category %]
21
                                    <select name="[% f.id %]">
21
                                    <select name="[% f.id | html %]">
22
                                        [% FOREACH a IN AuthorisedValues.Get( f.authorised_value_category ) %]
22
                                        [% FOREACH a IN AuthorisedValues.Get( f.authorised_value_category ) %]
23
                                        <option value="[% a.authorised_value %]" [% IF a.authorised_value == c.value %]selected="selected"[% END %]>[% a.lib %]</option>
23
                                            [% IF a.authorised_value == c.value %]
24
                                                <option value="[% a.authorised_value | html %]" selected="selected">[% a.lib | html %]</option>
25
                                            [% ELSE %]
26
                                                <option value="[% a.authorised_value | html %]">[% a.lib | html %]</option>
27
                                            [% END %]
24
                                        [% END %]
28
                                        [% END %]
25
                                    </select>
29
                                    </select>
26
                                [% ELSE %]
30
                                [% ELSE %]
27
                                    <input type="text" name="[% f.id %]" value="[% c.value %]"/>
31
                                    <input type="text" name="[% f.id | html %]" value="[% c.value | html %]"/>
28
                                [% END %]
32
                                [% END %]
29
                                <span class="hint">[% f.description %]</span>
33
                                <span class="hint">[% f.description | html %]</span>
30
                            </li>
34
                            </li>
31
                        [% END %]
35
                        [% END %]
32
                    [% END %]
36
                    [% END %]
Lines 58-65 Link Here
58
</div>
62
</div>
59
63
60
<script>
64
<script>
61
if([% enrollent_id %]){
65
if([% enrollent_id | html %]){
62
    $("#heading").html(_("Modifying enrollment")+" <em>[% club.name %]</em>");
66
    $("#heading").html(_("Modifying enrollment")+" <em>[% club.name | html %]</em>");
63
}
67
}
64
function addEnrollment() {
68
function addEnrollment() {
65
    $("body").css("cursor", "progress");
69
    $("body").css("cursor", "progress");
66
- 

Return to bug 25079