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
56ecb786
Commit
56ecb786
authored
May 04, 2023
by
justin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: added add user function
parent
11d8cae9
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
13 additions
and
9 deletions
+13
-9
urls.cpython-310.pyc
widget_casanatics/dashboard/__pycache__/urls.cpython-310.pyc
+0
-0
views.cpython-310.pyc
...et_casanatics/dashboard/__pycache__/views.cpython-310.pyc
+0
-0
dashboard.html
...t_casanatics/dashboard/templates/dashboard/dashboard.html
+1
-0
widgetuser-add.html
...anatics/dashboard/templates/dashboard/widgetuser-add.html
+9
-7
widgetuser-edit.html
...natics/dashboard/templates/dashboard/widgetuser-edit.html
+1
-1
urls.py
widget_casanatics/dashboard/urls.py
+1
-1
views.py
widget_casanatics/dashboard/views.py
+1
-0
db.sqlite3
widget_casanatics/db.sqlite3
+0
-0
No files found.
widget_casanatics/dashboard/__pycache__/urls.cpython-310.pyc
View file @
56ecb786
No preview for this file type
widget_casanatics/dashboard/__pycache__/views.cpython-310.pyc
View file @
56ecb786
No preview for this file type
widget_casanatics/dashboard/templates/dashboard/dashboard.html
View file @
56ecb786
...
...
@@ -9,4 +9,5 @@
</a>
{% endfor %}
</ul>
<a
href=
"../widgetusers/add"
>
Add Widget User
</a>
{% endblock %}
widget_casanatics/dashboard/templates/dashboard/widgetuser-add.html
View file @
56ecb786
{% extends 'base.html' %}
{% load static %}
{% block title %}
Edi
t User {% endblock %}
{% block title %}
Add Widge
t User {% endblock %}
{% block content %}
<form
method=
"post"
>
{% csrf_token %}
{{ form.as_p }}
<input
type=
"submit"
value=
"Save Changes"
/>
</form>
Ito ay test!!!
<div
class=
"user-form"
>
<h1>
Add a new widget user:
</h1>
<form
method=
"post"
>
{% csrf_token %}
{{ form.as_p }}
<input
type=
"submit"
value=
"Add Widget User"
/>
</form>
</div>
{% endblock %}
widget_casanatics/dashboard/templates/dashboard/widgetuser-edit.html
View file @
56ecb786
...
...
@@ -6,6 +6,6 @@
<form
method=
"post"
>
{% csrf_token %}
{{ form.as_p }}
<input
type=
"submit"
value=
"Save Changes"
/>
<input
type=
"submit"
value=
"Save Changes
to Widget User
"
/>
</form>
{% endblock %}
widget_casanatics/dashboard/urls.py
View file @
56ecb786
...
...
@@ -11,7 +11,7 @@ urlpatterns = [
),
path
(
"add/"
,
views
.
WidgetUser
Detail
View
.
as_view
(),
views
.
WidgetUser
Create
View
.
as_view
(),
name
=
"user-add"
,
),
path
(
...
...
widget_casanatics/dashboard/views.py
View file @
56ecb786
...
...
@@ -17,6 +17,7 @@ def dashboard(request):
class
WidgetUserDetailView
(
DetailView
):
model
=
WidgetUser
fields
=
"__all__"
template_name
=
"dashboard/widgetuser-details.html"
...
...
widget_casanatics/db.sqlite3
View file @
56ecb786
No preview for this file type
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