Skip to content

Commit

Permalink
fixed displaying client type in table view
Browse files Browse the repository at this point in the history
  • Loading branch information
jeppekroghitk committed Jan 15, 2024
1 parent 675055b commit 61e4279
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions templates/client/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,15 @@
</thead>
<tbody>
{% for index, client in clients %}
{{ dump(client.type) }}
<tr class="{{ index % 2 == 0 ? 'table-tr' : 'table-tr-alt' }}">
<td class="table-td">{{ client.id }}</td>
<td class="table-td">{{ client.name }}</td>
<td class="table-td">{{ client.contact }}</td>
<td class="table-td">{{ client.standardPrice }}</td>
{% if client.type == 'internal' %}
<td class="table-td">internal</td>
{% elseif client.type == 'external' %}
<td class="table-td">external</td>
{% if client.type is not null %}
<td class="table-td">{{ client.type.value }}</td>
{% else %}
<td class="table-td">none</td>
<td class="table-td">unset</td>
{% endif %}
<td class="table-td">{{ client.account }}</td>
<td class="table-td">{{ client.psp }}</td>
Expand Down

0 comments on commit 61e4279

Please sign in to comment.