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
88f28423
Commit
88f28423
authored
May 12, 2023
by
KaoruSawade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implemented adding widget users
parent
7bbeadb6
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
1 deletion
+28
-1
forms.py
widget_quintupoltrobol/dashboard/forms.py
+7
-0
dashboard.html
...ntupoltrobol/dashboard/templates/dashboard/dashboard.html
+1
-1
widgetuser-add.html
...ltrobol/dashboard/templates/dashboard/widgetuser-add.html
+20
-0
db.sqlite3
widget_quintupoltrobol/db.sqlite3
+0
-0
No files found.
widget_quintupoltrobol/dashboard/forms.py
0 → 100644
View file @
88f28423
from
django
import
forms
from
.models
import
WidgetUser
class
WidgetUserForm
(
forms
.
ModelForm
):
class
Meta
:
model
=
WidgetUser
fields
=
[
'first_name'
,
'middle_name'
,
'last_name'
,
'department'
,]
\ No newline at end of file
widget_quintupoltrobol/dashboard/templates/dashboard/dashboard.html
View file @
88f28423
...
...
@@ -8,7 +8,7 @@
<a
href=
"{{ user.get_absolute_url }}"
>
{{user.last_name}}, {{user.first_name}}
</a><br>
{% endfor %}
<br>
<form
action=
'dashboard:wid'
>
<form
action=
{%
url
'
dashboard:widgetuser-add
'
%}
>
<input
type=
"submit"
value=
"Add Widget User"
/>
</form>
<a
href=
"{% url 'announcements:pageview' %}"
>
Announcement Board
</a><br>
...
...
widget_quintupoltrobol/dashboard/templates/dashboard/widgetuser-add.html
0 → 100644
View file @
88f28423
{% extends 'base.html' %}
{% load static %}
{% block title %}Add Widget User{% endblock %}
{% block content %}
<h2>
Add a new 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=
"Add Widget User"
>
</form>
</p>
{% endblock %}
\ No newline at end of file
widget_quintupoltrobol/db.sqlite3
View file @
88f28423
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