Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_huli
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
Izaac Daniel B. Muncal
midterm_huli
Commits
1e574f16
Commit
1e574f16
authored
May 12, 2023
by
Anchilla Vera Marie Silang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Created HTMLs
parent
28c14ec3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
87 additions
and
0 deletions
+87
-0
base.html
widget_huli/templates/base.html
+11
-0
forum.html
widget_huli/templates/forum.html
+22
-0
forumpost-add.html
widget_huli/templates/forumpost-add.html
+14
-0
forumpost-details.html
widget_huli/templates/forumpost-details.html
+26
-0
forumpost-edit.html
widget_huli/templates/forumpost-edit.html
+14
-0
No files found.
widget_huli/templates/base.html
0 → 100644
View file @
1e574f16
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<title>
{% block title %}{% endblock %}
</title>
</head>
<body>
<h1>
{% block header %}{% endblock %}
</h1>
{% block body %}{% endblock %}
</body>
</html>
\ No newline at end of file
widget_huli/templates/forum.html
0 → 100644
View file @
1e574f16
{%extends "base.html"%}
{%block title %}Widget's Forum{%endblock%}
{%block header %}Welcome to Widget's Forum!{%endblock %}
{%block body %}
<h2>
Forum Posts:
</h2>
{% for post in forum%}
<a
href=
"{% url 'forum:forumpostdetails' post.pk%}"
>
{{post.title}} by {{post.author}}
<br>
</a>
{%endfor%}
<br>
<a
href=
"{%url 'forum:forumpostnew' %}"
>
<input
type=
"button"
value=
"New Post"
></a>
<br>
<br>
<a
href=
"{%url 'Dashboard:dashboard_view' %}"
>
Dashboard
</a><br>
<a
href=
"{%url 'assignments:assignments' %}"
>
Assignments
</a>
<br>
{% endblock%}
\ No newline at end of file
widget_huli/templates/forumpost-add.html
0 → 100644
View file @
1e574f16
{%extends "base.html"%}
{%block title %}Add Post{%endblock%}
{%block header %}Add a new post:{%endblock %}
{%block body %}
<form
method=
"POST"
>
{% csrf_token %}
{{ form.as_p }}
<input
type=
"submit"
value=
"Save New Post"
>
</form>
{% endblock%}
\ No newline at end of file
widget_huli/templates/forumpost-details.html
0 → 100644
View file @
1e574f16
{%extends "base.html"%}
{%block title %}{{object.title}}{%endblock%}
{%block header %}{{object.title}}{%endblock %}
{%block body %}
by {{object.author.first_name}} {{object.author.last_name}}
<br>
{{object.pub_datetime}}
<br>
{{object.body}}
<br>
<br>
<br>
POST REPLIES:
<br>
{% for reply in object.reply_set.all%}
{{reply.author}}
<br>
{{reply.pub_datetime}}
<br>
{{reply.body}}
<br>
<br>
{%endfor%}
<a
href=
"{%url 'forum:forumpostedit' object.pk %}"
>
<input
type=
"button"
value=
"Edit Post"
></a>
<br>
{% endblock%}
\ No newline at end of file
widget_huli/templates/forumpost-edit.html
0 → 100644
View file @
1e574f16
{%extends "base.html"%}
{%block title %}Edit Post{%endblock%}
{%block header %}Edit Post:{%endblock %}
{%block body %}
<form
method=
"POST"
>
{% csrf_token %}
{{ form.as_p }}
<input
type=
"submit"
value=
"Save Changes to Post"
>
</form>
{% 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