Commit 7c70087e authored by Almira Redoble's avatar Almira Redoble

After resolving conflict within group, implemented project-level template...

After resolving conflict within group, implemented project-level template base.html. Started to adapt dashboard templates to new base.html.
parent 4aa2dfa5
......@@ -12,6 +12,9 @@ class UserForm(forms.ModelForm):
model = WidgetUser
fields = '__all__'
labels = {
'first_name': ('First Name'),
'middle_name': ('Middle Name'),
'last_name': ('Last Name'),
'department': ('Department, Home Unit'),
}
\ No newline at end of file
body {
background-color:rgb(167, 36, 75)
}
\ No newline at end of file
{% extends 'base.html' %}
{% load static %}
{% block style %}{% static 'dashboard/style.css' %}{% endblock %}
{% block title %}Widget v2{% endblock %}
{% block heading %}Welcome to Widget!{% endblock %}
{% block content %}
......@@ -14,7 +15,7 @@
{% endfor %}
</ul>
<button onclick="window.location.href='#';">
<button onclick="window.location.href='{% url 'dashboard:user-add' %}';">
Add Widget User
</button>
......
{% extends 'base.html' %}
{% load static %}
{% block style %}{% static 'dashboard/style.css' %}{% endblock %}
{% block title %}Add Widget User{% endblock %}
{% block heading %}Add a new Widget User:{% endblock %}
{% block content %}
......
{% extends 'base.html' %}
{% load static %}
{% block style %}{% static 'dashboard/style.css' %}{% endblock %}
{% block title %}{{ object.last_name }}, {{ object.first_name }}{% endblock %}
{% block heading %}
<p id="uppercase">
......@@ -13,7 +14,7 @@
<p> {{ object.department.dept_name }} </p>
<p> {{ object.department.home_unit }} </p>
<button onclick="window.location.href='#';">
<button onclick="window.location.href='{% url 'dashboard:user-edit' pk=object.pk%}';">
Edit Widget User
</button>
{% endblock %}
\ No newline at end of file
{% extends 'base.html' %}
{% load static %}
{% block style %}{% static 'dashboard/style.css' %}{% endblock %}
{% block title %}Edit Widget User{% endblock %}
{% block heading %}Edit Widget User:{% endblock %}
{% block content %}
......
......@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="/static/style.css">
<link rel="stylesheet" href="{% block style %}{% endblock %}">
<title>{% block title %}{% endblock %}</title>
</head>
<body>
......@@ -12,6 +12,9 @@
<div class="content">
{% block content %}{% endblock %}
<div class="navigation">
{% block navigation %}{% endblock %}
</div>
</div>
</body>
</html>
\ 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