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
d3a2a64e
Commit
d3a2a64e
authored
May 26, 2022
by
Jose Emmanuel B. Laurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean: cleaned views.py and createUser_form.html in homepage app
parent
55411191
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
14 deletions
+1
-14
forms.cpython-39.pyc
...go_unchained/assignments/__pycache__/forms.cpython-39.pyc
+0
-0
0002_course_assignment_assignment_passing_score_and_more.cpython-39.pyc
...signment_assignment_passing_score_and_more.cpython-39.pyc
+0
-0
createUser_form.html
...nchained/homepage/templates/homepage/createUser_form.html
+1
-3
views.py
widget_django_unchained/homepage/views.py
+0
-11
No files found.
widget_django_unchained/assignments/__pycache__/forms.cpython-39.pyc
0 → 100644
View file @
d3a2a64e
File added
widget_django_unchained/assignments/migrations/__pycache__/0002_course_assignment_assignment_passing_score_and_more.cpython-39.pyc
0 → 100644
View file @
d3a2a64e
File added
widget_django_unchained/homepage/templates/homepage/createUser_form.html
View file @
d3a2a64e
...
...
@@ -4,9 +4,7 @@
<h1>
Create User:
</h1>
<form
method=
"POST"
action=
"{% url 'homepage:newUser' %}"
>
{% csrf_token %}
<!-- {{ createUserForm.as_p }} -->
<h3>
Enter Last Name:
</h3>
<input
type=
"text"
name=
"Last name"
>
<h3>
Enter First Name:
</h3>
<input
type=
"text"
name=
"First name"
>
<h3>
Enter Middle Name:
</h3>
<input
type=
"text"
name=
"Middle name"
>
...
...
widget_django_unchained/homepage/views.py
View file @
d3a2a64e
...
...
@@ -11,20 +11,9 @@ def index(request):
return
render
(
request
,
"homepage/widgetusers_orderedlist.html"
,
context
)
def
createUser
(
request
):
# if request.method == "POST":
# createUserForm = CreateUserForm(request.POST)
# if createUserForm.is_valid():
# newWidgetUser = createUserForm.save()
# newWidgetUser.department_id = Department.objects.get(request.POST['Department'].pk)
# newWidgetUser.save()
# return redirect("homepage:createUser")
# else:
# createUserForm = CreateUserForm()
department
=
Department
.
objects
.
all
()
context
=
{
"Department"
:
department
,
# "createUserForm" : createUserForm
}
return
render
(
request
,
"homepage/createUser_form.html"
,
context
)
...
...
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