added parent edit page

This commit is contained in:
2025-02-02 15:33:11 +01:00
parent d13127a273
commit 87607da643
13 changed files with 105 additions and 17 deletions

16
templates/edit.html Normal file
View File

@ -0,0 +1,16 @@
{% extends "base.html" %}
{% load static %}
{% block title %}Editing {{ class }} {{ id }}{% endblock %}
{% block head %}
<link rel="stylesheet" href="{% static "edit.css" %}">
{% endblock %}
{% block main %}
<div class="container">
<h2>Editing {{ class }} {{ id }}</h2>
<form action="" method="POST">
{% csrf_token %}
{{ form }}
<button type="submit">Save</button>
</form>
</div>
{% endblock %}

View File

@ -2,6 +2,7 @@
{% load static %}
{% block head %}
<link rel="stylesheet" href="{% static "list.css" %}">
{% block extra-head %}{% endblock %}
{% endblock %}
{% block main %}
<ul class="list">

View File

@ -2,6 +2,9 @@
{% load static %}
{% block title %}Parents{% endblock %}
{% block element_name %}parent{% endblock %}
{% block extra-head %}
<script src="{% static "parents.js" %}"></script>
{% endblock %}
{% block element %}
<div class="name">{{ element.name }}</div>
<div class="project_num">({{ element.project_num }})</div>

View File

@ -1,10 +0,0 @@
{% extends "base.html" %}
{% block main %}
<h2>Editing project</h2>
<form action="" method="POST">
{% csrf_token %}
{{ form }}
<button type="submit">Save</button>
</form>
{% endblock %}

View File

@ -29,7 +29,7 @@
</select>
</td>
<td>
<button class="see">See</button>
<button class="edit">Edit</button>
<button class="delete">Delete</button>
</td>
</tr>