Commit 21a5be82 authored by Jayson Lim's avatar Jayson Lim

applied css styling to the pages

parent e76c70e0
...@@ -3,13 +3,13 @@ ...@@ -3,13 +3,13 @@
{% block title %} Add Announcement {% endblock %} {% block title %} Add Announcement {% endblock %}
{% block heading %} {% block heading %}
<h1> Add a new announcement: </h1> <h1 class="subheader"> Add a new announcement: </h1>
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<form method="post"> <form method="post">
{% csrf_token %} {% csrf_token %}
{{ form.as_p }} {{ form.as_p }}
<div class="separator-bar"></div><br> <div class="separator-bar"></div>
<input type="submit" value="Save New Post"> <input class="action-button" type="submit" value="Add Announcement">
</form> </form>
{% endblock %} {% endblock %}
...@@ -6,14 +6,16 @@ ...@@ -6,14 +6,16 @@
<h1> {{ object.title }} </h1> <h1> {{ object.title }} </h1>
<h2> by {{ object.author.first_name }} {{ object.author.last_name }} </h2> <h2> by {{ object.author.first_name }} {{ object.author.last_name }} </h2>
<h4> {{ object.format_pub_datetime }} </h4> <h4> {{ object.format_pub_datetime }} </h4>
<p> {{ object.body }} </p> <p class="detail-body"> {{ object.body }} </p>
<div class="separator-bar"></div>
{% for reaction in object.reactions.all %} {% for reaction in object.reactions.all %}
<p> <p class="detail-additionalinfo">
{{ reaction.name }}: {{ reaction.tally }} {{ reaction.name }}: {{ reaction.tally }}
</p> </p>
{% endfor %} {% endfor %}
<button onclick="window.location.href='{% url 'announcements:announcements-edit' pk=object.pk %}'"> <div class="separator-bar"></div>
<button class="action-button" onclick="window.location.href='{% url 'announcements:announcements-edit' pk=object.pk %}'">
Edit Announcement Edit Announcement
</button> </button>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -3,13 +3,14 @@ ...@@ -3,13 +3,14 @@
{% block title %} Edit Anouncement {% endblock %} {% block title %} Edit Anouncement {% endblock %}
{% block heading %} {% block heading %}
<h1> Edit Announcement: </h1> <h1 class="subheader"> Edit Announcement: </h1>
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<form method="post"> <form method="post">
{% csrf_token %} {% csrf_token %}
{{ form.as_p }} {{ form.as_p }}
<br> <br>
<input type="submit" value="Save Changes to Announcement"> <div class="separator-bar"></div>
<input class="action-button" type="submit" value="Save Changes to Announcement">
</form> </form>
{% endblock %} {% endblock %}
...@@ -3,21 +3,21 @@ ...@@ -3,21 +3,21 @@
{% block title %} Widget's Announcement Board {% endblock %} {% block title %} Widget's Announcement Board {% endblock %}
{% block heading %} {% block heading %}
<h1> Welcome to Widget's Announcement Board! </h1> <h1 id="header"> Welcome to Widget's Announcement Board! </h1>
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<h2> Announcements: </h2> <h2 class="subheader"> Announcements: </h2>
<ul> <ul>
{% for object in announcements|dictsortreversed:"pub_datetime" %} {% for object in announcements|dictsortreversed:"pub_datetime" %}
<li> <li class="object-cell">
<a href="{{ object.get_absolute_url }}"> {{ object.title }} by <a href="{{ object.get_absolute_url }}"> <span class="object-title">{{ object.title }}</span> by
{{ object.author.first_name}} {{ object.author.last_name }} {{ object.author.first_name}} {{ object.author.last_name }}
</a> </a>
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
<hr> <hr>
<button onclick="window.location.href='{% url 'announcements:announcements-add' %}'"> <button onclick="window.location.href='{% url 'announcements:announcements-add' %}'" class="action-button">
New Announcement New Announcement
</button> </button>
<div id="footer"> <div id="footer">
......
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