WIP: And goes on

This commit is contained in:
Björn Fromme
2023-10-05 17:17:40 +02:00
parent 1097b84447
commit bea5edd615
7 changed files with 72 additions and 32 deletions
-3
View File
@@ -99,9 +99,6 @@
<symbol id="icon-print" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24"> <symbol id="icon-print" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24">
<path d="M6.72 13.829c-.24.03-.48.062-.72.096m.72-.096a42.415 42.415 0 0110.56 0m-10.56 0L6.34 18m10.94-4.171c.24.03.48.062.72.096m-.72-.096L17.66 18m0 0l.229 2.523a1.125 1.125 0 01-1.12 1.227H7.231c-.662 0-1.18-.568-1.12-1.227L6.34 18m11.318 0h1.091A2.25 2.25 0 0021 15.75V9.456c0-1.081-.768-2.015-1.837-2.175a48.055 48.055 0 00-1.913-.247M6.34 18H5.25A2.25 2.25 0 013 15.75V9.456c0-1.081.768-2.015 1.837-2.175a48.041 48.041 0 011.913-.247m10.5 0a48.536 48.536 0 00-10.5 0m10.5 0V3.375c0-.621-.504-1.125-1.125-1.125h-8.25c-.621 0-1.125.504-1.125 1.125v3.659M18 10.5h.008v.008H18V10.5zm-3 0h.008v.008H15V10.5z" stroke-linecap="round" stroke-linejoin="round"/> <path d="M6.72 13.829c-.24.03-.48.062-.72.096m.72-.096a42.415 42.415 0 0110.56 0m-10.56 0L6.34 18m10.94-4.171c.24.03.48.062.72.096m-.72-.096L17.66 18m0 0l.229 2.523a1.125 1.125 0 01-1.12 1.227H7.231c-.662 0-1.18-.568-1.12-1.227L6.34 18m11.318 0h1.091A2.25 2.25 0 0021 15.75V9.456c0-1.081-.768-2.015-1.837-2.175a48.055 48.055 0 00-1.913-.247M6.34 18H5.25A2.25 2.25 0 013 15.75V9.456c0-1.081.768-2.015 1.837-2.175a48.041 48.041 0 011.913-.247m10.5 0a48.536 48.536 0 00-10.5 0m10.5 0V3.375c0-.621-.504-1.125-1.125-1.125h-8.25c-.621 0-1.125.504-1.125 1.125v3.659M18 10.5h.008v.008H18V10.5zm-3 0h.008v.008H15V10.5z" stroke-linecap="round" stroke-linejoin="round"/>
</symbol> </symbol>
<symbol id="icon-uturn-up" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" d="M9 9l6-6m0 0l6 6m-6-6v12a6 6 0 01-12 0v-3"/>
</symbol>
<symbol id="icon-archive" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24"> <symbol id="icon-archive" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24">
<path d="M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z" stroke-linecap="round" stroke-linejoin="round"/> <path d="M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z" stroke-linecap="round" stroke-linejoin="round"/>
</symbol> </symbol>

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB

@@ -0,0 +1,28 @@
<?php
namespace App\Controller\Admin\Assignment;
use App\Entity\Assignment;
use App\Repository\ApplicationRepository;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Security\Http\Attribute\IsGranted;
class DetailController extends AbstractController
{
public function __construct(private readonly ApplicationRepository $applicationRepository)
{}
#[Route('/admin/assignment/detail/{uuid}', name: 'app_admin_assignment_detail')]
#[IsGranted('ROLE_ADMINISTRATIVE')]
public function index(Assignment $assignment): Response
{
$applications = $this->applicationRepository->findBy(['assignment' => $assignment]);
return $this->render('admin/assignment/detail.html.twig', [
'assignment' => $assignment,
'applications' => $applications,
]);
}
}
+1 -1
View File
@@ -144,7 +144,7 @@ class AdminMenuBuilder extends AbstractMenuBuilder
$menu->addChild('zurück zur Übersicht', [ $menu->addChild('zurück zur Übersicht', [
'route' => 'app_admin_teamer_index', 'route' => 'app_admin_teamer_index',
'extras' => [ 'extras' => [
'icon' => 'back', 'icon' => 'arrow-left',
], ],
]); ]);
+12 -10
View File
@@ -1,24 +1,26 @@
{{ form_start(form) }} {{ form_start(form) }}
<div class="flex flex-col space-y-4 pb-8"> <div class="flex flex-col space-y-4 pb-8">
{{ form_row(form.available) }} <div class="grid lg:grid-cols-2 gap-x-8 gap-y-4">
{{ form_row(form.jobProfile) }} {{ form_row(form.available) }}
{{ form_row(form.destinationBusProId) }} {{ form_row(form.jobProfile) }}
<div class="grid lg:grid-cols-2 gap-4"> </div>
<div class="grid lg:grid-cols-2 gap-x-8 gap-y-4">
{{ form_row(form.destinationBusProId) }}
{{ form_row(form.contact) }}
</div>
<div class="grid lg:grid-cols-2 gap-x-8 gap-y-4">
{{ form_row(form.dateFrom) }} {{ form_row(form.dateFrom) }}
{{ form_row(form.dateTo) }} {{ form_row(form.dateTo) }}
</div> </div>
<div class="grid lg:grid-cols-2 gap-4"> <div class="grid lg:grid-cols-2 gap-x-8 gap-y-4">
{{ form_row(form.pickupDate) }} {{ form_row(form.pickupDate) }}
{{ form_row(form.pickup) }} {{ form_row(form.pickup) }}
</div> </div>
<div class="grid lg:grid-cols-2 gap-4"> <div class="grid lg:grid-cols-2 gap-x-8 gap-y-4">
{{ form_row(form.benefits) }} {{ form_row(form.benefits) }}
{{ form_row(form.fees) }} {{ form_row(form.fees) }}
</div> </div>
<div class="grid lg:grid-cols-2 gap-4"> {{ form_row(form.remarks) }}
{{ form_row(form.contact) }}
{{ form_row(form.remarks) }}
</div>
</div> </div>
<div class="flex items-center space-x-2"> <div class="flex items-center space-x-2">
<button type="submit" class="btn"> <button type="submit" class="btn">
@@ -0,0 +1,9 @@
{% extends 'admin/layout.html.twig' %}
{% block title %}Einsatzübersicht{% endblock %}
{% block content %}
<h1 class="text-2xl font-bold pb-8">
Einsatzübersicht
</h1>
{% endblock %}
+11 -3
View File
@@ -54,9 +54,14 @@
{{ assignment.pickup|bpn_pickup_label|default('-') }} {{ assignment.pickup|bpn_pickup_label|default('-') }}
</td> </td>
<td> <td>
<a href="{{ path('app_admin_assignment_edit', { 'uuid': assignment.uuid}) }}"> <div class="flex items-center space-x-1 justify-end">
{{ icon('edit', 'w-5 h-5') }} <a href="{{ path('app_admin_assignment_detail', { 'uuid': assignment.uuid }) }}">
</a> {{ icon('info', 'w-5 h-5') }}
</a>
<a href="{{ path('app_admin_assignment_edit', { 'uuid': assignment.uuid}) }}">
{{ icon('edit', 'w-5 h-5') }}
</a>
</div>
</td> </td>
</tr> </tr>
{% endfor %} {% endfor %}
@@ -65,4 +70,7 @@
{{ knp_pagination_render(pagination) }} {{ knp_pagination_render(pagination) }}
</div> </div>
</div> </div>
<a href="{{ path('app_admin_assignment_create') }}" class="btn">
Neu
</a>
{% endblock %} {% endblock %}
+11 -15
View File
@@ -97,22 +97,18 @@
{%- endblock choice_widget_collapsed -%} {%- endblock choice_widget_collapsed -%}
{%- block choice_widget_expanded -%} {%- block choice_widget_expanded -%}
<fieldset> {%- for child in form %}
<div class="divide-y divide-gray-200"> <div class="relative flex items-start py-2 first:pt-0">
{%- for child in form %} <div class="min-w-0 flex-1 text-sm leading-4">
<div class="relative flex items-start py-4 first:pt-0"> <label for="{{ child.vars.id }}" class="select-none font-medium text-gray-900">
<div class="min-w-0 flex-1 text-sm leading-6"> {{ child.vars.label }}
<label for="{{ child.vars.id }}" class="select-none font-medium text-gray-900"> </label>
{{ child.vars.label }} </div>
</label> <div class="ml-3 flex h-4 items-center">
</div> {{- form_widget(child) -}}
<div class="ml-3 flex h-6 items-center"> </div>
{{- form_widget(child) -}}
</div>
</div>
{% endfor -%}
</div> </div>
</fieldset> {% endfor -%}
{%- endblock choice_widget_expanded -%} {%- endblock choice_widget_expanded -%}
{%- block birthday_widget -%} {%- block birthday_widget -%}