fixed minor cosmetic errors in the websites

parent 048fe3f4
{% extends 'base.html' %}
{% load static %}
{% block title %}
Widget v2
Widget v2
{% endblock %}
{% block header %}
<h1>Welcome to Widget!</h1>
{% endblock %}
{% block content %}
Widget Users:
<br>
<ul>
{% for object in users %}
<h1>Welcome to Widget!</h1>
<h2>Widget Users:</h2>
<ul>
{% for object in users %}
<li>
<a href = "{{ object.get_absolute_url }}">{{ object.last_name }}, {{ object.first_name }}</a>
</li>
{% endfor %}
</ul>
<form action = "http://127.0.0.1:8000/dashboard/widgetusers/add">
{% endfor %}
</ul>
<form action = "http://127.0.0.1:8000/dashboard/widgetusers/add">
<input type = "submit" value = "Add Widget User" />
</form>
<p>
<a href = "http://127.0.0.1:8000/announcements">Announcements</a>
<a href = "http://127.0.0.1:8000/forum">Forum</a>
<a href = "http://127.0.0.1:8000/assignments">Assignments</a>
<a href = "http://127.0.0.1:8000/calendar">Calendar</a>
</p>
</form>
<p>
<a href = "http://127.0.0.1:8000/announcements">Announcements</a>
<a href = "http://127.0.0.1:8000/forum">Forum</a>
<a href = "http://127.0.0.1:8000/assignments">Assignments</a>
<a href = "http://127.0.0.1:8000/calendar">Calendar</a>
</p>
{% endblock %}
\ No newline at end of file
......@@ -6,12 +6,8 @@
{% endblock %}
{% block header %}
<h1>Add a new Widget User:</h1>
{% endblock %}
{% block content %}
<h1>Add a new Widget User:</h1>
{{ form.non_field_errors }}
{% for field in form %}
{% if field.errors %}
......
......@@ -2,26 +2,22 @@
{% block title %}
{{ object.last_name }}, {{ object.first_name }}
{{ object.last_name }}, {{ object.first_name }}
{% endblock %}
{% block header %}
<h1>{{ object.first_name }} {{ object.middle_name }} {{ object.last_name }}</h1>
{% endblock %}
{% block content %}
<ul>
{% block content %}
<h1>{{ object.first_name }} {{ object.middle_name }} {{ object.last_name }}</h1>
<ul>
<li>{{ object.department.dept_name }}</li>
<li>{{ object.department.home_unit }}</li>
<br>
</ul>
<p>
<button onclick="window.location.href='../../../dashboard/widgetusers/{{object.pk}}/edit';">Edit Widget User</button><br/>
</p>
<br>
</ul>
<p>
<button onclick="window.location.href='../../../dashboard/widgetusers/{{object.pk}}/edit';">Edit Widget User</button><br/>
</p>
{% endblock %}
\ No newline at end of file
......@@ -6,13 +6,8 @@
{% endblock %}
{% block header %}
<h1>Edit Widget User:</h1>
{% endblock %}
{% block content %}
<h1>Edit Widget User:</h1>
{{ form.non_field_errors }}
{% for field in form %}
{% if field.errors %}
......
No preview for this file type
......@@ -20,14 +20,13 @@ Widget's Forum
<br><br><br>
<a href = "{% url 'forum:addPost' %}"><button>New Post</button></a>
<br><br>
<a href="/dashboard"> Dashboard</a>
<a href="/dashboard">Dashboard</a>
<br>
<a href="announcements"> Announcements</a>
<a href="/announcements">Announcements</a>
<br>
<a href="assignments"> Assignments</a>
<a href="/assignments">Assignments</a>
<br>
<a href="calendar"> Calendar</a>
<a href="/calendar">Calendar</a>
<br>
</div>
{% 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