[UPDT] PMS: Updated MOM column in meetings

This commit is contained in:
Horilla
2025-09-03 10:56:14 +05:30
parent 63ccc3fd05
commit a7c3a49790
3 changed files with 48 additions and 15 deletions

View File

@@ -1,3 +1,3 @@
{% load horillafilters %}
{{amount|floatformat:2|currency_symbol_position}}
{{amount|floatformat:2|currency_symbol_position}}

View File

@@ -1,18 +1,45 @@
{% load i18n %}
{% if perms.pms.change_meetings or request.user.employee_get in instance.manager.all %}
<button data-toggle="oh-modal-toggle" data-target="#genericModal" hx-target="#genericModalBody" hx-get="{% url 'update-meeting' instance.id %}" type="submit" class="oh-btn oh-btn-group oh-btn--info w-100" title="dit">
<ion-icon name="create-outline" role="img" class="md hydrated" aria-label="information circle outline"></ion-icon>
<button
data-toggle="oh-modal-toggle"
data-target="#genericModal"
hx-target="#genericModalBody"
hx-get="{% url 'update-meeting' instance.id %}"
type="submit"
class="oh-btn oh-btn-group oh-btn--info w-100"
title="{% trans 'Edit' %}"
>
<ion-icon
name="create-outline"
role="img"
class="md hydrated"
aria-label="information circle outline"
></ion-icon>
{% trans 'Edit' %}
</button>
{% endif %}
{% if perms.pms.delete_meetings %}
<form
action="{% url 'meetings-delete' instance.id %}"
onsubmit="return confirm('{% trans "Are you sure to delete this meeting?" %}')"
method="post"
style="display: contents;width:100%">
{% csrf_token %}
<button onclick="event.stopPropagation()" class="oh-btn oh-btn-group oh-btn--secondary w-100" title="{% trans 'Delete' %}">
<ion-icon name="trash-outline" role="img" class="md hydrated" aria-label="trash outline"></ion-icon>
</button>
</form>
{% endif %}
{% if perms.pms.delete_meetings %}
<form
action="{% url 'meetings-delete' instance.id %}"
onsubmit="return confirm(`{% trans 'Are you sure to delete this meeting?' %}`)"
method="post"
style="display: contents; width: 100%"
>
{% csrf_token %}
<button
onclick="event.stopPropagation()"
class="oh-btn oh-btn-group oh-btn--secondary w-100"
title="{% trans 'Delete' %}"
>
<ion-icon
name="trash-outline"
role="img"
class="md hydrated"
aria-label="trash outline"
></ion-icon>
{% trans 'Delete' %}
</button>
</form>
{% endif %}

View File

@@ -0,0 +1,6 @@
{% if perms.pms.view_meetings or request.user.employee_get in instance.manager.all or instance.show_response %}
{{ instance.response|truncatechars_html:100|default:"-"|safe }}
{% else %}
-
{% endif %}