Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_vincentdjango
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
1
Merge Requests
1
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
Almira Redoble
midterm_vincentdjango
Commits
21a5be82
Commit
21a5be82
authored
May 11, 2023
by
Jayson Lim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
applied css styling to the pages
parent
e76c70e0
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
13 deletions
+16
-13
announcement-add.html
...nouncements/templates/announcements/announcement-add.html
+3
-3
announcement-details.html
...cements/templates/announcements/announcement-details.html
+5
-3
announcement-edit.html
...ouncements/templates/announcements/announcement-edit.html
+3
-2
announcements.html
.../announcements/templates/announcements/announcements.html
+5
-5
db.sqlite3
widget_vincentdjango/db.sqlite3
+0
-0
No files found.
widget_vincentdjango/announcements/templates/announcements/announcement-add.html
View file @
21a5be82
...
@@ -3,13 +3,13 @@
...
@@ -3,13 +3,13 @@
{% block title %} Add Announcement {% endblock %}
{% block title %} Add Announcement {% endblock %}
{% block heading %}
{% block heading %}
<h1>
Add a new announcement:
</h1>
<h1
class=
"subheader"
>
Add a new announcement:
</h1>
{% endblock %}
{% endblock %}
{% block content %}
{% block content %}
<form
method=
"post"
>
<form
method=
"post"
>
{% csrf_token %}
{% csrf_token %}
{{ form.as_p }}
{{ form.as_p }}
<div
class=
"separator-bar"
></div>
<br>
<div
class=
"separator-bar"
></div>
<input
type=
"submit"
value=
"Save New Pos
t"
>
<input
class=
"action-button"
type=
"submit"
value=
"Add Announcemen
t"
>
</form>
</form>
{% endblock %}
{% endblock %}
widget_vincentdjango/announcements/templates/announcements/announcement-details.html
View file @
21a5be82
...
@@ -6,14 +6,16 @@
...
@@ -6,14 +6,16 @@
<h1>
{{ object.title }}
</h1>
<h1>
{{ object.title }}
</h1>
<h2>
by {{ object.author.first_name }} {{ object.author.last_name }}
</h2>
<h2>
by {{ object.author.first_name }} {{ object.author.last_name }}
</h2>
<h4>
{{ object.format_pub_datetime }}
</h4>
<h4>
{{ object.format_pub_datetime }}
</h4>
<p>
{{ object.body }}
</p>
<p
class=
"detail-body"
>
{{ object.body }}
</p>
<div
class=
"separator-bar"
></div>
{% for reaction in object.reactions.all %}
{% for reaction in object.reactions.all %}
<p>
<p
class=
"detail-additionalinfo"
>
{{ reaction.name }}: {{ reaction.tally }}
{{ reaction.name }}: {{ reaction.tally }}
</p>
</p>
{% endfor %}
{% endfor %}
<button
onclick=
"window.location.href='{% url 'announcements:announcements-edit' pk=object.pk %}'"
>
<div
class=
"separator-bar"
></div>
<button
class=
"action-button"
onclick=
"window.location.href='{% url 'announcements:announcements-edit' pk=object.pk %}'"
>
Edit Announcement
Edit Announcement
</button>
</button>
{% endblock %}
{% endblock %}
\ No newline at end of file
widget_vincentdjango/announcements/templates/announcements/announcement-edit.html
View file @
21a5be82
...
@@ -3,13 +3,14 @@
...
@@ -3,13 +3,14 @@
{% block title %} Edit Anouncement {% endblock %}
{% block title %} Edit Anouncement {% endblock %}
{% block heading %}
{% block heading %}
<h1>
Edit Announcement:
</h1>
<h1
class=
"subheader"
>
Edit Announcement:
</h1>
{% endblock %}
{% endblock %}
{% block content %}
{% block content %}
<form
method=
"post"
>
<form
method=
"post"
>
{% csrf_token %}
{% csrf_token %}
{{ form.as_p }}
{{ form.as_p }}
<br>
<br>
<input
type=
"submit"
value=
"Save Changes to Announcement"
>
<div
class=
"separator-bar"
></div>
<input
class=
"action-button"
type=
"submit"
value=
"Save Changes to Announcement"
>
</form>
</form>
{% endblock %}
{% endblock %}
widget_vincentdjango/announcements/templates/announcements/announcements.html
View file @
21a5be82
...
@@ -3,21 +3,21 @@
...
@@ -3,21 +3,21 @@
{% block title %} Widget's Announcement Board {% endblock %}
{% block title %} Widget's Announcement Board {% endblock %}
{% block heading %}
{% block heading %}
<h1>
Welcome to Widget's Announcement Board!
</h1>
<h1
id=
"header"
>
Welcome to Widget's Announcement Board!
</h1>
{% endblock %}
{% endblock %}
{% block content %}
{% block content %}
<h2>
Announcements:
</h2>
<h2
class=
"subheader"
>
Announcements:
</h2>
<ul>
<ul>
{% for object in announcements|dictsortreversed:"pub_datetime" %}
{% for object in announcements|dictsortreversed:"pub_datetime" %}
<li>
<li
class=
"object-cell"
>
<a
href=
"{{ object.get_absolute_url }}"
>
{{ object.title }}
by
<a
href=
"{{ object.get_absolute_url }}"
>
<span
class=
"object-title"
>
{{ object.title }}
</span>
by
{{ object.author.first_name}} {{ object.author.last_name }}
{{ object.author.first_name}} {{ object.author.last_name }}
</a>
</a>
</li>
</li>
{% endfor %}
{% endfor %}
</ul>
</ul>
<hr>
<hr>
<button
onclick=
"window.location.href='{% url 'announcements:announcements-add' %}'"
>
<button
onclick=
"window.location.href='{% url 'announcements:announcements-add' %}'"
class=
"action-button"
>
New Announcement
New Announcement
</button>
</button>
<div
id=
"footer"
>
<div
id=
"footer"
>
...
...
widget_vincentdjango/db.sqlite3
View file @
21a5be82
No preview for this file type
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