Formatted add/edit pages via bootstrap styling

parent 0bc06400
...@@ -2,12 +2,15 @@ ...@@ -2,12 +2,15 @@
{% load static %} {% load static %}
{% block title %}Add New Author{% endblock %} {% block title %}Add New Author{% endblock %}
{% block content %} {% block content %}
<br> <div class="text-center">
<form method="post"> <br>
{% csrf_token %} <br>
{% for field in form %} <form method="post">
{{field.label}}:{{field}} <br><br> {% csrf_token %}
{% endfor %} {% for field in form %}
<input type="submit" value="Add Author"> {{field.label}}:{{field}} <br><br>
</form> {% endfor %}
<input type="submit" value="Add Author">
</form>
</div>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -2,12 +2,15 @@ ...@@ -2,12 +2,15 @@
{% load static %} {% load static %}
{% block title %}Add New Book{% endblock %} {% block title %}Add New Book{% endblock %}
{% block content %} {% block content %}
<br> <div class="text-center">
<form method="post"> <br>
{% csrf_token %} <br>
{% for field in form %} <form method="post">
{{field.label}}:{{field}} <br><br> {% csrf_token %}
{% endfor %} {% for field in form %}
<input type="submit" value="Add Book"> {{field.label}}:{{field}} <br><br>
</form> {% endfor %}
<input type="submit" value="Add Book">
</form>
</div>
{% endblock %} {% endblock %}
...@@ -2,12 +2,15 @@ ...@@ -2,12 +2,15 @@
{% load static %} {% load static %}
{% block title %}Edit Author{% endblock %} {% block title %}Edit Author{% endblock %}
{% block content %} {% block content %}
<br> <div class="text-center">
<form method="post"> <br>
{% csrf_token %} <br>
{% for field in form %} <form method="post">
{{field.label}}:{{field}} <br><br> {% csrf_token %}
{% endfor %} {% for field in form %}
<input type="submit" value="Save Changes"> {{field.label}}:{{field}} <br><br>
</form> {% endfor %}
<input type="submit" value="Save Changes">
</form>
</div>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -2,12 +2,15 @@ ...@@ -2,12 +2,15 @@
{% load static %} {% load static %}
{% block title %}Edit Book{% endblock %} {% block title %}Edit Book{% endblock %}
{% block content %} {% block content %}
<br> <div class="text-center">
<form method="post"> <br>
{% csrf_token %} <br>
{% for field in form %} <form method="post">
{{field.label}}:{{field}} <br><br> {% csrf_token %}
{% endfor %} {% for field in form %}
<input type="submit" value="Save Changes"> {{field.label}}:{{field}} <br><br>
</form> {% endfor %}
<input type="submit" value="Save Changes">
</form>
</div>
{% endblock %} {% 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