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
Show 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' %}
{% extends 'base.html' %}
{% load static %}
{% block content %}
{% block title %} Add Announcement {% endblock %}
{% block header %} Add a new announcement: {% endblock %}
<title>
Add Announcement
</title>
{% block content %}
<h1>
Add a new announcement:
</h1>
<form
action=
""
method=
POST
>
<form
action=
""
method=
POST
>
{% csrf_token %}
{% csrf_token %}
{{ form.as_p }}
{{ form.as_p }}
<input
type=
"submit"
value=
"Add Announcement"
>
<input
type=
"submit"
value=
"Add Announcement"
>
</form>
</form>
{% endblock %}
{% endblock content %}
\ No newline at end of file
widget_robo_mommy/announcements/templates/announcements/announcement-details.html
View file @
6906b1b3
{% extends 'base.html' %}
{% extends 'base.html' %}
{% load static %}
{% 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>
<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.pub_datetime|date:'m/d/Y, h:i A' }}
</p>
<p>
{{ announce.body }}
</p>
<p>
{{ announce.body }}
</p>
<p>
{% for react in announce.react.all %}
{% for react in announce.react.all %}
{{ react.name }}: {{ react.tally }}
<br>
{{ react.name }}: {{ react.tally }}
<br>
{% endfor %}
{% endfor %}
</p>
<a
href =
"/announcements/{{ announce.pk }}/edit/"
><button
value=
""
>
Edit Announcement
</button></a>
<a
href =
"/announcements/{{ announce.pk }}/edit/"
><button
value=
""
>
Edit Announcement
</button></a>
{% endblock content %}
{% endblock %}
\ No newline at end of file
widget_robo_mommy/announcements/templates/announcements/announcement-edit.html
View file @
6906b1b3
{% extends 'base.html' %}
{% extends 'base.html' %}
{% load static %}
{% block content %}
{% block title %} Edit Announcement {% endblock %}
{% block header %} Edit announcement: {% endblock %}
<title>
Edit Announcement
</title>
{% block content %}
<h1>
Edit announcement:
</h1>
<form
action=
""
method=
POST
>
<form
action=
""
method=
POST
>
{% csrf_token %}
{% csrf_token %}
{{ form.as_p }}
{{ form.as_p }}
<input
type=
"submit"
value=
"Save Changes to Announcement"
>
<input
type=
"submit"
value=
"Save Changes to Announcement"
>
</form>
</form>
{% endblock %}
{% endblock content %}
\ No newline at end of file
widget_robo_mommy/announcements/templates/announcements/announcements.html
View file @
6906b1b3
{% extends 'base.html' %}
{% extends 'base.html' %}
{% load static %}
{% block
content
%}
{% block
title %} Widget's Announcement Board {% endblock
%}
<title>
Widget's Announcement Board
</title>
{% block header %} Welcome to Widget's Announcement Board! {% endblock %}
<h1>
Welcome to Widget's Announcement Board!
</h1>
<h3>
Announcements:
</h3>
{% block content %}
<div
id =
"object_container"
>
<ul
id =
"object_list"
>
{% for announce in announcement %}
{% for announce in announcement %}
<a
href =
"{{ announce.pk }}/details/"
>
{{ announce.title }} by {{ announce.author.first_name }} {{ announce.author.last_name }}
</a><br>
<li>
{% endfor %}
<br>
<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=
"add/"
><button
value=
"click here"
>
Add Announcement
</button></a><br><br>
</ul>
</div>
{% endblock %}
<a
href =
"/Dashboard/"
>
Dashboard
</a><br>
{% block navbar %}
<a
href =
"/forum/"
>
Forum
</a><br>
<div
id =
"navbar"
>
<a
href =
"/assignments/"
>
Assignments
</a><br>
<a
href =
"/dashboard/"
>
Dashboard
</a>
<a
href =
"/forum/"
>
Forum
</a>
<a
href =
"/assignments/"
>
Assignments
</a>
<a
href =
"/widget_Calendar/"
>
Calendar
</a>
<a
href =
"/widget_Calendar/"
>
Calendar
</a>
</div>
{% endblock content %}
{% endblock %}
\ No newline at end of file
\ 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