better form & mime type check

This commit is contained in:
Olivier PARPAILLON
2024-11-21 13:47:47 +01:00
parent 3d4fe031f6
commit 2a594a8d44
12 changed files with 85 additions and 55 deletions

View File

@@ -77,11 +77,13 @@
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">
{{ participant.roles|join(', ') }}
</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<a href="{{ path('app_adminUserDisable', {'id': participant.idParticipant}) }}" class="text-indigo-600 hover:text-indigo-900">
{{ participant.actif ? '✔️' : '❌' }}
<td class="flex flex-row px-6 py-4 whitespace-nowrap items-center font-medium">
<a href="{{ path('app_adminUserDisable', {'id': participant.idParticipant}) }}" class="items-centerp pr-4">
<img src="{{ participant.actif ? asset('img/user-able.svg') : asset('img/user-disable.svg') }}" alt="Logo" height="32px" width="32px">
</a>
<a href="{{ path('app_adminUserDelete', {'id': participant.idParticipant}) }}" class="items-center">
<img src="{{ asset('img/user-delete.svg') }}" alt="Logo" height="32px" width="32px">
</a>
<a href="{{ path('app_adminUserDelete', {'id': participant.idParticipant}) }}" class="text-red-600 hover:text-red-900 ml-4">🗑️</a>
</td>
</tr>
{% endif %}
@@ -132,10 +134,14 @@
<label>
<input type="hidden" name="id" value="{{ participant.idParticipant }}" />
</label>
<button type="submit"
class="text-indigo-600 hover:text-indigo-900">👍</button>
<a href="{{ path('app_denyUser', {'id': participant.idParticipant}) }}"
class="text-red-600 hover:text-red-900 ml-4">👎</a>
<button type="submit" class="px-4">
<img src="{{ asset('img/accept-user.svg') }}" alt="Logo" height="32px" width="32px">
</button>
<button type="button">
<a href="{{ path('app_denyUser', {'id': participant.idParticipant}) }}">
<img src="{{ asset('img/deny-user.svg') }}" alt="Logo" height="32px" width="32px">
</a>
</button>
</td>
</form>
</tr>

View File

@@ -19,21 +19,21 @@
{% if label == 'success' %}
<div class="p-4 text-sm text-green-800 rounded-lg bg-green-50 dark:bg-gray-800 dark:text-green-400 text-center" role="alert">
<span class="font-medium">
{{ message }}
✔️ {{ message }} ✔️
</span>
</div>
{% endif %}
{% if label == 'error' %}
<div class="p-4 text-sm text-red-800 rounded-lg bg-red-50 dark:bg-gray-800 dark:text-red-400 text-center" role="alert">
<span class="font-medium">
{{ message }}
{{ message }}
</span>
</div>
{% endif %}
{% if label == 'warning' %}
<div class="p-4 text-sm text-yellow-800 rounded-lg bg-yellow-50 dark:bg-gray-800 dark:text-yellow-400 text-center" role="alert">
<span class="font-medium">
{{ message }}
⚠️ {{ message }} ⚠️
</span>
</div>
{% endif %}