Formatted add/edit pages via bootstrap styling

parent 0bc06400
......@@ -2,12 +2,15 @@
{% load static %}
{% block title %}Add New Author{% endblock %}
{% block content %}
<br>
<form method="post">
{% csrf_token %}
{% for field in form %}
{{field.label}}:{{field}} <br><br>
{% endfor %}
<input type="submit" value="Add Author">
</form>
<div class="text-center">
<br>
<br>
<form method="post">
{% csrf_token %}
{% for field in form %}
{{field.label}}:{{field}} <br><br>
{% endfor %}
<input type="submit" value="Add Author">
</form>
</div>
{% endblock %}
\ No newline at end of file
......@@ -2,12 +2,15 @@
{% load static %}
{% block title %}Add New Book{% endblock %}
{% block content %}
<br>
<form method="post">
{% csrf_token %}
{% for field in form %}
{{field.label}}:{{field}} <br><br>
{% endfor %}
<input type="submit" value="Add Book">
</form>
<div class="text-center">
<br>
<br>
<form method="post">
{% csrf_token %}
{% for field in form %}
{{field.label}}:{{field}} <br><br>
{% endfor %}
<input type="submit" value="Add Book">
</form>
</div>
{% endblock %}
......@@ -2,12 +2,15 @@
{% load static %}
{% block title %}Edit Author{% endblock %}
{% block content %}
<br>
<form method="post">
{% csrf_token %}
{% for field in form %}
{{field.label}}:{{field}} <br><br>
{% endfor %}
<input type="submit" value="Save Changes">
</form>
<div class="text-center">
<br>
<br>
<form method="post">
{% csrf_token %}
{% for field in form %}
{{field.label}}:{{field}} <br><br>
{% endfor %}
<input type="submit" value="Save Changes">
</form>
</div>
{% endblock %}
\ No newline at end of file
......@@ -2,12 +2,15 @@
{% load static %}
{% block title %}Edit Book{% endblock %}
{% block content %}
<br>
<form method="post">
{% csrf_token %}
{% for field in form %}
{{field.label}}:{{field}} <br><br>
{% endfor %}
<input type="submit" value="Save Changes">
</form>
<div class="text-center">
<br>
<br>
<form method="post">
{% csrf_token %}
{% for field in form %}
{{field.label}}:{{field}} <br><br>
{% endfor %}
<input type="submit" value="Save Changes">
</form>
</div>
{% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment