Commit 893cc13f authored by Mary Adelaide A. Salto's avatar Mary Adelaide A. Salto
parents c78f6424 43a7dbc9
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
{% extends 'base.html' %}
{% load static %}
{% block page-title %}Add Announcement:{% endblock %}
{% block page-title %}Add Announcement{% endblock %}
{% block heading %}
<!DOCTYPE html>
......@@ -49,9 +49,11 @@ li a:hover {
{% block content %}
<form method="POST">
{% csrf_token %}
<h3>
<table>
{{ form.as_table }}
</table><br><br>
</table><br><br>
</h3>
<p>
<input class="button" type="submit" value="Add Announcement">
</p>
......
......@@ -36,7 +36,11 @@ li a:hover {
<body>
<ul>
<<<<<<< HEAD
<li><a class="active" href="/announcement_board/">Announcements</a></li>
=======
<li><a class="active" href="/announcement_board/">Announcement Board</a></li>
>>>>>>> 43a7dbc9324df50f12044741db9be28e324c36fe
<li><a href="/dashboard/">Dashboard</a></li>
<li><a href="/forum/">Forum</a></li>
</ul>
......@@ -49,9 +53,13 @@ li a:hover {
{% block content %}
<form method="post">
{% csrf_token %}
<h3>
<table>
{{ form.as_table }}
{{ form.as_table }}
</table><br><br>
<input class="button" type="submit" value="Save Changes to Announcement">
</form>
</h3>
<p>
<input class="button" type="submit" value="Save Changes to Announcement">
</p>
</form>
{% endblock %}
\ No newline at end of file
......@@ -2,7 +2,6 @@ from django.shortcuts import render
from django.views.generic.detail import DetailView
from django.views.generic.edit import CreateView, UpdateView
from .models import Announcement
from django.http import Http404
def index(request):
announcement_view = "Widget's Announcement Board <br/>"
......@@ -30,6 +29,7 @@ class AnnouncementsUpdateView(UpdateView):
fields = 'title', 'body', 'author'
template_name = 'announcements/announcement-edit.html'
# for a in announcements:
# like_tally=0
# love_tally=0
......
......@@ -96,6 +96,7 @@ ol {
text-shadow: 3px 3px 6px black;
}
<<<<<<< HEAD
/* announcement details heading */
section {
......@@ -125,4 +126,22 @@ body {
h1 {
font-family: 'Papyrus';
text-align: center;
}
\ No newline at end of file
}
=======
/* announcement details heading */
section {
height: 100vh;
background: lightblue;
}
section span {
margin: 0;
font-size: 400%;
text-align: center;
line-height: 1;
padding-top: calc(50vh - 20pt);
display: block;
font-weight: 700;
font-family: 'Dancing Script', cursive;
}
>>>>>>> 43a7dbc9324df50f12044741db9be28e324c36fe
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