Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_django unchained
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
1
Merge Requests
1
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
Jose Emmanuel B. Laurel
widget_django unchained
Commits
e8d2106f
Commit
e8d2106f
authored
May 27, 2022
by
Ray Rafael Abenido
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Manual Merge: completed manual merge of branch 'forum' into master.
parent
c78077df
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
4 deletions
+43
-4
confirmation.html
..._django_unchained/forum/templates/forum/confirmation.html
+8
-0
index.html
widget_django_unchained/forum/templates/forum/index.html
+3
-0
post_form.html
widget_django_unchained/forum/templates/forum/post_form.html
+32
-4
No files found.
widget_django_unchained/forum/templates/forum/confirmation.html
0 → 100644
View file @
e8d2106f
{% extends 'forum/base.html' %}
{% block content %}
<p>
New Post added!
</p>
<p><a
href=
"{% url 'Show Forum Page' %}"
>
Return to Forum page
</a></p>
{% endblock %}
\ No newline at end of file
widget_django_unchained/forum/templates/forum/index.html
View file @
e8d2106f
...
...
@@ -14,4 +14,7 @@
</li>
</ul>
{% endfor %}
<br>
<p>
Click here to create a new post:
<a
href=
"{% url 'Show Add Post' %}"
>
New Forum Post
</a></p>
{% endblock %}
\ No newline at end of file
widget_django_unchained/forum/templates/forum/post_form.html
View file @
e8d2106f
{% extends 'forum/base.html' %}
{% block content %}
<form
action=
"confirmation"
method=
"POST"
>
<h2>
New Forum Post:
</h2>
<form
action=
"{% url 'Show Confirmation' %}"
method=
"POST"
enctype=
"multipart/form-data"
>
{% csrf_token %}
<h3>
Post Name:
</h3>
<input
type=
"text"
name=
"post_title"
>
<br>
<h3>
Post Body:
</h3>
<input
type=
"text"
name=
"post_body"
>
<br>
<h3>
Author ID
</h3>
<input
type=
"text"
name=
"author_id"
>
<br>
<!-- POST TITLE -->
<label
for=
"post_title"
>
Post Name:
</label>
<br>
<input
type=
"text"
name=
"post_title"
id=
"post_title"
>
<br>
<br>
<!-- POST BODY -->
<label
for=
"post_body"
>
Post Body:
</label>
<br>
<textarea
name=
"post_body"
id=
"post_body"
rows=
"10"
cols=
"100"
>
Type here!
</textarea>
<br>
<br>
<!-- AUTHOR LIST -->
<label
for=
"author_list"
>
Author List:
</label>
<br>
<select
name=
"post_author"
id=
"author_list"
>
{% for user in users %}
<option
value=
"{{user.id}}"
>
{{user.first_name}} {{user.last_name}}
</option>
{% endfor %}
</select>
<br>
<br>
<!--IMAGE -->
<label
for=
"post_image"
>
Upload Image:
</label>
<br>
<input
type=
"file"
name=
"post_image"
id=
"post_image"
accept=
"image/*"
>
<br>
<br>
<!--SUBMIT -->
<input
type=
"submit"
>
</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