aboutsummaryrefslogtreecommitdiff
path: root/app/dispatch/templates
diff options
context:
space:
mode:
authorMitch Riedstra <Mitch@riedstra.us>2017-10-09 22:32:36 -0400
committerMitch Riedstra <Mitch@riedstra.us>2017-10-09 22:32:36 -0400
commitaf6167f9d47182cc332ba4f4bdc65cc7ed890726 (patch)
tree0291084425fdc12daa8302998365f2ee6d5e5d27 /app/dispatch/templates
parent5f137f66f19e60fb6f4b44a2d85076223e5837c5 (diff)
downloaddispatch-tracker-af6167f9d47182cc332ba4f4bdc65cc7ed890726.tar.gz
dispatch-tracker-af6167f9d47182cc332ba4f4bdc65cc7ed890726.tar.xz
Start the ugly process of cleaning up the views. Added a datepicker to the load date form. Added the 'load_number' field to the LoadCreate view
Diffstat (limited to 'app/dispatch/templates')
-rw-r--r--app/dispatch/templates/dispatch/base.html23
-rw-r--r--app/dispatch/templates/dispatch/drivers/detail.html10
2 files changed, 13 insertions, 20 deletions
diff --git a/app/dispatch/templates/dispatch/base.html b/app/dispatch/templates/dispatch/base.html
index 693208f..00116e3 100644
--- a/app/dispatch/templates/dispatch/base.html
+++ b/app/dispatch/templates/dispatch/base.html
@@ -31,14 +31,13 @@
</head>
<body>
- <nav class="light-blue lighten-1" role="navigation">
+ <nav class="brown darken-3" role="navigation">
<div class="nav-wrapper container"><a id="logo-container" href="{% url 'home' %}" class="brand-logo">Dispatch Tracker</a>
<ul class="right hide-on-med-and-down">
{% if user.is_authenticated %}
<li><a href="{% url 'load_list' %}">Loads</a></li>
<li><a href="{% url 'driver_list' %}">Drivers</a></li>
<li><a href="{% url 'company_list' %}">Companies</a></li>
- <li><a href="#">Contacts</a></li>
<li><a href="{% url 'logout' %}">Logout</a></li>
{% else %}
<li><a href="{% url 'login' %}">Login</a></li>
@@ -50,7 +49,6 @@
<li><a href="{% url 'load_list' %}">Loads</a></li>
<li><a href="#">Drivers</a></li>
<li><a href="#">Companies</a></li>
- <li><a href="#">Contacts</a></li>
<li><a href="{% url 'logout' %}">Logout</a></li>
{% else %}
<li><a href="{% url 'login' %}">Login</a></li>
@@ -68,28 +66,23 @@
</div>
</main>
- <footer class="page-footer orange">
+ <footer class="page-footer grey darken-4">
<div class="container">
- <div class="row">
- <div class="col l6 s12">
- <h5 class="white-text">Company Bio</h5>
- <p class="grey-text text-lighten-4">We are a team of college students working on this project like it's our full time job. Any amount would help support and continue development on this project and is greatly appreciated.</p>
-
-
- </div>
- </div>
+ <p>
+ Made by <a class="blue-text text-lighten-3" href="https://www.stridet.com">Stridet LLC</a>
+ </p>
</div>
+ <!--
<div class="footer-copyright">
- <div class="container">
- Made by <a class="orange-text text-lighten-3" href="http://materializecss.com">Materialize</a>
- </div>
</div>
+ -->
</footer>
<!--Import jQuery before materialize.js-->
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="{% static 'materialize/js/materialize.min.js' %}"></script>
+ <script type="text/javascript" src="{% static 'base.js' %}"></script>
<script>
$('select').material_select();
diff --git a/app/dispatch/templates/dispatch/drivers/detail.html b/app/dispatch/templates/dispatch/drivers/detail.html
index 69c1f3a..bc674b9 100644
--- a/app/dispatch/templates/dispatch/drivers/detail.html
+++ b/app/dispatch/templates/dispatch/drivers/detail.html
@@ -4,18 +4,18 @@
{% block content %}
<div class="row">
- <div class="col s12 m6">
- <h1>Driver: {{ object.first_name }} {{ object.last_name }}</h1>
- <h2>Loads for {{start_date}} - {{end_date}}</h2>
+ <div class="col s12">
+ <h1>Driver Summary for {{ object.first_name }} {{ object.last_name }}</h1>
+ <h2>Loads for {{start_date|date:"l, F, d"}} to {{end_date|date:"l, F, d"}}</h2>
</div>
</div>
<div class="row">
<div class="col s6 left-align">
- <a href="{% url 'driver_detail' object.id %}?date={{previous_week}}" class="btn blue"><i class="material-icons left">arrow_back</i> Prev</a>
+ <a href="{% url 'driver_detail' object.id %}?date={{previous_week|date:"m/d/Y"}}" class="btn blue"><i class="material-icons left">arrow_back</i> Prev</a>
</div>
<div class="col s6 right-align">
- <a href="{% url 'driver_detail' object.id %}?date={{next_week}}" class="btn blue"><i class="material-icons right">arrow_forward</i> Next</a>
+ <a href="{% url 'driver_detail' object.id %}?date={{next_week|date:"m/d/Y"}}" class="btn blue"><i class="material-icons right">arrow_forward</i> Next</a>
</div>
</div>