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 %} {% block header %} Add a new Widget user: {% endblock %}
<h1>Add Widget User</h1>
<form method="post">
{% block content %}
<form action="" method=POST>
{% csrf_token %} {% csrf_token %}
{{ form.as_p }}
<a href="/Widgetusers/{{WidgetUser.pk}}/details">
<button type="submit">Add Widget User</button>
</a>
{{ form.as_p }}
</form> <input type="submit" value="Add Widget User">
{% endblock content %} </form>
\ No newline at end of file {% endblock %}
{% extends "base.html" %} {% extends 'base.html' %}
{% load static %} {% block title %} {{ object.last_name }}, {{ object.first_name }} {% endblock %}
{% block content %} {% block header %} {{ object.first_name }} {{ object.middle_name }} {{ object.last_name }} {% endblock %}
<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>
<a href="/Widgetusers/{{ object.id }}/edit"> {% block content %}
<input type="button" value="Edit Widget User"> <p>
</a>" {{ object.department.dept_name }} <br>
{% endblock content %} {{ object.department.home_unit }} <br>
\ No newline at end of file </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 content %} {% block header %} Edit Widget User: {% endblock %}
<h1>Edit Widget User</h1>
<form method="post"> {% block content %}
<form action="" method=POST>
{% csrf_token %} {% csrf_token %}
{{ form.as_p }} {{ form.as_p }}
<input type="submit" value="Edit Widget User" /> <input type="submit" value="Save Changes to Widget User">
</a> </form>
</form> {% endblock %}
{% endblock content %}
\ 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