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>
|
||||
|
||||
Reference in new issue
Block a user