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 |
- |
|
|