added new parent page + minor css/js improvements
This commit is contained in:
16
templates/add.html
Normal file
16
templates/add.html
Normal file
@ -0,0 +1,16 @@
|
||||
{% extends "base.html" %}
|
||||
{% load static %}
|
||||
{% block title %}New {{ class }}{% endblock %}
|
||||
{% block head %}
|
||||
<link rel="stylesheet" href="{% static "form.css" %}">
|
||||
{% endblock %}
|
||||
{% block main %}
|
||||
<div class="container">
|
||||
<h2>New {{ class }}</h2>
|
||||
<form action="" method="POST">
|
||||
{% csrf_token %}
|
||||
{{ form }}
|
||||
<button type="submit">Create</button>
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user