added parent delete popup + endpoint
This commit is contained in:
@ -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 %}
|
||||
|
Reference in New Issue
Block a user