Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_princessgabi
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ysabella Panghulan
midterm_princessgabi
Commits
f4bab3a2
Commit
f4bab3a2
authored
May 13, 2023
by
Julia Anishka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added css styling to announcement pages
parent
58df9e25
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
62 additions
and
21 deletions
+62
-21
announcements.css
...ouncementboard/static/announcementboard/announcements.css
+14
-0
announcement-add.html
...ntboard/templates/announcementboard/announcement-add.html
+16
-6
announcement-details.html
...ard/templates/announcementboard/announcement-details.html
+19
-10
announcement-edit.html
...tboard/templates/announcementboard/announcement-edit.html
+13
-4
announcements.html
...ementboard/templates/announcementboard/announcements.html
+0
-1
No files found.
widget_princessgabi/announcementboard/static/announcementboard/announcements.css
View file @
f4bab3a2
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
widget_princessgabi/announcementboard/templates/announcementboard/announcement-add.html
View file @
f4bab3a2
{% 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 header %}
<h1>
Add a new announcement:
</h1>
{% endblock %}
{% block body %}
<form
method=
'POST'
>
{% csrf_token %}
{{ form }}
<input
type=
"Submit"
value=
"Add Announcement"
>
</form>
{% block content %}
<div
class=
"form"
>
<form
method=
"POST"
action=
""
>
{% csrf_token %}
{{ form }}
<input
type=
"Submit"
value=
"Add Announcement"
>
</form>
</div>
{% endblock %}
{% endblock %}
\ No newline at end of file
widget_princessgabi/announcementboard/templates/announcementboard/announcement-details.html
View file @
f4bab3a2
{% 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 header %}
<h1>
{{ announcement.title }}
</h1>
{% endblock %}
{% block body %}
<h4>
by {{ announcement.author.first_name }} {{ announcement.author.last_name }}
</h4>
<h4>
{{ announcement.pub_datetime|date:'m/d/Y, H:i A'}}
</h4>
<h4>
{{ announcement.body }}
</h4>
<ul>
<li>
Like: {{ tallies.like|default:0 }}
</li>
<li>
Love: {{ tallies.love|default:0 }}
</li>
<li>
Angry: {{ tallies.angry|default:0 }}
</li>
</ul>
<a
href=
"{% url 'announcementboard:announcement-edit' announcement.id %}"
>
Edit Announcement
</a>
<div
class=
"announcement-content"
>
{% block content %}
<div
class=
"details"
>
<h4>
by {{ announcement.author.first_name }} {{ announcement.author.last_name }}
</h4>
<h4>
{{ announcement.pub_datetime|date:'m/d/Y, H:i A'}}
</h4>
<h4>
{{ announcement.body }}
</h4>
<h4>
Like: {{ tallies.like|default:0 }}
</h4>
<h4>
Love: {{ tallies.love|default:0 }}
</h4>
<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 %}
\ No newline at end of file
widget_princessgabi/announcementboard/templates/announcementboard/announcement-edit.html
View file @
f4bab3a2
{% 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 header %}
<h1>
Edit announcement:
</h1>
<h1>
Edit announcement:
</h1>
{% endblock %}
{% block body %}
<form
method=
'POST'
>
{% block content %}
<div
class=
"form"
>
<form
method=
"POST"
action=
""
>
{% csrf_token %}
{{ form }}
<input
type=
"Submit"
value=
"Save Changes to Announcement"
>
</form>
</form>
</div>
{% endblock %}
{% endblock %}
\ No newline at end of file
widget_princessgabi/announcementboard/templates/announcementboard/announcements.html
View file @
f4bab3a2
{% extends 'base.html' %}
{% load static %}
{% 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"
>
{% endblock %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment