added parent edit page
This commit is contained in:
16
templates/edit.html
Normal file
16
templates/edit.html
Normal 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 %}
|
@ -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">
|
||||
|
@ -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>
|
||||
|
@ -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 %}
|
@ -29,7 +29,7 @@
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<button class="see">See</button>
|
||||
<button class="edit">Edit</button>
|
||||
<button class="delete">Delete</button>
|
||||
</td>
|
||||
</tr>
|
||||
|
Reference in New Issue
Block a user