Created/updated new/old html files

parent 0fa11809
{% extends 'base.html' %}
{% 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>
{% endblock %}
\ No newline at end of file
{% extends 'base.html' %}
{% 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>
{% endblock %}
......@@ -17,8 +17,12 @@
</div>
<div class="container p-3">
<p><b>Biography:</b><br><br>
{{object.bio }}
{{ object.bio }}
</p>
<button type="button" class="btn btn-dark">
<a href="/bookshelf/authors/{{object.pk}}/edit" class="link-light">Edit Author</a>
</button>
<br><br>
</div>
<div class="container-fluid p-4 bg-dark text-white">
<h2>Books by {{object.first_name}} {{object.last_name}} I love:</h2>
......
......@@ -27,6 +27,10 @@
<b>Blurb:</b> {{ object.blurb }}
</p>
</div>
<button type="button" class="btn btn-dark">
<a href="/bookshelf/books/{{object.pk}}/edit" class="link-light">Edit Book</a>
</button>
<br><br>
<button type="button" class="btn btn-dark">
<a href="/bookshelf/home/" class="link-light">Home</a>
</button>
......
{% extends 'base.html' %}
{% 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>
{% endblock %}
\ No newline at end of file
{% extends 'base.html' %}
{% 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>
{% endblock %}
......@@ -23,5 +23,12 @@
<button type="button" class="btn btn-dark">
<a href="/bookshelf/authors/" class="link-light">Authors</a>
</button>
<br><br>
<button type="button" class="btn btn-dark">
<a href="../books/add/" class="link-light">Add Book</a>
</button>
<button type="button" class="btn btn-dark">
<a href="../authors/add/" class="link-light">Add Author</a>
</button>
</div>
{% endblock %}
\ No newline at end of file
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