Commit e03320ff authored by Jenica Vizmanos's avatar Jenica Vizmanos

Created html files for dashboard specifications

parent 3505d8fc
{% extends 'base.html' %}
{% load static %}
{% block title %}Widget v2{% endblock %}
{% block content %}
<h1>Welcome to Widget!</h1>
<p>
Widget Users:<br>
{% for user in users %}
<a href='{{ user.get_absolute_url }}'>{{ user }}</a><br>
{% endfor %}
</p>
<p>
<a href='/dashboard/widgetusers/add/'>Add Widget User</a>
</p>
<p>
<a href='/announcements/'>Announcement Board</a><br>
<a href='/forum/'>Forum</a><br>
<a href='/assignments/'>Assignments</a><br>
<a href='/calendar/'>Calendar</a><br>
</p>
{% endblock %}
\ No newline at end of file
{% extends 'base.html' %}
{% load static %}
{% block title %}Add Widget User{% endblock %}
{% block content %}
<h1>Add a new Widget User:</h1>
<form method="post">
{% csrf_token %}
{% for field in form %}
{{ field.label }}: {{ field }}<br><br>
{% endfor %}
<input type="submit" value="Add Widget User">
</form>
{% endblock %}
\ No newline at end of file
{% extends 'base.html' %}
{% load static %}
{% block title %}{{ object }}{% endblock %}
{% block content %}
<h1>{{ object.first_name }} {{ object.middle_name }} {{ object.last_name }}</h1>
<p>
{{ object.department.dept_name }}<br>
{{ object.department.home_unit }}
</p>
<p>
<a href='/dashboard/widgetusers/{{ object.pk }}/edit/'>Edit Widget User</a>
</p>
{% endblock %}
\ No newline at end of file
{% extends 'base.html' %}
{% load static %}
{% block title %}Edit Widget User{% endblock %}
{% block content %}
<h1>Edit Widget User:</h1>
<form method="post">
{% csrf_token %}
{% for field in form %}
{{ field.label }}: {{ field }}<br><br>
{% endfor %}
<input type="submit" value="Save Changes to Widget User">
</form>
{% endblock %}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment