[UPDT]PMS : Updated Objective Key Result Create and Edit form data-target and hx-target
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user