feat: special agreements for disposition
This commit is contained in:
@@ -1,7 +1,21 @@
|
||||
{% extends 'htmx_confirmation_modal.html.twig' %}
|
||||
{% extends 'htmx_modal.html.twig' %}
|
||||
|
||||
{% block title %}Einteilung{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div>
|
||||
Möchtest du {{ application.teamer }} wirklich einteilen?
|
||||
<div class="pb-4">
|
||||
Möchtest du <strong>{{ application.teamer }}</strong> wirklich für den Einsatz <strong>{{ application.assignment.destination}}</strong> einteilen?
|
||||
</div>
|
||||
{{ form_start(form) }}
|
||||
{{ form_row(form.specialAgreements) }}
|
||||
<div class="mt-6 flex items-center justify-between">
|
||||
<button type="submit" class="btn">
|
||||
Ja
|
||||
</button>
|
||||
<button type="button" class="btn btn--secondary" {{ stimulus_action('modal', 'close') }}>
|
||||
Abbrechen
|
||||
</button>
|
||||
</div>
|
||||
{{ form_rest(form) }}
|
||||
{{ form_end(form) }}
|
||||
{% endblock %}
|
||||
@@ -48,17 +48,16 @@
|
||||
<ul class="divide-y divide-gray-200">
|
||||
{% for document in documents %}
|
||||
<li class="py-2 first:pt-0 last:pb-0">
|
||||
{% if document.disposition %}
|
||||
{% set url = path('app_administrative_assignment_detail', { 'uuid': document.disposition.assignment.uuid, 'r': return_url() }) %}
|
||||
{% else %}
|
||||
{% set url = path('app_administrative_teamer_profile', { 'uuid': document.owner.teamer.uuid, 'r': return_url() }) %}
|
||||
{% endif %}
|
||||
<a href="{{ url }}" class="flex items-center space-x-1 truncate">
|
||||
<button type="button"
|
||||
class="flex items-center space-x-1 truncate"
|
||||
hx-get="{{ path('app_administrative_document_check', { 'uuid': document.uuid, 'r': return_url() }) }}"
|
||||
hx-target="body"
|
||||
hx-swap="beforeend">
|
||||
{{ icon('download', 'w-4 h-4 shrink-0') }}
|
||||
<span>{{ document.owner.teamer.fullName(true) }}</span>
|
||||
{% include '_partials/_dot.html.twig' %}
|
||||
<span>{{ document.originalFilename }}</span>
|
||||
</a>
|
||||
</button>
|
||||
</li>
|
||||
{% else %}
|
||||
<li class="py-2 first:pt-0 last:pb-0">
|
||||
|
||||
Reference in New Issue
Block a user