added parent delete popup + endpoint

This commit is contained in:
2025-02-02 22:43:52 +01:00
parent 8b0b56cb7b
commit 35d5a81e6f
10 changed files with 160 additions and 5 deletions

View File

@ -3,8 +3,10 @@
{% block title %}Parents{% endblock %}
{% block extra-head %}
<link rel="stylesheet" href="{% static "parents.css" %}">
<script src="{% static "parents.js" %}"></script>
{% endblock %}
{% block extra-class %}{% if element.is_productive %}productive{% endif %}{% endblock %}
{% block element-name %}{{ element.name }}{% endblock %}
{% block element %}
<div class="name">{{ element.name }}</div>
{% if element.project_num %}
@ -13,4 +15,13 @@
{% endblock %}
{% block actions %}
<button class="edit">Edit</button>
{% endblock %}
<button class="delete">Delete</button>
{% endblock %}
{% block delete-desc %}
Are sure you want to delete <span class="elmt-name"></span> ?
This action is <u>IRREVERSIBLE</u> ! By deleting this element, you will also delete:
<ul>
<li><span class="project-count"></span> project(s)</li>
<li><span class="task-count"></span> task imputation(s)</li>
</ul>
{% endblock %}