feat: show room prices in room assignment form field
This commit is contained in:
@@ -84,28 +84,3 @@
|
||||
{% endfor -%}
|
||||
</table>
|
||||
{%- endblock choice_widget_expanded -%}
|
||||
|
||||
{# Room assignment field - simple scalar choices (label => id), no price column #}
|
||||
{%- block _participant_assignedRoomId_widget -%}
|
||||
<table class="w-full table-fixed border-collapse">
|
||||
{%- for child in form %}
|
||||
{%- set child_attr = {} -%}
|
||||
{%- if attr['hx-trigger'] is defined -%}
|
||||
{%- set child_attr = {
|
||||
'hx-trigger': attr['hx-trigger'],
|
||||
'hx-post': attr['hx-post'],
|
||||
'hx-target': attr['hx-target']|default('#main-content'),
|
||||
'hx-swap': attr['hx-swap']
|
||||
} -%}
|
||||
{%- endif -%}
|
||||
<tr>
|
||||
<td class="border border-primary-bg p-2 align-top" colspan="2">
|
||||
<div>{{- child.vars.label -}}</div>
|
||||
</td>
|
||||
<td class="border border-primary-bg p-2 align-top w-12 text-center">
|
||||
{{- form_widget(child, { 'attr': child_attr }) -}}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor -%}
|
||||
</table>
|
||||
{%- endblock _participant_assignedRoomId_widget -%}
|
||||
|
||||
Reference in New Issue
Block a user