Task: Improve layout
This commit is contained in:
@@ -35,25 +35,22 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="flex flex-col space-y-2">
|
||||
<a href="{{ path('app_teamer_assignment', { 'uuid': assignment.uuid, 'r': return_url() }) }}"
|
||||
class="btn btn--small flex items-center space-x-2">
|
||||
{{ icon('info', 'w-4 h-4 shrink-0') }}
|
||||
<span>Details</span>
|
||||
</a>
|
||||
{% if is_granted('DELETE', application) %}
|
||||
<button type="button"
|
||||
title="Bewerbung löschen"
|
||||
class="btn btn--small bg-red-100 text-red-800 hover:bg-red-50"
|
||||
{{ stimulus_controller('modal-button', [], [], {'confirmation-modal': '#confirmation-modal'}) }}
|
||||
{{ stimulus_action('modal-button', 'confirmation', null, {
|
||||
'title': 'Bist du sicher?',
|
||||
'content': 'Möchtest du die Bewerbing wirklich zurückziehen/löschen?',
|
||||
'target-url': path('app_teamer_application_delete', { 'uuid': application.uuid })
|
||||
}) }}>
|
||||
{{ icon('delete', 'w-4 h-4 shrink-0') }}
|
||||
<span>Löschen</span>
|
||||
</button>
|
||||
{% if application.status == constant('App\\Entity\\Application::STATUS_REJECTED') %}
|
||||
{% set icon = 'close' %}
|
||||
{% set class = 'bg-gray-100 text-gray-800 hover:bg-gray-50' %}
|
||||
{% set url = path('app_teamer_assignment', { 'uuid': assignment.uuid, 'r': return_url() }) %}
|
||||
{% set label = 'Bewerbung abgelehnt' %}
|
||||
{% else %}
|
||||
{% set icon = 'hourglass' %}
|
||||
{% set class = 'bg-yellow-100 text-yellow-800 hover:bg-yellow-50' %}
|
||||
{% set url = path('app_teamer_assignment', { 'uuid': assignment.uuid, 'r': return_url() }) %}
|
||||
{% set label = 'in Bearbeitung' %}
|
||||
{% endif %}
|
||||
<a href="{{ url }}"
|
||||
class="btn btn--small flex items-center space-x-2 {{ class }}">
|
||||
{{ icon(icon, 'w-4 h-4 shrink-0') }}
|
||||
<span>{{ label }}</span>
|
||||
</a>
|
||||
</div>
|
||||
{% if teamer.bookmarks.contains(assignment) %}
|
||||
{{ icon('star', 'w-5 h-5 text-yellow-500 absolute top-0 right-0 mt-2 mr-2') }}
|
||||
|
||||
Reference in New Issue
Block a user