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
f45179fa
Commit
f45179fa
authored
May 13, 2023
by
Gabriel G. Garrero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated widgetuser-details, widget-user add, and widgetuser-edit in preparation for css
parent
5e1d1369
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
87 additions
and
49 deletions
+87
-49
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
+34
-21
No files found.
widget_princessgabi/dashboard/templates/dashboard/widgetuser-add.html
View file @
f45179fa
...
...
@@ -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 @
f45179fa
...
...
@@ -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 @
f45179fa
...
...
@@ -2,28 +2,41 @@
{% 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 %}
{% endblock %}
<h2>
Edit Widget User:
</h2>
{% 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