Commit acdb94cf authored by Ysabella Panghulan's avatar Ysabella Panghulan

edited styling of edit and add forms

parent 84e91c41
{%extends 'base.html'%}
{% block stylesheets %}
{% load static %}
<link rel="stylesheet" type="text/css" href="{% static 'stylesheets/form.css' %}">
{% endblock %}
{% block title %} Add New Author {% endblock %}
{% block body %}
{% block content %}
<form method="POST" action="">
{% csrf_token %}
{{form}}
<input type="Submit" value="Add Author">
</form>
<div class="form">
<form method="POST" action="">
{% csrf_token %}
{{form}}
<input type="Submit" value="Add Author">
</form>
</div>
{% endblock %}
{% endblock %}
\ No newline at end of file
{%extends 'base.html'%}
{% block stylesheets %}
{% load static %}
<link rel="stylesheet" type="text/css" href="{% static 'stylesheets/form.css' %}">
{% endblock %}
{% block title %} Add New Book {% endblock %}
{% block body %}
{% block content %}
<form method="POST" action="">
{% csrf_token %}
{{form}}
<input type="Submit" value="Add Book">
</form>
<div class="form">
<form method="POST" action="">
{% csrf_token %}
{{form}}
<input type="Submit" value="Add Book">
</form>
</div>
{% endblock %}
{% endblock %}
\ No newline at end of file
{%extends 'base.html'%}
{% block stylesheets %}
{% load static %}
<link rel="stylesheet" type="text/css" href="{% static 'stylesheets/form.css' %}">
{% endblock %}
{% block title %} Edit Author {% endblock %}
{% block body %}
{% block content %}
<form method="POST" action="">
{% csrf_token %}
{{form}}
<input type="Submit" value="Save Changes">
</form>
<div class="form">
<form method="POST" action="">
{% csrf_token %}
{{form}}
<input type="Submit" value="Save Changes">
</form>
</div>
{% endblock %}
{% endblock %}
\ No newline at end of file
{%extends 'base.html'%}
{% block stylesheets %}
{% load static %}
<link rel="stylesheet" type="text/css" href="{% static 'stylesheets/form.css' %}">
{% endblock %}
{% block title %} Edit Book {% endblock %}
{% block body %}
{% block content %}
<form method="POST" action="">
{% csrf_token %}
{{form}}
<input type="Submit" value="Save Changes">
</form>
<div class="form">
<form method="POST" action="">
{% csrf_token %}
{{form}}
<input type="Submit" value="Save Changes">
</form>
</div>
{% endblock %}
{% endblock %}
\ No newline at end of file
......@@ -20,10 +20,14 @@
myself and the world around me. My favorite books include: Ikigai: The Japanese Secret to a Long and Happy Life
and The Subtle Art of Not Giving a F*ck. </p>
<div class="links">
<a href="/books/" class="btn-primary">Books</a>
<a href="books/add" class="btn-primary">Add Book</a>
<a href="/authors/" class="btn-secondary">Authors</a>
<a href="authors/add" class="btn-secondary">Add Author</a>
<div class="books-links">
<a href="/books/" class="btn-primary">Books</a>
<a href="books/add" class="btn-secondary">Add Book</a>
</div>
<div class="authors-links">
<a href="/authors/" class="btn-primary">Authors</a>
<a href="authors/add" class="btn-secondary">Add Author</a>
</div>
</div>
{% endblock %}
</div>
......
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