diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2017-10-19 21:11:29 -0400 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2017-10-19 21:11:29 -0400 |
| commit | 427c5f1fd2061e229ad06dde4bd5921d296b12d9 (patch) | |
| tree | 03b954f9a1683683db115b1397159401dc7a003c /app/dispatch/templates | |
| parent | b8972c970ef70aae82b8a659af23bcb24bf998d1 (diff) | |
| download | dispatch-tracker-427c5f1fd2061e229ad06dde4bd5921d296b12d9.tar.gz dispatch-tracker-427c5f1fd2061e229ad06dde4bd5921d296b12d9.tar.xz | |
Rename Company to Customer system wide. Let's not do this again
Diffstat (limited to 'app/dispatch/templates')
6 files changed, 23 insertions, 23 deletions
diff --git a/app/dispatch/templates/dispatch/companies/detail.html b/app/dispatch/templates/dispatch/companies/detail.html index 5c643da..3ededbe 100644 --- a/app/dispatch/templates/dispatch/companies/detail.html +++ b/app/dispatch/templates/dispatch/companies/detail.html @@ -12,10 +12,10 @@ <div class="row"> <div class="col s6 left-align"> - <a href="{% url 'company_detail' object.id %}?date={{previous_week}}" class="btn blue"><i class="material-icons left">arrow_back</i> Prev</a> + <a href="{% url 'customer_detail' object.id %}?date={{previous_week}}" class="btn blue"><i class="material-icons left">arrow_back</i> Prev</a> </div> <div class="col s6 right-align"> - <a href="{% url 'company_detail' object.id %}?date={{next_week}}" class="btn blue"><i class="material-icons right">arrow_forward</i> Next</a> + <a href="{% url 'customer_detail' object.id %}?date={{next_week}}" class="btn blue"><i class="material-icons right">arrow_forward</i> Next</a> </div> </div> @@ -25,10 +25,10 @@ <div class="row"> <div class="col s6 left-align"> - <a href="{% url 'company_detail' object.id %}?date={{previous_week}}" class="btn blue"><i class="material-icons left">arrow_back</i> Prev</a> + <a href="{% url 'customer_detail' object.id %}?date={{previous_week}}" class="btn blue"><i class="material-icons left">arrow_back</i> Prev</a> </div> <div class="col s6 right-align"> - <a href="{% url 'company_detail' object.id %}?date={{next_week}}" class="btn blue"><i class="material-icons right">arrow_forward</i> Next</a> + <a href="{% url 'customer_detail' object.id %}?date={{next_week}}" class="btn blue"><i class="material-icons right">arrow_forward</i> Next</a> </div> </div> diff --git a/app/dispatch/templates/dispatch/companies/list.html b/app/dispatch/templates/dispatch/companies/list.html index e0a128f..e08837b 100644 --- a/app/dispatch/templates/dispatch/companies/list.html +++ b/app/dispatch/templates/dispatch/companies/list.html @@ -1,14 +1,14 @@ {% extends 'dispatch/base.html' %} -{% block title %}Companies{% endblock %} +{% block title %}Customers{% endblock %} {% block content %} <div class="row"> <div class="col s12 m6"> - <h1>Companies</h1> + <h1>Customers</h1> </div> <div class="col s12 m6 right-align"> - <a href="{% url 'company_new' %}" class="btn green">Add Company</a> + <a href="{% url 'customer_new' %}" class="btn green">Add Customer</a> </div> </div> <table class="striped bordered"> @@ -21,21 +21,21 @@ </tr> </thead> <tbody> - {% for company in object_list %} + {% for customer in object_list %} <tr> - <td>{{ company.name }}</td> - <td>{{ company.address }}</td> - <td>{{ company.phone_number }}</td> - <td>{{ company.email_address }}</td> + <td>{{ customer.name }}</td> + <td>{{ customer.address }}</td> + <td>{{ customer.phone_number }}</td> + <td>{{ customer.email_address }}</td> <td class="right-align"> {% if user.is_superuser %} - <a href="{% url 'company_edit' company.id %}" class="btn orange">Edit</a> + <a href="{% url 'customer_edit' customer.id %}" class="btn orange">Edit</a> {% endif %} - <a href="{% url 'company_detail' company.id %}" class="btn blue">View</a> + <a href="{% url 'customer_detail' customer.id %}" class="btn blue">View</a> </td> </tr> {% empty %} - <tr><td colspan="4">No companies yet.</td></tr> + <tr><td colspan="4">No customers yet.</td></tr> {% endfor %} </tbody> </table> diff --git a/app/dispatch/templates/dispatch/drivers/detail.html b/app/dispatch/templates/dispatch/drivers/detail.html index 7655470..c4c19e8 100644 --- a/app/dispatch/templates/dispatch/drivers/detail.html +++ b/app/dispatch/templates/dispatch/drivers/detail.html @@ -54,7 +54,7 @@ {% endif %} {% load custom_tags %} -{% listForCommaString "Company,Amount,Load Number,Description" as load_headers %} +{% listForCommaString "Customer,Amount,Description" as load_headers %} {% include "dispatch/generic_load_listing.html" %} <div class="row"> diff --git a/app/dispatch/templates/dispatch/generic_load_listing.html b/app/dispatch/templates/dispatch/generic_load_listing.html index e92176e..235a371 100644 --- a/app/dispatch/templates/dispatch/generic_load_listing.html +++ b/app/dispatch/templates/dispatch/generic_load_listing.html @@ -15,10 +15,10 @@ the fields beforehand i.e. \{\% load custom_tags %} - \{\% listForCommaString "Company,Amount,Load Number,Description" as load_headers %} + \{\% listForCommaString "Customer,Amount,Load Number,Description" as load_headers %} --> <!-- - <th>Company</th> + <th>Customer</th> <th>Driver</th> <th>Amount</th> <th>Load Number</th> @@ -29,8 +29,8 @@ <tbody> {% for load in loads|keyvalue:date %} <tr class="green lighten-4"> - {% if "Company" in load_headers %} - <td><a href="{% url 'company_detail' load.company.id %}">{{ load.company.name }}</a></td> + {% if "Customer" in load_headers %} + <td><a href="{% url 'customer_detail' load.customer.id %}">{{ load.customer.name }}</a></td> {% endif %} {% if "Driver" in load_headers %} <td><a href="{% url 'driver_detail' load.user.id %}">{{ load.user.first_name }} {{ load.user.last_name }}</a></td> diff --git a/app/dispatch/templates/dispatch/loads/detail.html b/app/dispatch/templates/dispatch/loads/detail.html index 02dc5a0..fff9cf2 100644 --- a/app/dispatch/templates/dispatch/loads/detail.html +++ b/app/dispatch/templates/dispatch/loads/detail.html @@ -27,8 +27,8 @@ </tr> <tr> - <th>Company</th> - <td>{{object.company}}</td> + <th>Customer</th> + <td>{{object.customer}}</td> </tr> <tr> diff --git a/app/dispatch/templates/dispatch/nav.html b/app/dispatch/templates/dispatch/nav.html index d40224c..c53a07e 100644 --- a/app/dispatch/templates/dispatch/nav.html +++ b/app/dispatch/templates/dispatch/nav.html @@ -2,7 +2,7 @@ <li><a href="{% url 'load_list' %}">Loads</a></li> {% if request.user.is_superuser %} <li><a href="{% url 'driver_list' %}">Drivers</a></li> - <li><a href="{% url 'company_list' %}">Companies</a></li> + <li><a href="{% url 'customer_list' %}">Customers</a></li> {% else %} <li><a href="{% url 'driver_edit' request.user.id %}">My Account</a></li> {% endif %} |
