Commit f4bab3a2 authored by Julia Anishka's avatar Julia Anishka

added css styling to announcement pages

parent 58df9e25
body {
height: 100vh;
background-color: #E9E3FE;
display: flex;
align-items: center;
justify-content: center;
}
.announcement-content {
margin-top: auto;
padding: 2rem;
border-radius: 0.5rem;
background-color: white
}
\ No newline at end of file
{% extends 'base.html' %} {% extends 'base.html' %}
{% load static %}
{% block stylesheets %}
<link rel="stylesheet" type="text/css" href="{% static 'stylesheets/forms.css' %}">
{% endblock %}
{% block title %} Add Announcement {% endblock %} {% block title %} Add Announcement {% endblock %}
{% block header %} {% block header %}
<h1> Add a new announcement: </h1> <h1> Add a new announcement: </h1>
{% endblock %} {% endblock %}
{% block body %} {% block body %}
<form method='POST'> {% block content %}
{% csrf_token %} <div class="form">
{{ form }} <form method="POST" action="">
<input type="Submit" value="Add Announcement"> {% csrf_token %}
</form> {{ form }}
<input type="Submit" value="Add Announcement">
</form>
</div>
{% endblock %}
{% endblock %} {% endblock %}
\ No newline at end of file
{% extends 'base.html' %} {% extends 'base.html' %}
{% load static %}
{% block stylesheets %}
<link rel="stylesheet" type="text/css" href="{% static 'announcementboard/announcements.css' %}">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
{% endblock %}
{% block title %} {{ announcement.title }} {% endblock %} {% block title %} {{ announcement.title }} {% endblock %}
{% block header %} {% block header %}
<h1> {{ announcement.title }} </h1> <h1> {{ announcement.title }} </h1>
{% endblock %} {% endblock %}
{% block body %} {% block body %}
<h4> by {{ announcement.author.first_name }} {{ announcement.author.last_name }}</h4> <div class="announcement-content">
<h4>{{ announcement.pub_datetime|date:'m/d/Y, H:i A'}}</h4> {% block content %}
<h4>{{ announcement.body }}</h4> <div class="details">
<ul> <h4> by {{ announcement.author.first_name }} {{ announcement.author.last_name }}</h4>
<li>Like: {{ tallies.like|default:0 }}</li> <h4>{{ announcement.pub_datetime|date:'m/d/Y, H:i A'}}</h4>
<li>Love: {{ tallies.love|default:0 }}</li> <h4>{{ announcement.body }}</h4>
<li>Angry: {{ tallies.angry|default:0 }}</li> <h4>Like: {{ tallies.like|default:0 }}</h4>
</ul> <h4>Love: {{ tallies.love|default:0 }}</h4>
<a href="{% url 'announcementboard:announcement-edit' announcement.id %}"> Edit Announcement </a> <h4>Angry: {{ tallies.angry|default:0 }}</h4>
</div>
{% endblock %}
<a href="{% url 'announcementboard:announcement-edit' announcement.id %}" class="edit-btn"><i class="fa fa-edit"></i> Edit Announcement </a>
</div>
{% endblock %} {% endblock %}
\ No newline at end of file
{% extends 'base.html' %} {% extends 'base.html' %}
{% load static %}
{% block stylesheets %}
<link rel="stylesheet" type="text/css" href="{% static 'stylesheets/forms.css' %}">
{% endblock %}
{% block title %} Edit Announcement {% endblock %} {% block title %} Edit Announcement {% endblock %}
{% block header %} {% block header %}
<h1> Edit announcement: </h1> <h1> Edit announcement: </h1>
{% endblock %} {% endblock %}
{% block body %} {% block body %}
<form method='POST'> {% block content %}
<div class="form">
<form method="POST" action="">
{% csrf_token %} {% csrf_token %}
{{ form }} {{ form }}
<input type="Submit" value="Save Changes to Announcement"> <input type="Submit" value="Save Changes to Announcement">
</form> </form>
</div>
{% endblock %} {% endblock %}
{% endblock %}
\ No newline at end of file
{% extends 'base.html' %} {% extends 'base.html' %}
{% load static %} {% load static %}
{% block stylesheets %} {% block stylesheets %}
<link rel="stylesheet" href="{% static 'announcements.css' %}">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
{% 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