Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_robo_mommy
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Raul Jarod Conanan
midterm_robo_mommy
Commits
83cd6652
Commit
83cd6652
authored
May 14, 2023
by
Lance Dominic B. Santuyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edited the HTML templates for Dashboard to use CSS
parent
3bbae7af
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
66 additions
and
38 deletions
+66
-38
dashboard.html
...t_robo_mommy/Dashboard/templates/dashboard/dashboard.html
+34
-0
widgetuser-add.html
...o_mommy/Dashboard/templates/dashboard/widgetuser-add.html
+10
-15
widgetuser-details.html
...mmy/Dashboard/templates/dashboard/widgetuser-details.html
+12
-13
widgetuser-edit.html
..._mommy/Dashboard/templates/dashboard/widgetuser-edit.html
+10
-10
No files found.
widget_robo_mommy/Dashboard/templates/dashboard/dashboard.html
0 → 100644
View file @
83cd6652
{% extends 'base.html' %}
{% block title %} Widget v2 {% endblock %}
{% block header %} Welcome to Widget! {% endblock %}
{% block content %}
<div
id =
"object_container"
>
<h2>
Widget Users:
</h2>
<ul
id =
"object_list"
>
{% for user in users %}
<a
href=
"/widgetusers/{{ user.pk }}/details/"
class=
"item"
>
{{ user.last_name }}, {{ user.first_name }}
</a><br>
{% endfor %}
<br>
<li>
<a
href=
"/widgetusers/add/"
class=
"item"
>
Add Widget User
</a>
</li>
</ul>
</div>
{% endblock %}
{% block navbar %}
<div
id =
"navbar"
>
<a
href=
"/announcements/"
>
Announcement Board
</a>
<a
href=
"/forum/"
>
Forum
</a>
<a
href =
"/assignments/"
>
Assignments
</a>
<a
href =
"/calendar/"
>
Calendar
</a>
</div>
{% endblock %}
\ No newline at end of file
widget_robo_mommy/Dashboard/templates/dashboard/widgetuser-add.html
View file @
83cd6652
{%
extends "base.html"
%}
{%
extends 'base.html'
%}
{%
load static
%}
{%
block title %} Add Widget User {% endblock
%}
{% block content %}
<h1>
Add Widget User
</h1>
<form
method=
"post"
>
{% csrf_token %}
{{ form.as_p }}
{% block header %} Add a new Widget user: {% endblock %}
{% block content %}
<form
action=
""
method=
POST
>
{% csrf_token %}
<a
href=
"/Widgetusers/{{WidgetUser.pk}}/details"
>
<button
type=
"submit"
>
Add Widget User
</button>
</a>
{{ form.as_p }}
</form>
{% endblock content %}
\ No newline at end of file
<input
type=
"submit"
value=
"Add Widget User"
>
</form>
{% endblock %}
widget_robo_mommy/Dashboard/templates/dashboard/widgetuser-details.html
View file @
83cd6652
{%
extends "base.html"
%}
{%
extends 'base.html'
%}
{%
load static
%}
{%
block title %} {{ object.last_name }}, {{ object.first_name }} {% endblock
%}
{% block content %}
<title>
Widget User
</title>
<br><br>
<h2>
{{object.first_name}} {{object.middle_name}} {{object.last_name}}
</h2>
<h3>
{{object.department}}
</h3>
<h3>
{{object.department.home_unit}}
</h3>
{% block header %} {{ object.first_name }} {{ object.middle_name }} {{ object.last_name }} {% endblock %}
<a
href=
"/Widgetusers/{{ object.id }}/edit"
>
<input
type=
"button"
value=
"Edit Widget User"
>
</a>
"
{% endblock content %}
\ No newline at end of file
{% block content %}
<p>
{{ object.department.dept_name }}
<br>
{{ object.department.home_unit }}
<br>
</p>
<li>
<a
href =
"/widgetusers/{{ object.pk }}/edit/"
class=
"item"
>
Edit Widget User
</a>
</li>
{% endblock %}
widget_robo_mommy/Dashboard/templates/dashboard/widgetuser-edit.html
View file @
83cd6652
{%
extends "base.html"
%}
{%
extends 'base.html'
%}
{% load static %}
{% block title %} Edit Widget User {% endblock %}
{% block header %} Edit Widget User: {% endblock %}
{% block content %}
<h1>
Edit Widget User
</h1>
<form
action=
""
method=
POST
>
{% csrf_token %}
<form
method=
"post"
>
{% csrf_token %}
{{ form.as_p }}
{{ form.as_p }}
<input
type=
"submit"
value=
"Edit Widget User"
/>
</a>
</form>
{% endblock content %}
\ No newline at end of file
<input
type=
"submit"
value=
"Save Changes to Widget User"
>
</form>
{% endblock %}
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