fixed minor cosmetic errors in the websites

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