[UPDT]PMS : Updated Objective Key Result Create and Edit form data-target and hx-target

This commit is contained in:
Horilla
2024-05-22 10:23:00 +05:30
parent c03962f313
commit 836b73878e
4 changed files with 9 additions and 9 deletions

View File

@@ -59,9 +59,9 @@
<li class="oh-dropdown__item">
<a onclick="event.stopPropagation();"
data-toggle="oh-modal-toggle"
data-target="#objectDetailsModal"
data-target="#objectUpdateModal"
hx-get="{% url 'update-key-result' kr.id %}"
hx-target="#objectDetailsModalTarget"
hx-target="#objectUpdateModalTarget"
>{% trans "Edit" %}</a>
</li>
<li class="oh-dropdown__item">

View File

@@ -108,9 +108,9 @@
onclick="event.stopPropagation();"
class="oh-btn oh-btn--light-bkg w-100"
data-toggle="oh-modal-toggle"
data-target="#objectDetailsModal"
data-target="#objectUpdateModal"
hx-get="{% url 'update-key-result' kr.id %}"
hx-target="#objectDetailsModalTarget"
hx-target="#objectUpdateModalTarget"
title='{% trans "Edit" %}'
>
<ion-icon

View File

@@ -109,9 +109,9 @@
<a
class="oh-btn oh-btn--secondary oh-btn--shadow"
data-toggle="oh-modal-toggle"
data-target="#objectDetailsModal"
data-target="#objectCreateModal"
hx-get="{% url 'create-key-result' %}"
hx-target="#objectDetailsModalTarget"
hx-target="#objectCreateModalTarget"
>
<ion-icon
class="md hydrated"

View File

@@ -13,7 +13,7 @@
</h2>
{% endif %}
<button type="button" class="oh-modal__close--custom" onclick="$('#objectDetailsModal').removeClass('oh-modal--show');">
<button type="button" class="oh-modal__close--custom" onclick="$(this).closest('.oh-modal--show').removeClass('oh-modal--show');">
<ion-icon name="close-outline" role="img" aria-label="close outline"></ion-icon>
</button>
</div>
@@ -21,13 +21,13 @@
{% if form.instance.id %}
<form
hx-post="{% url 'update-key-result' form.instance.id %}"
hx-target="#objectDetailsModalTarget"
hx-target="#objectUpdateModalTarget"
id="realKeyResultForm"
>
{% else %}
<form
hx-post="{% url 'create-key-result' %}"
hx-target="#objectDetailsModalTarget"
hx-target="#objectCreateModalTarget"
id="realKeyResultForm"
>
{% endif %}