Bug 25079: (QA follow-up) Fix TT issues

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Kyle M Hall 2023-05-30 13:42:16 -04:00 committed by Tomas Cohen Arazi
parent b6cd0ef0d2
commit 576dff0a13
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
3 changed files with 13 additions and 9 deletions

View File

@ -46,7 +46,7 @@
<th>Name</th>
<th>Card number</th>
[% FOREACH club_template_enrollment_field IN club.club_template.club_template_enrollment_fields %]
<th>[% club_template_enrollment_field.name %] </th>
<th>[% club_template_enrollment_field.name | html %] </th>
[% END %]
</tr>
</thead>

View File

@ -21,7 +21,7 @@
<td>[% e.date_enrolled | $KohaDates %]</td>
[% IF CAN_user_clubs_enroll %]
<td>
<button class="btn btn-xs btn-default" onclick="loadEnrollmentForm([% e.club.id %],[% e.id %])">
<button class="btn btn-xs btn-default" onclick="loadEnrollmentForm([% e.club.id | html %],[% e.id | html %])">
<i class="fa fa-edit"></i>Modify enrollment
</button>
<button class="btn btn-xs btn-default" onclick="cancelEnrollment( [% e.id | html %] )">

View File

@ -16,17 +16,21 @@
[% FOREACH c IN club_enrollment_fields %]
[% IF f.id == c.club_template_enrollment_field_id %]
<li>
<label>[% f.name %]</label>
<label>[% f.name | html %]</label>
[% IF f.authorised_value_category %]
<select name="[% f.id %]">
<select name="[% f.id | html %]">
[% FOREACH a IN AuthorisedValues.Get( f.authorised_value_category ) %]
<option value="[% a.authorised_value %]" [% IF a.authorised_value == c.value %]selected="selected"[% END %]>[% a.lib %]</option>
[% IF a.authorised_value == c.value %]
<option value="[% a.authorised_value | html %]" selected="selected">[% a.lib | html %]</option>
[% ELSE %]
<option value="[% a.authorised_value | html %]">[% a.lib | html %]</option>
[% END %]
[% END %]
</select>
[% ELSE %]
<input type="text" name="[% f.id %]" value="[% c.value %]"/>
<input type="text" name="[% f.id | html %]" value="[% c.value | html %]"/>
[% END %]
<span class="hint">[% f.description %]</span>
<span class="hint">[% f.description | html %]</span>
</li>
[% END %]
[% END %]
@ -58,8 +62,8 @@
</div>
<script>
if([% enrollent_id %]){
$("#heading").html(_("Modifying enrollment")+" <em>[% club.name %]</em>");
if([% enrollent_id | html %]){
$("#heading").html(_("Modifying enrollment")+" <em>[% club.name | html %]</em>");
}
function addEnrollment() {
$("body").css("cursor", "progress");