Edited the HTML templates for Dashboard to use CSS

parent 3bbae7af
{% 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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="/forum/">Forum</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href = "/assignments/">Assignments</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href = "/calendar/">Calendar</a>
</div>
{% endblock %}
\ No newline at end of file
{% 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 %}
{% 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 %}
{% 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 %}
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