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
3a43d794
Commit
3a43d794
authored
May 14, 2023
by
Lance Dominic B. Santuyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edited the HTML templates for Forum to use CSS
parent
2fd5a27e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
55 additions
and
39 deletions
+55
-39
forum.html
widget_robo_mommy/forum/templates/forum/forum.html
+27
-17
forumpost-add.html
widget_robo_mommy/forum/templates/forum/forumpost-add.html
+10
-8
forumpost-details.html
...t_robo_mommy/forum/templates/forum/forumpost-details.html
+8
-6
forumpost-edit.html
widget_robo_mommy/forum/templates/forum/forumpost-edit.html
+10
-8
No files found.
widget_robo_mommy/forum/templates/forum/forum.html
View file @
3a43d794
{% extends 'base.html' %}
{%
extends 'base.html' %}
{%
load static
%}
{%
block title %} Widget's Forum {% endblock
%}
{% block content %}
<title>
Widget's Forum
</title>
<h1>
Welcome to Widget's Forum
</h1>
<h2>
Forum posts:
</h2>
{% for post in posts %}
<a
href=
"forumposts/{{ post.pk }}/details/"
>
{{ post.title }} by {{ post.author.first_name }} {{ post.author.last_name }}
</a><br>
{% endfor %}
<br><br>
{% block header %} Welcome to Widget's Forum {% endblock %}
<a
href=
"forumposts/add/"
><button
value=
"click here"
>
New Post
</button></a><br><br>
{% block content %}
<div
id =
"object_container"
>
<ul
id =
"object_list"
>
{% for post in posts %}
<a
href=
"forumposts/{{ post.pk }}/details/"
class=
"item"
>
{{ post.title }} by {{ post.author.first_name }} {{ post.author.last_name }}
</a><br>
{% endfor %}
<br>
<li>
<a
href=
"forumposts/add/"
class=
"item"
>
New Post
</a>
</li>
</ul>
</div>
{% endblock %}
<a
href=
"/Dashboard/"
>
Dashboard
</a><br>
<a
href=
"/announcements/"
>
Announcements
</a><br>
<a
href=
"/assignments/"
>
Assignments
</a><br>
<a
href=
"/widget_Calendar/"
>
Calendar
</a><br>
{% endblock content %}
\ No newline at end of file
{% block navbar %}
<div
id =
"navbar"
>
<a
href =
"/dashboard/"
>
Dashboard
</a>
<a
href=
"/announcements/"
>
Announcements
</a>
<a
href =
"/assignments/"
>
Assignments
</a>
<a
href =
"/calendar/"
>
Calendar
</a>
</div>
{% endblock %}
\ No newline at end of file
widget_robo_mommy/forum/templates/forum/forumpost-add.html
View file @
3a43d794
{% extends 'base.html' %}
{%
extends 'base.html' %}
{% load static %}
{% block title %} Add Post {% endblock %}
{% block header %} Add a new post: {% endblock %}
{% block content %}
<
title>
Add Post
</title
>
<h1>
Add a new post:
</h1>
<form
method=
"post"
>
{% csrf_token %
}
{{ form.as_p }}
<
form
action=
""
method=
POST
>
{% csrf_token %}
{{ form.as_p }
}
<input
type=
"submit"
value=
"Save New Post"
>
</form>
{% endblock content %}
\ No newline at end of file
{% endblock %}
widget_robo_mommy/forum/templates/forum/forumpost-details.html
View file @
3a43d794
{% extends 'base.html' %}
{%
extends 'base.html' %}
{% load static %}
{% block title %} {{ posts.title }} {% endblock %}
{% block header %} {{ posts.title }} {% endblock %}
{% block content %}
<title>
{{ posts.title }}
</title>
<h1>
{{ posts.title }}
</h1>
<h2>
by {{ posts.author.first_name }} {{ posts.author.last_name }}
</h2>
<p>
{{ posts.pub_datetime|date:"M/d/Y, f A"}}
</p>
<p>
{{ posts.body }}
</p>
...
...
@@ -14,5 +14,7 @@
{{ reply.pub_datetime|date:"M/d/Y, f A"}}
<br>
{{ reply.body }}
<br><br>
{% endfor %}
<a
href=
"/forum/forumposts/{{ posts.pk }}/edit/"
><button
value=
"click here"
>
Edit Post
</button></a>
{% endblock content %}
\ No newline at end of file
<li>
<a
href=
"/forum/forumposts/{{ posts.pk }}/edit/"
class=
"item"
>
Edit Post
</a>
</li>
{% endblock %}
widget_robo_mommy/forum/templates/forum/forumpost-edit.html
View file @
3a43d794
{% extends 'base.html' %}
{%
extends 'base.html' %}
{% load static %}
{% block title %} Edit Post {% endblock %}
{% block header %} Edit post: {% endblock %}
{% block content %}
<
title>
Edit Post
</title
>
<h1>
Edit post:
</h1>
<form
method=
"post"
>
{% csrf_token %
}
{{ form.as_p }}
<
form
action=
""
method=
POST
>
{% csrf_token %}
{{ form.as_p }
}
<input
type=
"submit"
value=
"Save Changes to Post"
>
</form>
{% endblock content %}
\ No newline at end of file
{% 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