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
1b11bdbd
Commit
1b11bdbd
authored
May 14, 2023
by
Ysabella Panghulan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'announcementsv2'
parents
2b3925f1
f4bab3a2
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 @
1b11bdbd
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 @
1b11bdbd
{% 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
widget_princessgabi/announcementboard/templates/announcementboard/announcement-details.html
View file @
1b11bdbd
{% 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
widget_princessgabi/announcementboard/templates/announcementboard/announcement-edit.html
View file @
1b11bdbd
{% 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
widget_princessgabi/announcementboard/templates/announcementboard/announcements.html
View file @
1b11bdbd
{% 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 %}
...
...
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