view changes

This commit is contained in:
Thomas Nahuel Rusiecki 2025-01-08 01:29:20 -03:00 committed by Cayo Puigdefabregas
parent 83e9daff94
commit ef938f6cab
2 changed files with 22 additions and 12 deletions

View file

@ -21,8 +21,10 @@
</caption> </caption>
<thead class="table-light"> <thead class="table-light">
<tr> <tr>
<th scope="col" width="5%" class="text-start"> <th scope="col" width="1%" class="text-start">
</th> </th>
<th scope="col" width="5%" class="text-center">
#</th>
<th scope="col">{% trans "State Definition" %} <th scope="col">{% trans "State Definition" %}
</th> </th>
<th scope="col" width="15%" class="text-center">{% trans "Actions" %} <th scope="col" width="15%" class="text-center">{% trans "Actions" %}
@ -37,9 +39,11 @@
class="align-items-center"> class="align-items-center">
<td class=""> <td class="">
<i class="fas fa-duotone fa-solid fa-grip px-1" aria-hidden="true"> <i class="bi bi-grip-vertical" aria-hidden="true">
</i> </i>
<strong> {{ state_definition.order }} </strong> </td>
<td class="text-center">
<strong>{{ state_definition.order }} </strong>
</td> </td>
<td class="font-monospace"> <td class="font-monospace">
{{ state_definition.state }} {{ state_definition.state }}
@ -48,16 +52,22 @@
<!-- action buttons --> <!-- action buttons -->
<td> <td>
<div class="btn-group float-end"> <div class="btn-group float-end">
<button type="button" class="btn btn-sm btn-info text-white" data-bs-toggle="modal" data-bs-target="#editStateModal{{ state_definition.id }}"> <!-- Edit Button -->
<i class="bi bi-pencil"> <button
</i> {% trans 'Edit' %} type="button "
class="btn btn-sm btn-outline-info d-flex align-items-center"
data-bs-toggle="modal" data-bs-target="#editStateModal{{ state_definition.id }}">
<i class="bi bi-pencil me-1"></i>
{% trans 'Edit' %}
</button> </button>
<button type="button" class="btn btn-sm btn-danger" data-bs-toggle="modal" data-bs-target="#deleteStateModal{{ state_definition.id }}"> <button
<i class="bi bi-trash"> type="button" class="btn btn-sm btn-outline-danger d-flex align-items-center"
</i> data-bs-toggle="modal"
data-bs-target="#deleteStateModal{{ state_definition.id }}" >
<i class="bi bi-trash me-1"></i>
{% trans 'Delete' %}
</button> </button>
</div> </div>
</td> </td>
</tr> </tr>
{% endfor %} {% endfor %}

View file

@ -4,7 +4,7 @@
{% block content %} {% block content %}
<div class="position-fixed" style="bottom: 2rem; right: 2rem; z-index: 9999; display: flex; gap: 0.5rem;"> <div class="position-fixed" style="bottom: 2rem; right: 2rem; z-index: 9999; display: flex; gap: 0.5rem;">
<button class="btn btn-outline-warning d-flex align-items-center shadow" type="button" <button class="btn btn-warning d-flex align-items-center shadow" type="button"
data-bs-toggle="offcanvas" data-bs-target="#notesOffcanvas" aria-controls="notesOffcanvas" data-bs-toggle="offcanvas" data-bs-target="#notesOffcanvas" aria-controls="notesOffcanvas"
data-bs-toggle="tooltip" data-bs-placement="left" title="{% trans 'View recent notes' %}"> data-bs-toggle="tooltip" data-bs-placement="left" title="{% trans 'View recent notes' %}">
<i class="bi bi-journal-text me-1"></i> <i class="bi bi-journal-text me-1"></i>