[UPDT] PMS: Updated MOM column in meetings
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
{% load horillafilters %}
|
||||
|
||||
{{amount|floatformat:2|currency_symbol_position}}
|
||||
{{amount|floatformat:2|currency_symbol_position}}
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
6
pms/templates/cbv/meetings/mom_col.html
Normal file
6
pms/templates/cbv/meetings/mom_col.html
Normal 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 %}
|
||||
Reference in New Issue
Block a user