Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_casanatics
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
John Aidan Vincent M. Ng
midterm_casanatics
Commits
401a70f6
Commit
401a70f6
authored
May 08, 2023
by
Andre Dalwin C. Tan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added forumpost-edit.html and forumpost-add.html
parent
89800a4e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
3 deletions
+39
-3
db.sqlite3
widget_casanatics/db.sqlite3
+0
-0
forum.html
widget_casanatics/forum/templates/forum/forum.html
+2
-2
forumpost-add.html
widget_casanatics/forum/templates/forum/forumpost-add.html
+19
-0
forumpost-details.html
...t_casanatics/forum/templates/forum/forumpost-details.html
+1
-1
forumpost-edit.html
widget_casanatics/forum/templates/forum/forumpost-edit.html
+17
-0
No files found.
widget_casanatics/db.sqlite3
View file @
401a70f6
No preview for this file type
widget_casanatics/forum/templates/forum/forum.html
View file @
401a70f6
...
...
@@ -2,9 +2,10 @@
{% load static %}
{% block title %} Widget's Forum {% endblock %}
{% block content %}
<h1>
Welcome to Widget's Forum!
</h1>
<h2>
Forum
posts
</h2>
<h2>
Forum
posts:
</h2>
<ul>
{% for post in forumpost %}
<li><a
href=
"{{ post.get_absolute_url }}"
>
{{ post.title }} by {{ post.author.first_name }} {{ post.author.last_name }}
</a></li>
...
...
@@ -19,5 +20,4 @@
<a
href=
"../announcements/"
>
Announcements
</a>
<br>
<a
href=
"../assignments/"
>
Assignments
</a>
<br>
<a
href=
"../calendar/"
>
Calendar
</a>
<br>
{% endblock %}
widget_casanatics/forum/templates/forum/forumpost-add.html
0 → 100644
View file @
401a70f6
{% extends 'base.html' %}
{% load static %}
{% block title %} Add Post {% endblock %}
{% block content %}
<h1>
Add a new post:
</h1>
<form
method=
"POST"
>
{% csrf_token %}
{% for field in form%}
<b>
{{ field.label }}:
</b>
{{ field }}
<br>
<br>
{% endfor %}
<button
type=
"submit"
>
Save New Post
</button>
</form>
{% endblock %}
widget_casanatics/forum/templates/forum/forumpost-details.html
View file @
401a70f6
...
...
@@ -4,7 +4,7 @@
{% block title %} {{ object.title }} {% endblock %}
{% block content %}
<h1>
{{ object.title }}
</h1>
<h1>
{{ object.title }}
</h1>
<h2>
{{ object.author.first_name }} {{ object.author.last_name }}
</h2>
<h3>
{{ object.pub_datetime|date:"m/d/Y, h:i A" }}
</h3>
<p>
{{ object.body }}
</p>
<br>
...
...
widget_casanatics/forum/templates/forum/forumpost-edit.html
0 → 100644
View file @
401a70f6
{% extends 'base.html' %}
{% load static %}
{% block title %} Edit Post {% endblock %}
{% block content %}
<h1>
Edit Post:
</h1>
<form
method=
"POST"
>
{% csrf_token %}
{% for field in form%}
<b>
{{ field.label }}:
</b>
{{ field }}
<br><br>
{% endfor %}
<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