added new parent page + minor css/js improvements

This commit is contained in:
2025-02-02 21:48:12 +01:00
parent 6ff3f05272
commit 8b0b56cb7b
14 changed files with 205 additions and 29 deletions

View File

@ -1,15 +1,15 @@
{% extends "list.html" %}
{% load static %}
{% block title %}Parents{% endblock %}
{% block element_name %}parent{% 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 %}
<div class="name">{{ element.name }}</div>
<div class="project_num">({{ element.project_num }})</div>
{% if element.project_num %}
<div class="project_num">({{ element.project_num }})</div>
{% endif %}
{% endblock %}
{% block actions %}
<button class="edit">Edit</button>