Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_nicsbabes
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
Nics De Vega
midterm_nicsbabes
Commits
2d64e7fb
Commit
2d64e7fb
authored
May 11, 2023
by
Nics De Vega
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edited announcement_board templates
parent
586a30f2
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
38 deletions
+49
-38
announcement-add.html
..._board/templates/announcement_board/announcement-add.html
+6
-4
announcement-details.html
...rd/templates/announcement_board/announcement-details.html
+14
-10
announcement-edit.html
...board/templates/announcement_board/announcement-edit.html
+9
-8
announcements.html
...ent_board/templates/announcement_board/announcements.html
+20
-16
No files found.
widget_nicsbabes/announcement_board/templates/announcement_board/announcement-add.html
View file @
2d64e7fb
{% extends 'base.html' %}
{% extends 'base.html' %}
{% load static %}
{% load static %}
{% block title %}Add Announcement{% endblock %}
{% block title %}Add Announcement{% endblock %}
{% block content %}
{% block content %}
<h2>
Add a new Announcement
</h2>
<h1>
Add a new Announcement
</h1>
<form
method=
"post"
>
<form
method=
"post"
>
{% csrf_token %}
{% csrf_token %}
{% for field in form %}
{{ form.as_p }}
<h3>
{{field.label}}: {{field}}
<br><br></h3>
{% endfor %}
<input
type=
"submit"
value=
"Add Announcement"
>
<input
type=
"submit"
value=
"Add Announcement"
>
</form>
</form>
{% endblock %}
{% endblock %}
widget_nicsbabes/announcement_board/templates/announcement_board/announcement-details.html
View file @
2d64e7fb
{% extends 'base.html' %}
{% extends 'base.html' %}
{% load static %}
{% load static %}
{% block title %}{{object.title}}{% endblock %}
{% block title %}{{object.title}}{% endblock %}
{% block content %}
{% block content %}
<h2>
{{object.title}}
</h2>
<ul>
<h1>
{{object.title}}
</h1>
<li><h3>
by {{object.author.first_name}} {{object.author.last_name}}
</h3></li>
<li><h3>
{{object.pub_datetime|date:'m/d/Y h:i A'}}
</h3></li>
<h3>
by {{object.author.first_name}} {{object.author.last_name}}
</h3>
<li><h3>
{{object.body}}
</h4></li>
<h3>
{{object.pub_datetime|date:'m/d/Y, h:i A'}}
</h3>
<h3>
{{object.body}}
</h3>
{%for key, value in object.get_reactions.items%}
{%for key, value in object.get_reactions.items%}
<li><h3>
{{key}}: {{value}}
</h3></li
>
<h3>
{{key}}: {{value}}
</h3
>
{% endfor%}
{% endfor%}
<h3><a
href=
"../edit/"
>
Edit Announcement
</a></h3>
<form
action=
"../edit"
>
</ul>
<input
type=
"submit"
value=
"Edit Announcement"
>
</form>
{% endblock %}
{% endblock %}
widget_nicsbabes/announcement_board/templates/announcement_board/announcement-edit.html
View file @
2d64e7fb
{% extends 'base.html' %}
{% extends 'base.html' %}
{% load static %}
{% load static %}
{% block title %}Edit Announcement{% endblock %}
{% block title %}Edit Announcement{% endblock %}
{% block content %}
{% block content %}
<h2>
Edit Announcement
</h2>
<h1>
Edit Announcement
</h1>
<form
method=
"post"
>
<form
method=
"post"
>
{% csrf_token %}
{% csrf_token %}
{% for field in form %}
{{ form.as_p }}
<h3>
{{field.label}}: {{field}}
<br><br></h3>
{% endfor %}
<input
type=
"submit"
value=
"Save Changes to Announcement"
>
<input
type=
"submit"
value=
"Save Changes to Announcement"
>
</form>
</form>
...
...
widget_nicsbabes/announcement_board/templates/announcement_board/announcements.html
View file @
2d64e7fb
...
@@ -3,23 +3,27 @@
...
@@ -3,23 +3,27 @@
{% block title %}Widget's Announcement Board{% endblock %}
{% block title %}Widget's Announcement Board{% endblock %}
{% block content %}
{% block content %}
<h2>
Welcome to Widget's Announcement Board!
</h2>
<br>
<h1>
Welcome to Widget's Announcement Board!
</h1>
<h3>
{% for object in announcements %}
{% for object in announcements %}
<h3><a
href=
"{{ object.get_absolute_url }}"
>
{{object.title}} by {{object.author.first_name}} {{object.author.last_name}}
</a></h3>
<a
href=
"{{ object.get_absolute_url }}"
>
{% endfor %}
{{object.title}} by {{object.author.first_name}} {{object.author.last_name}}
</a>
<br>
<br>
{% endfor %}
</h3>
<h3><a
href=
"add/"
>
Add Announcement
</a></h3>
<form
action=
"add"
>
<br>
<input
type=
"submit"
value=
"Add Announcement"
>
</form>
<h2>
<h3>
<small>
<a
href=
"../dashboard/"
>
Dashboard
</a><br>
<a
href=
"../dashboard/"
>
Dashboard
</a><br>
<a
href=
"../forum/"
>
Forum
</a><br>
<a
href=
"../forum/"
>
Forum
</a><br>
<a
href=
"../assignments/"
>
Assignments
</a><br>
<a
href=
"../assignments/"
>
Assignments
</a><br>
<a
href=
"../calendar/"
>
Calendar
</a><br>
<a
href=
"../calendar/"
>
Calendar
</a><br>
</h3>
</small>
</h2>
{% 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