Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_tee jays angelos
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
Ramon Angelo Enriquez
widget_tee jays angelos
Commits
2d945d2d
Commit
2d945d2d
authored
May 21, 2022
by
Sumawang, Tee Jay Jr. C.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added New Announcement link and form correlating to it
parent
d10526f0
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
1 deletion
+23
-1
announcementsstyle.css
...announcements/static/announcements/announcementsstyle.css
+5
-0
announcements.html
.../announcements/templates/announcements/announcements.html
+12
-0
index.html
..._angelos/announcements/templates/announcements/index.html
+2
-1
urls.py
widget_tee_jays_angelos/announcements/urls.py
+1
-0
views.py
widget_tee_jays_angelos/announcements/views.py
+3
-0
No files found.
widget_tee_jays_angelos/announcements/static/announcements/announcementsstyle.css
View file @
2d945d2d
/* body
{
background-color: black;
} */
h1
{
color
:
pink
;
...
...
widget_tee_jays_angelos/announcements/templates/announcements/announcements.html
0 → 100644
View file @
2d945d2d
{% extends "announcements/base.html" %}
{% block content %}
<div
class=
"indexRectangularShadow"
></div>
<h1
style=
"text-align: center"
>
New Announcement
</h1>
<form
action=
""
>
<p>
Enter Title:
<input
type=
"text"
name=
"title"
></p>
<p>
Enter Body:
<input
type=
"text"
name=
"body"
></p>
<p>
Choose author:
<input
type=
"text"
name=
"author"
></p>
<p>
Image (optional):
<input
type=
"image"
name=
"image"
></p>
<input
type=
"Submit"
>
</form>
{% endblock %}
\ No newline at end of file
widget_tee_jays_angelos/announcements/templates/announcements/index.html
View file @
2d945d2d
...
...
@@ -10,6 +10,7 @@
<img
src=
"/static/announcements/indexMegaphoneIcon.jpg"
class=
"indexMegaphoneIcon"
>
{% endfor %}
</ul>
<h2><a
href=
"/announcements/add"
>
New Announcement
</a></h2>
{% else %}
<p>
No Announcements are available
</p>
{% endif %}
...
...
widget_tee_jays_angelos/announcements/urls.py
View file @
2d945d2d
...
...
@@ -3,5 +3,6 @@ from . import views
urlpatterns
=
[
path
(
''
,
views
.
index
,
name
=
"announcements"
),
path
(
'add/'
,
views
.
add
,
name
=
"add"
),
path
(
'<int:announcement_id>/details/'
,
views
.
details
,
name
=
"details"
),
]
widget_tee_jays_angelos/announcements/views.py
View file @
2d945d2d
...
...
@@ -12,6 +12,9 @@ def index(request):
}
return
render
(
request
,
"announcements/index.html"
,
context
)
def
add
(
request
):
return
render
(
request
,
"announcements/announcements.html"
)
# helper function that iterates through every reaction of an announcement, adds it to an array, then returns it
def
getReactions
(
pk
):
announcementReactions
=
[]
...
...
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