Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_aguandhischipmunks
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
Adrian Lance Damalerio
midterm_aguandhischipmunks
Commits
c18ff0d7
Commit
c18ff0d7
authored
May 14, 2023
by
Jan Enzo Salvador
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Created a forum folder inside the template folder
parent
a8cf4d37
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
81 additions
and
0 deletions
+81
-0
forum.html
widget_aguandhischipmunks/forum/templates/forum/forum.html
+29
-0
forumpost-add.html
...uandhischipmunks/forum/templates/forum/forumpost-add.html
+14
-0
forumpost-details.html
...hischipmunks/forum/templates/forum/forumpost-details.html
+26
-0
forumpost-edit.html
...andhischipmunks/forum/templates/forum/forumpost-edit.html
+12
-0
No files found.
widget_aguandhischipmunks/forum/templates/forum/forum.html
0 → 100644
View file @
c18ff0d7
{% extends 'base.html' %}
{% load static %}
{% block title %} Widget's Forum {% endblock %}
{% block content %}
<h1>
Welcome to Widget's Forum!
</h1>
<h2>
Forum posts:
</h2>
<ul>
{% for forumpost in forumposts %}
<li>
<a
href=
"{{forumpost.get_absolute_url}}"
>
{{ forumpost.title }} by {{ forumpost.author.firstname }} {{ forumpost.author.lastname }}
</a>
</li>
{% endfor %}
</ul>
<form
action=
"forum/forumposts/add"
>
<button
type=
"submit"
>
New Post
</button>
</form>
<li><a
href=
"/dashboard"
>
Dashboard
</a>
<br></li>
<li>
<a
href=
"/announcements"
>
Announcements
</a>
<br></li>
<li>
<a
href=
"/assignments"
>
Assignments
</a>
<br></li>
<li><a
href=
"/calendar"
>
Calendar
</a>
<br></li>
{% endblock %}
widget_aguandhischipmunks/forum/templates/forum/forumpost-add.html
0 → 100644
View file @
c18ff0d7
{% extends 'base.html' %}
{% load static %}
{% block title %} Add Post {% endblock %}
{% block content %}
<h1>
Add a new post:
</h1>
<form
method=
"POST"
>
{% csrf_token %}
{{form.as_p}}
<button
type=
"submit"
>
Save New Post
</button>
</form>
{% endblock %}
widget_aguandhischipmunks/forum/templates/forum/forumpost-details.html
0 → 100644
View file @
c18ff0d7
{% extends 'base.html'%}
{% block title %}
{{ object.title }}
{% endblock %}
{% block content %}
<h1>
{{ object.title }}
</h1>
<ul>
<p>
by {{ object.author.firstname }} {{ object.author.lastname }}
</p><br>
<p>
{{ object.pub_datetime|date:"m/d/Y, h:i A" }}
</p><br>
<p>
{{ object.body }}
</p><br>
<p>
POST REPLIES:
</p><br>
{% for reply in object.replies.all %}
<p>
by {{ reply.author.firstname }} {{ reply.author.lastname }}
</p>
<p>
{{ reply.pub_datetime|date:"m/d/Y, h:i A" }}
</p>
<p>
{{ reply.body }}
</p>
{{% endfor %}}
</ul>
<form
action=
"./edit"
>
<button
type=
"submit"
>
Edit Post
</button>
</form>
{% endblock %}
widget_aguandhischipmunks/forum/templates/forum/forumpost-edit.html
0 → 100644
View file @
c18ff0d7
{% extends 'base.html' %}
{% load static %}
{% block title %} Edit Post {% endblock %}
{% block content %}
<h1>
Edit Post:
</h1>
<form
method=
"POST"
>
{% csrf_token %}
{{ form.as_p }}
<button
type=
"submit"
>
Save Changes to Post
</button>
</form>
{% 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