Feat: Extend application info popup
This commit is contained in:
@@ -70,7 +70,7 @@
|
|||||||
aria-label="Bewerber:innen-Info anzeigen"
|
aria-label="Bewerber:innen-Info anzeigen"
|
||||||
{{ stimulus_controller('modal-button', [], [], {'ajax-modal': '#ajax-modal'}) }}
|
{{ stimulus_controller('modal-button', [], [], {'ajax-modal': '#ajax-modal'}) }}
|
||||||
{{ stimulus_action('modal-button', 'ajax', 'click', {
|
{{ stimulus_action('modal-button', 'ajax', 'click', {
|
||||||
'title': 'Bewerber:innen-Info',
|
'title': 'Teeamer-Info ' ~ application.teamer,
|
||||||
'url': path('app_admin_application_info', { 'uuid': application.uuid })
|
'url': path('app_admin_application_info', { 'uuid': application.uuid })
|
||||||
}) }}>
|
}) }}>
|
||||||
{% if assignment.pickup %}
|
{% if assignment.pickup %}
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
<h3 class="text-xl font-bold pb-4">
|
<div class="flex items-start">
|
||||||
{{ application.teamer }}
|
<div class="flex-1 pr-8">
|
||||||
</h3>
|
{% include '_partials/_assignment_requirements_info.html.twig' with {
|
||||||
{% include '_partials/_assignment_requirements_info.html.twig' with {
|
|
||||||
'assignment': application.assignment,
|
'assignment': application.assignment,
|
||||||
'teamer': application.teamer
|
'teamer': application.teamer
|
||||||
} %}
|
} %}
|
||||||
<ul class="pb-8 divide-y divide-gray-200">
|
<ul class="pb-8 divide-y divide-gray-200">
|
||||||
{% for type in ['ski', 'snowboard'] %}
|
{% for type in ['ski', 'snowboard'] %}
|
||||||
<li class="py-2">
|
<li class="py-2">
|
||||||
<div class="flex items-center justify-between">
|
<div class="flex items-center justify-between">
|
||||||
@@ -28,4 +27,18 @@
|
|||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
{% set teamer = application.teamer %}
|
||||||
|
{% if teamer.photo %}
|
||||||
|
<img src="{{ asset(teamer.photo.filename | imagine_filter('profile')) }}"
|
||||||
|
class="w-32 h-auto border-2 border-primary"
|
||||||
|
alt="{{ teamer.firstName }}">
|
||||||
|
{% else %}
|
||||||
|
<div class="border-2 border-primary">
|
||||||
|
{{ icon('user', 'w-32 h-32 text-gray-200') }}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user