Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_robo_mommy
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Raul Jarod Conanan
midterm_robo_mommy
Commits
6906b1b3
Commit
6906b1b3
authored
May 14, 2023
by
Lance Dominic B. Santuyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edited the HTML templates for Announcements to use CSS
parent
5017f00a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
41 deletions
+48
-41
announcement-add.html
...nouncements/templates/announcements/announcement-add.html
+8
-7
announcement-details.html
...cements/templates/announcements/announcement-details.html
+6
-11
announcement-edit.html
...ouncements/templates/announcements/announcement-edit.html
+8
-7
announcements.html
.../announcements/templates/announcements/announcements.html
+26
-16
No files found.
widget_robo_mommy/announcements/templates/announcements/announcement-add.html
View file @
6906b1b3
{% extends 'base.html' %}
{% load static %}
{% extends 'base.html' %}
{% block content %}
{% block title %} Add Announcement {% endblock %}
{% block header %} Add a new announcement: {% endblock %}
<title>
Add Announcement
</title>
<h1>
Add a new announcement:
</h1>
{% block content %}
<form
action=
""
method=
POST
>
{% csrf_token %}
{{ form.as_p }}
<input
type=
"submit"
value=
"Add Announcement"
>
</form>
{% endblock content %}
\ No newline at end of file
{% endblock %}
widget_robo_mommy/announcements/templates/announcements/announcement-details.html
View file @
6906b1b3
{% extends 'base.html' %}
{% load static %}
{% extends 'base.html' %}
{% block
content
%}
{% block
title %} {{ announce.title }} {% endblock
%}
<title>
{{ announce.title }}
</title>
{% block header %} {{ announce.title }} {% endblock %}
<h1>
{{ announce.title }}
</h1>
{% block content %}
<h2>
by {{ announce.author.first_name }} {{ announce.author.last_name }}
</h2>
<p>
{{ announce.pub_datetime|date:'m/d/Y, h:i A' }}
</p>
<p>
{{ announce.body }}
</p>
<p>
{% for react in announce.react.all %}
{{ react.name }}: {{ react.tally }}
<br>
{{ react.name }}: {{ react.tally }}
<br>
{% endfor %}
</p>
<a
href =
"/announcements/{{ announce.pk }}/edit/"
><button
value=
""
>
Edit Announcement
</button></a>
{% endblock content %}
\ No newline at end of file
{% endblock %}
widget_robo_mommy/announcements/templates/announcements/announcement-edit.html
View file @
6906b1b3
{% extends 'base.html' %}
{% load static %}
{% extends 'base.html' %}
{% block content %}
{% block title %} Edit Announcement {% endblock %}
{% block header %} Edit announcement: {% endblock %}
<title>
Edit Announcement
</title>
<h1>
Edit announcement:
</h1>
{% block content %}
<form
action=
""
method=
POST
>
{% csrf_token %}
{{ form.as_p }}
<input
type=
"submit"
value=
"Save Changes to Announcement"
>
</form>
{% endblock content %}
\ No newline at end of file
{% endblock %}
widget_robo_mommy/announcements/templates/announcements/announcements.html
View file @
6906b1b3
{% extends 'base.html' %}
{% load static %}
{% extends 'base.html' %}
{% block
content
%}
{% block
title %} Widget's Announcement Board {% endblock
%}
<title>
Widget's Announcement Board
</title>
<h1>
Welcome to Widget's Announcement Board!
</h1>
{% block header %} Welcome to Widget's Announcement Board! {% endblock %}
<h3>
Announcements:
</h3>
{% for announce in announcement %}
<a
href =
"{{ announce.pk }}/details/"
>
{{ announce.title }} by {{ announce.author.first_name }} {{ announce.author.last_name }}
</a><br>
{% endfor %}
<br>
<a
href=
"add/"
><button
value=
"click here"
>
Add Announcement
</button></a><br><br>
{% block content %}
<div
id =
"object_container"
>
<ul
id =
"object_list"
>
{% for announce in announcement %}
<li>
<a
href =
"{{ announce.pk }}/details/"
class =
"item"
>
{{ announce.title }} by {{ announce.author.first_name }} {{ announce.author.last_name }}
</a>
<br>
</li>
{% endfor %}
<a
href=
"add/"
class=
"item"
><button
value=
"click here"
>
Add Announcement
</button></a><br><br>
<a
href =
"/Dashboard/"
>
Dashboard
</a><br>
<a
href =
"/forum/"
>
Forum
</a><br>
<a
href =
"/assignments/"
>
Assignments
</a><br>
<a
href =
"/widget_Calendar/"
>
Calendar
</a>
</ul>
</div>
{% endblock %}
{% endblock content %}
\ No newline at end of file
{% block navbar %}
<div
id =
"navbar"
>
<a
href =
"/dashboard/"
>
Dashboard
</a>
<a
href =
"/forum/"
>
Forum
</a>
<a
href =
"/assignments/"
>
Assignments
</a>
<a
href =
"/widget_Calendar/"
>
Calendar
</a>
</div>
{% endblock %}
\ No newline at end of file
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