Commit ba420ee3 authored by rachbit's avatar rachbit

added edit-book.html

parent 7e8679f1
...@@ -26,6 +26,12 @@ fundamental.<br> ...@@ -26,6 +26,12 @@ fundamental.<br>
<li>{{object.blurb}}</li> <li>{{object.blurb}}</li>
</ul> </ul>
<br> <br>
<div class="text-center">
<form action="edit">
<input type="submit" value="Edit Book">
</form>
</div>
<br>
{% endblock %} {% endblock %}
{% block navbar %} {% block navbar %}
<li><a href="/bookshelf/home">Home</a></li> <li><a href="/bookshelf/home">Home</a></li>
......
{% extends 'base.html' %} {% extends 'base.html' %}
{% load static %} {% load static %}
{% block title %}Edit Book{% endblock %}
{% block content %} {% block title %}Edit a Book{% endblock %}
<div class="text-center"> {% block header %}
<br> <cite><h1 class="text-center">May pagkakamali ba ako?</h1></cite>
<br> {% endblock %}
{% block subtitle %}
<p class="text-center">
feel free to edit book details in my collection.<br>
-
</p>
{% endblock %}
<div class="text-center">
</div>
{% block form %}
<form method="post"> <form method="post">
{% csrf_token %} {% csrf_token %}
{% for field in form %} {{ form.as_p }}
{{field.label}}:{{field}} <br><br>
{% endfor %}
<input type="submit" value="Save Changes"> <input type="submit" value="Save Changes">
</form> </form>
</div> </div>
{% endblock %} {% endblock %}
...@@ -14,6 +14,10 @@ ...@@ -14,6 +14,10 @@
margin: 0 auto; margin: 0 auto;
width:300px; width:300px;
} }
.container-custom {
margin: 0 auto;
width:500px;
}
</style> </style>
<title>{% block title %}My amazing site{% endblock %}</title> <title>{% block title %}My amazing site{% endblock %}</title>
<nav class="navbar navbar-custom"> <nav class="navbar navbar-custom">
...@@ -34,7 +38,7 @@ ...@@ -34,7 +38,7 @@
{% block subtitle %}{% endblock %} {% block subtitle %}{% endblock %}
</figcaption> </figcaption>
</blockquote> </blockquote>
<figure class="container-fluid"> <figure class="container container-custom">
<div class="text-left"> <div class="text-left">
{% block content %}{% endblock %} {% block content %}{% endblock %}
</div> </div>
...@@ -47,4 +51,11 @@ ...@@ -47,4 +51,11 @@
</figure> </figure>
</figure> </figure>
</body> </body>
<nav class="navbar navbar-custom">
<div class="container-center">
<ul class="nav navbar-nav navbar-center">
{% block footer %}{% endblock %}
</ul>
</div>
</nav>
</html> </html>
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