style: adopt ep-design 1.2.0 dashboard cards and replace the hover dropdown with a click menu
This commit is contained in:
1 parent
99e6119311
commit
6dbc6efa78
16 files changed
+381
-554
No files matched your search
@@ -223,11 +223,10 @@
|
||||
hx-swap="none">
|
||||
{{ icon('chair', html_classes('w-5 h-5', { 'text-emerald-700': disposition.syncedWithBusProNet, 'text-gray-400': not disposition.syncedWithBusProNet })) }}
|
||||
</button>
|
||||
<twig:DropDown>
|
||||
<twig:menu>
|
||||
<button type="button"
|
||||
class="text-gray-700 hover:text-brand block px-4 py-2 text-sm w-full text-left"
|
||||
class="menu-item"
|
||||
role="menuitem"
|
||||
tabindex="-1"
|
||||
hx-get="{{ path('app_administrative_disposition_special_agreements', { 'uuid': disposition.uuid, 'r': forwarded_return_url() }) }}"
|
||||
hx-target="body"
|
||||
hx-swap="beforeend">
|
||||
@@ -235,18 +234,16 @@
|
||||
</button>
|
||||
{% if is_granted('ADMIN_DOCUMENT_UPLOAD', disposition) %}
|
||||
<button type="button"
|
||||
class="text-gray-700 hover:text-brand block px-4 py-2 text-sm w-full text-left"
|
||||
class="menu-item"
|
||||
role="menuitem"
|
||||
tabindex="-1"
|
||||
hx-get="{{ path('app_administrative_disposition_document_upload', { 'uuid': disposition.uuid, 'type': 'contract', 'r': forwarded_return_url() }) }}"
|
||||
hx-target="body"
|
||||
hx-swap="beforeend">
|
||||
Honorarvertrag hochladen
|
||||
</button>
|
||||
<button type="button"
|
||||
class="text-gray-700 hover:text-brand block px-4 py-2 text-sm w-full text-left"
|
||||
class="menu-item"
|
||||
role="menuitem"
|
||||
tabindex="-1"
|
||||
hx-get="{{ path('app_administrative_disposition_document_upload', { 'uuid': disposition.uuid, 'type': 'invoice', 'r': forwarded_return_url() }) }}"
|
||||
hx-target="body"
|
||||
hx-swap="beforeend">
|
||||
@@ -255,9 +252,8 @@
|
||||
{% endif %}
|
||||
{% if is_granted('CALL_OFF', disposition) %}
|
||||
<button type="button"
|
||||
class="text-red-700 hover:text-red-900 block px-4 py-2 text-sm w-full text-left"
|
||||
class="menu-item-danger"
|
||||
role="menuitem"
|
||||
tabindex="-1"
|
||||
hx-get="{{ path('app_administrative_disposition_call_off', { 'uuid': disposition.uuid, 'r': forwarded_return_url() }) }}"
|
||||
hx-target="body"
|
||||
hx-swap="beforeend">
|
||||
@@ -266,16 +262,15 @@
|
||||
{% endif %}
|
||||
{% if is_granted('DELETE', disposition) %}
|
||||
<button type="button"
|
||||
class="text-red-700 hover:text-red-900 block px-4 py-2 text-sm w-full text-left"
|
||||
class="menu-item-danger"
|
||||
role="menuitem"
|
||||
tabindex="-1"
|
||||
hx-get="{{ path('app_admin_disposition_delete', { 'uuid': disposition.uuid, 'r': forwarded_return_url() }) }}"
|
||||
hx-target="body"
|
||||
hx-swap="beforeend">
|
||||
löschen
|
||||
</button>
|
||||
{% endif %}
|
||||
</twig:DropDown>
|
||||
</twig:menu>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -188,11 +188,10 @@
|
||||
</ul>
|
||||
</td>
|
||||
<td>
|
||||
<twig:DropDown>
|
||||
<twig:menu>
|
||||
<button type="button"
|
||||
class="text-red-500 hover:text-brand block px-4 py-2 text-sm w-full text-left"
|
||||
class="menu-item-danger"
|
||||
role="menuitem"
|
||||
tabindex="-1"
|
||||
hx-get="{{ path('app_administrative_assignment_delete', { 'uuid': assignment.uuid }) }}"
|
||||
hx-target="body"
|
||||
hx-swap="beforeend">
|
||||
@@ -200,9 +199,8 @@
|
||||
</button>
|
||||
{% if is_granted('CALL_OFF', assignment) %}
|
||||
<button type="button"
|
||||
class="text-red-500 hover:text-brand block px-4 py-2 text-sm w-full text-left"
|
||||
class="menu-item-danger"
|
||||
role="menuitem"
|
||||
tabindex="-1"
|
||||
hx-get="{{ path('app_administrative_assignment_call_off', { 'uuid': assignment.uuid }) }}"
|
||||
hx-target="body"
|
||||
hx-swap="beforeend">
|
||||
@@ -210,43 +208,38 @@
|
||||
</button>
|
||||
{% endif %}
|
||||
<a href="{{ path('app_administrative_assignment_duplicate', { 'uuid': assignment.uuid, 'r': return_url() }) }}"
|
||||
class="text-gray-700 hover:text-brand block px-4 py-2 text-sm"
|
||||
role="menuitem"
|
||||
tabindex="-1">
|
||||
class="menu-item"
|
||||
role="menuitem">
|
||||
duplizieren
|
||||
</a>
|
||||
{% if is_granted('EDIT', assignment) %}
|
||||
<a href="{{ path('app_administrative_assignment_edit', { 'uuid': assignment.uuid, 'r': return_url() }) }}"
|
||||
class="text-gray-700 hover:text-brand block px-4 py-2 text-sm"
|
||||
role="menuitem"
|
||||
tabindex="-1">
|
||||
class="menu-item"
|
||||
role="menuitem">
|
||||
bearbeiten
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if is_granted('PUBLISH', assignment) %}
|
||||
<button type="button"
|
||||
class="block px-4 py-2 text-sm w-full text-left"
|
||||
class="menu-item"
|
||||
role="menuitem"
|
||||
tabindex="-1"
|
||||
hx-post="{{ path('app_administrative_assignment_publish', { 'uuid': assignment.uuid, 'r': return_url() }) }}">
|
||||
veröffentlichen
|
||||
</button>
|
||||
{% endif %}
|
||||
<a href="{{ path('app_administrative_questionnaire_test', { 'uuid': assignment.uuid, 'r': return_url() }) }}"
|
||||
class="text-gray-700 hover:text-brand block px-4 py-2 text-sm"
|
||||
class="menu-item"
|
||||
role="menuitem"
|
||||
tabindex="-1"
|
||||
title="Das Reiseleitungsfeedback ansehen und ausprobieren, wie es Teamer:innen dieses Einsatzes bekommen. Es wird nichts gespeichert.">
|
||||
Vorschau Reiseleitungsfeedback
|
||||
</a>
|
||||
<a href="{{ path('app_administrative_questionnaire_test_house_manager', { 'uuid': assignment.uuid, 'r': return_url() }) }}"
|
||||
class="text-gray-700 hover:text-brand block px-4 py-2 text-sm"
|
||||
class="menu-item"
|
||||
role="menuitem"
|
||||
tabindex="-1"
|
||||
title="Das Hausleitungsfeedback zur Reise dieses Einsatzes ansehen und ausprobieren. Es wird nichts gespeichert.">
|
||||
Vorschau Hausleitungsfeedback
|
||||
</a>
|
||||
</twig:DropDown>
|
||||
</twig:menu>
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
|
||||
Reference in new issue
Block a user