Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_k3git
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
Stefan Gomez
midterm_k3git
Commits
91f8d687
Commit
91f8d687
authored
May 14, 2023
by
Migs Atienza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added forumpost-edit.html
parent
fdbb6f84
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
1 deletion
+16
-1
db.sqlite3
widget_k3git/db.sqlite3
+0
-0
urls.cpython-39.pyc
widget_k3git/forum/__pycache__/urls.cpython-39.pyc
+0
-0
forumpost-details.html
widget_k3git/forum/templates/forum/forumpost-details.html
+1
-1
forumpost-edit.html
widget_k3git/forum/templates/forum/forumpost-edit.html
+14
-0
urls.py
widget_k3git/forum/urls.py
+1
-0
No files found.
widget_k3git/db.sqlite3
View file @
91f8d687
No preview for this file type
widget_k3git/forum/__pycache__/urls.cpython-39.pyc
View file @
91f8d687
No preview for this file type
widget_k3git/forum/templates/forum/forumpost-details.html
View file @
91f8d687
...
...
@@ -16,5 +16,5 @@
</h3>
{% endblock %}
{% block scripts %}
<a
href=
"/forum/forumposts{{ reply.forum_post.pk }}/edit"
><input
type=
"submit"
value=
"Edit Post"
></a>
<a
href=
"/forum/forumposts
/
{{ reply.forum_post.pk }}/edit"
><input
type=
"submit"
value=
"Edit Post"
></a>
{% endblock %}
\ No newline at end of file
widget_k3git/forum/templates/forum/forumpost-edit.html
0 → 100644
View file @
91f8d687
{% extends 'base.html' %}
{% block title %}Edit Post{% endblock %}
{% block content %}
<h1>
Edit Post:
</h1>
<form
action=
""
method=
"post"
>
{% csrf_token %}
{{ form.as_p }}
<input
type=
"submit"
value=
"Save Changes to Post"
>
</form>
{% endblock %}
{% block scripts %}
{% endblock %}
\ No newline at end of file
widget_k3git/forum/urls.py
View file @
91f8d687
...
...
@@ -7,6 +7,7 @@ urlpatterns = [
path
(
''
,
index
,
name
=
'index'
),
path
(
'forumposts/<int:pk>/details'
,
ForumPostDetailView
.
as_view
(),
name
=
'forumpost-details'
),
path
(
'forumposts/add'
,
ForumPostCreateView
.
as_view
(),
name
=
'forumpost-add'
),
path
(
'forumposts/<int:pk>/edit'
,
ForumPostUpdateView
.
as_view
(),
name
=
'forumpost-edit'
),
]
app_name
=
"forum"
\ 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