Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_princessgabi
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
Ysabella Panghulan
midterm_princessgabi
Commits
c8626beb
Commit
c8626beb
authored
May 14, 2023
by
Ysabella Panghulan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dashboardv2'
parents
be4f0767
0956f154
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
100 additions
and
49 deletions
+100
-49
dashboard.css
widget_princessgabi/dashboard/static/dashboard/dashboard.css
+14
-0
widgetuser-add.html
...essgabi/dashboard/templates/dashboard/widgetuser-add.html
+33
-21
widgetuser-details.html
...abi/dashboard/templates/dashboard/widgetuser-details.html
+20
-7
widgetuser-edit.html
...ssgabi/dashboard/templates/dashboard/widgetuser-edit.html
+33
-21
No files found.
widget_princessgabi/dashboard/static/dashboard/dashboard.css
View file @
c8626beb
body
{
height
:
100vh
;
background-color
:
#E9E3FE
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.dashboard-content
{
margin-top
:
auto
;
padding
:
2rem
;
border-radius
:
0.5rem
;
background-color
:
white
}
\ No newline at end of file
widget_princessgabi/dashboard/templates/dashboard/widgetuser-add.html
View file @
c8626beb
...
...
@@ -2,28 +2,40 @@
{% load static %}
{% block stylesheets %}
<link
rel =
"stylesheet"
type =
"text/css"
href =
"{% static 'stylesheets/forms.css' %}"
>
{% endblock %}
{% block title %}Add Widget User{% endblock %}
{% block content %}
{{ form.non_field_errors }}
{% for field in form %}
{% if field.errors %}
<p>
{{ field.label }} has the following errors:
</p>
<ul>
{% for error in field.errors %}
<li>
{{ error }}
</li>
{% endfor %}
</ul>
{% endif %}
{% endfor %}
<h1>
Add a new Widget user:
</h1>
<form
method =
"POST"
>
{% csrf_token %}
{{ form.as_p }}
<input
type =
"submit"
value =
"Add Widget User"
>
</form>
{% block header %}
<h2>
Add a new Widget user:
</h2>
{% endblock %}
{% block body %}
{% block content %}
{{ form.non_field_errors }}
{% for field in form %}
{% if field.errors %}
<p>
{{ field.label }} has the following errors:
</p>
<ul>
{% for error in field.errors %}
<li>
{{ error }}
</li>
{% endfor %}
</ul>
{% endif %}
{% endfor %}
<div
class =
"form"
>
<form
method =
"POST"
>
{% csrf_token %}
{{ form.as_p }}
<input
type =
"submit"
value =
"Add Widget User"
>
</form>
</div>
{% endblock %}
{% endblock %}
\ No newline at end of file
widget_princessgabi/dashboard/templates/dashboard/widgetuser-details.html
View file @
c8626beb
...
...
@@ -2,18 +2,31 @@
{% load static %}
{% block stylesheets %}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static 'dashboard/dashboard.css' %}"
>
<link
rel=
"stylesheet"
href=
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
>
{% endblock %}
{% block title %} {{ object.last_name }}, {{ object.first_name }} {% endblock %}
{% block content %}
{% block body %}
<div
class =
"dashboard-content"
>
{% block content %}
<div
class =
"details"
>
<h1>
{{ object.first_name }} {{ object.middle_name }} {{ object.last_name }}
</h1>
<h2>
{{ object.department }}
</h2>
<h2>
{{ object.department.home_unit }}
</h2>
<
h1>
{{ object.first_name }} {{ object.middle_name }} {{ object.last_name }}
</h1
>
<
/div
>
<h2>
{{ object.department }}
</h2>
{% endblock %}
<
h2>
{{ object.department.home_unit }}
</h2
>
<
a
href=
"{{object.get_absolute_url}}../edit"
class=
"edit-btn"
><i
class=
"fa fa-edit"
></i>
Edit Widget User
</a
>
<form
action =
"./edit"
>
<input
type =
"submit"
value =
"Edit Widget User"
>
</form>
</div>
{% endblock %}
\ No newline at end of file
widget_princessgabi/dashboard/templates/dashboard/widgetuser-edit.html
View file @
c8626beb
...
...
@@ -2,28 +2,40 @@
{% load static %}
{% block stylesheets %}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static 'stylesheets/forms.css' %}"
>
{% endblock %}
{% block title %}Edit Widget User{% endblock %}
{% block content %}
{{ form.non_field_errors }}
{% for field in form %}
{% if field.errors %}
<p>
{{ field.label }} has the following errors:
</p>
<ul>
{% for error in field.errors %}
<li>
{{ error }}
</li>
{% endfor %}
</ul>
{% endif %}
{% endfor %}
<h1>
Edit Widget User:
</h1>
<form
method =
"POST"
>
{% csrf_token %}
{{ form.as_p }}
<input
type =
"submit"
value =
"Save Changes to Widget User"
>
</form>
{% block header %}
<h2>
Edit Widget User:
</h2>
{% endblock %}
{% block body %}
{% block content %}
{{ form.non_field_errors }}
{% for field in form %}
{% if field.errors %}
<p>
{{ field.label }} has the following errors:
</p>
<ul>
{% for error in field.errors %}
<li>
{{ error }}
</li>
{% endfor %}
</ul>
{% endif %}
{% endfor %}
<div
class =
"form"
>
<form
method =
"POST"
>
{% csrf_token %}
{{ form.as_p }}
<input
type =
"submit"
value =
"Save Changes to Widget User"
>
</form>
</div>
{% endblock %}
{% endblock %}
\ No newline at end of file
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