Bug 38714: clubs-table.inc

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2024-12-18 16:43:20 +01:00 committed by Katrin Fischer
parent 10d2b56ebd
commit 3a6ab06bcb
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 13 additions and 7 deletions

View File

@ -1,8 +1,7 @@
[% IF destination == 'holds' %]
<table id="clubs-table" class="selections-table">
[% ELSE %]
<table id="clubs-table">
[% SET table_class = 'selections-table' %]
[% END %]
<table id="clubs-table" class="[% table_class | html %]">
<thead>
<tr>
<th>Name</th>
@ -31,12 +30,19 @@
[% IF multi_hold %]
[% SET data_url = data_url _ "&amp;multi_hold=1" %]
[% END %]
<tr class="clickable" data-url="[% data_url | html %]">
<td><a href="[% data_url | url %]">[% c.name | html %]</a></td>
[% SET tr_class = "clickable" %]
[% ELSE %]
<tr>
<td>[% c.name | html %]</td>
[% SET data_url = "" %]
[% SET tr_class = "" %]
[% END %]
<tr class="[% tr_class | html %]" data-url="[% data_url | html %]">
<td>
[% IF destination == 'holds' %]
<a href="[% data_url | url %]">[% c.name | html %]</a>
[% ELSE %]
[% c.name | html %]
[% END %]
</td>
<td>[% c.club_template.name | html %]</td>
<td>[% c.description | html %]</td>
[% UNLESS destination == 'holds' %]