Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
final_quintupoltrobol
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
Matthew Karl David P. Arpas
final_quintupoltrobol
Commits
8e52ae09
Commit
8e52ae09
authored
May 12, 2023
by
KaoruSawade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implemented editing widget users
parent
88f28423
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
1 deletion
+28
-1
urls.cpython-310.pyc
...uintupoltrobol/dashboard/__pycache__/urls.cpython-310.pyc
+0
-0
views.cpython-310.pyc
...intupoltrobol/dashboard/__pycache__/views.cpython-310.pyc
+0
-0
widgetuser-edit.html
...trobol/dashboard/templates/dashboard/widgetuser-edit.html
+20
-0
urls.py
widget_quintupoltrobol/dashboard/urls.py
+2
-1
views.py
widget_quintupoltrobol/dashboard/views.py
+6
-0
db.sqlite3
widget_quintupoltrobol/db.sqlite3
+0
-0
No files found.
widget_quintupoltrobol/dashboard/__pycache__/urls.cpython-310.pyc
View file @
8e52ae09
No preview for this file type
widget_quintupoltrobol/dashboard/__pycache__/views.cpython-310.pyc
View file @
8e52ae09
No preview for this file type
widget_quintupoltrobol/dashboard/templates/dashboard/widgetuser-edit.html
0 → 100644
View file @
8e52ae09
{% extends 'base.html' %}
{% load static %}
{% block title %}Edit Widget User{% endblock %}
{% block content %}
<h2>
Edit Widget user:
</h2>
<p>
<form
action=
''
method=
"POST"
>
{% csrf_token %}
{{ form.first_name.label_tag }}
{{ form.first_name }}
<br><br>
{{ form.middle_name.label_tag }}
{{ form.middle_name }}
<br><br>
{{ form.last_name.label_tag }}
{{ form.last_name }}
<br><br>
Department, Home Unit:
{{ form.department }}
<br><br>
<input
type=
"submit"
value=
"Edit Widget User"
>
</form>
</p>
{% endblock %}
\ No newline at end of file
widget_quintupoltrobol/dashboard/urls.py
View file @
8e52ae09
from
django.urls
import
path
from
.views
import
WidgetUserDetailView
,
WidgetUserCreateView
from
.views
import
WidgetUserDetailView
,
WidgetUserCreateView
,
WidgetUserUpdateView
from
.views
import
pageview
...
...
@@ -7,6 +7,7 @@ urlpatterns = [
path
(
'dashboard/'
,
pageview
,
name
=
'pageview'
),
path
(
'widgetusers/<int:pk>/details'
,
WidgetUserDetailView
.
as_view
(),
name
=
'widgetuser-details'
),
path
(
'widgetusers/add'
,
WidgetUserCreateView
.
as_view
(),
name
=
'widgetuser-add'
),
path
(
'widgetusers/<int:pk>/edit'
,
WidgetUserUpdateView
.
as_view
(),
name
=
'widgetuser-edit'
),
]
app_name
=
"dashboard"
\ No newline at end of file
widget_quintupoltrobol/dashboard/views.py
View file @
8e52ae09
...
...
@@ -19,3 +19,9 @@ class WidgetUserCreateView(CreateView):
model
=
WidgetUser
fields
=
'__all__'
template_name
=
'dashboard/widgetuser-add.html'
class
WidgetUserUpdateView
(
UpdateView
):
model
=
WidgetUser
fields
=
'__all__'
template_name
=
'dashboard/widgetuser-edit.html'
\ No newline at end of file
widget_quintupoltrobol/db.sqlite3
View file @
8e52ae09
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