Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_appappandaway
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
Ian Rafael T. Aragoza
midterm_appappandaway
Commits
6c68fdc2
Commit
6c68fdc2
authored
May 15, 2023
by
iyamiks
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Created announcement templates and added styling
parent
cf47e2da
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
120 additions
and
1 deletion
+120
-1
announcement-add.html
...ntboard/templates/announcementboard/announcement-add.html
+26
-0
announcement-details.html
...ard/templates/announcementboard/announcement-details.html
+38
-0
announcement-edit.html
...tboard/templates/announcementboard/announcement-edit.html
+27
-0
announcements.html
...ementboard/templates/announcementboard/announcements.html
+28
-0
widgetuser-details.html
...way/dashboard/templates/dashboard/widgetuser-details.html
+1
-1
No files found.
widget_appappandaway/announcementboard/templates/announcementboard/announcement-add.html
0 → 100644
View file @
6c68fdc2
{% extends 'base.html' %}
{% load static %}
{% block title %}Add Announcement{% endblock %}
{% block content %}
{{ form.non_field_errors }}
<div
class=
"container-fluid p-3 bg-dark text-white text-center"
>
<br>
<h1
class=
"display-4"
>
Add a New Announcement:
</h1>
<br>
</div>
<div
class=
"container my-5 text-center"
>
<form
method=
"post"
>
{% csrf_token %}
{% for field in form %}
<p>
{{ field.label }} : {{ field }}
</p><br>
{% endfor %}
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-6"
>
<input
type=
"submit"
value=
"Add Announcement"
>
</div>
</div>
</div>
</form>
</div>
{% endblock %}
widget_appappandaway/announcementboard/templates/announcementboard/announcement-details.html
0 → 100644
View file @
6c68fdc2
{% extends 'base.html' %}
{% load static %}
{% block title %}{{ object.title }} {% endblock %}
{% block content %}
<div
class=
"container-fluid p-4 bg-dark text-white text-center"
>
<h1>
{{ object.title }}
</h1>
<br>
<div
class=
"container p-4"
>
<div
class=
"row"
>
<div
class=
"col-2"
>
</div>
<div
class=
"col-4"
>
<p>
by {{object.author.first_name }} {{object.author.last_name}}
</p>
</div>
<div
class=
"col-4"
>
<p>
{{ object.getFormattedDateTime }}
</p>
<br><br>
</div>
<div
class=
"col-12"
>
<h4>
{{ object.body }}
</h4>
<br><br>
</div>
<div
class=
"col-4"
>
<p>
Like: {{object.getLikeReacts}}
</p>
</div>
<div
class=
"col-4"
>
<p>
Love: {{object.getLoveReacts}}
</p>
</div>
<div
class=
"col-4"
>
<p>
Angry: {{object.getAngryReacts}}
</p>
</div>
<div
class=
"col-2"
>
</div>
</div>
</div>
<a
href=
"/announcements/{{ object.pk }}/edit/"
class=
"btn btn-primary"
>
Edit Announcement
</a>
</div>
{% endblock %}
widget_appappandaway/announcementboard/templates/announcementboard/announcement-edit.html
0 → 100644
View file @
6c68fdc2
{% extends 'base.html' %}
{% load static %}
{% block title %}Edit Announcement{% endblock %}
{% block content %}
{{ form.non_field_errors }}
<div
class=
"container-fluid p-3 bg-dark text-white text-center"
>
<br>
<h1
class=
"display-4"
>
Edit Announcement
</h1>
<br>
</div>
<div
class=
"container my-5 text-center"
>
<form
method=
"post"
>
{% csrf_token %}
{% for field in form %}
{{field.label}}:
<br>
{{field}}
<br>
<br>
{% endfor %}
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-12"
>
<input
type=
"submit"
value=
"Save Changes to Announcement"
class=
"btn btn-primary"
>
</div>
</div>
</div>
</form>
</div>
{% endblock %}
widget_appappandaway/announcementboard/templates/announcementboard/announcements.html
0 → 100644
View file @
6c68fdc2
{% extends 'base.html' %}
{% load static %}
{% block title %}Widget's Announcement Board{% endblock %}
{% block content %}
<div
class=
"container-fluid p-3 bg-dark text-white text-center"
>
<br>
<h1
class=
"display-4"
>
Welcome to Widget's Announcement Board!
</h1>
<br>
</div>
<div
class=
"container my-5 text-center"
>
<h3
class=
"display-6"
>
Announcements:
</h3>
<br>
{% for object in announcements %}
<p><a
href=
"{{ object.get_absolute_url }}"
>
{{ object.title }} by {{ object.author.first_name }} {{ object.author.last_name }}
</a></p>
{% endfor %}
<br><br>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-6"
>
<a
href=
"/announcements/add"
><button
type=
"button"
class=
"btn btn-primary"
>
New Announcement
</button></a>
</div>
<div
class=
"col-6"
>
<a
href=
"/dashboard/"
><button
type=
"button"
class=
"btn btn-primary"
>
Dashboard
</button></a>
</div>
</div>
</div>
</div>
{% endblock %}
widget_appappandaway/dashboard/templates/dashboard/widgetuser-details.html
View file @
6c68fdc2
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<a
href=
"/dashboard"
><button
type=
"button"
class=
"btn btn-primary"
>
Dashboard
</button></a>
<a
href=
"/dashboard"
><button
type=
"button"
class=
"btn btn-primary"
>
Dashboard
</button></a>
</div>
</div>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
<a
href=
"/
A
nnouncements"
><button
type=
"button"
class=
"btn btn-primary"
>
Announcements
</button></a>
<a
href=
"/
a
nnouncements"
><button
type=
"button"
class=
"btn btn-primary"
>
Announcements
</button></a>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
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