From dd748147a7d3f8379d1ea14036b694490dd0b219 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Thu, 19 Oct 2017 20:39:25 -0400 Subject: Remove the 'load_number' model field --- app/dispatch/templates/dispatch/generic_load_listing.html | 15 +++++++-------- app/dispatch/templates/dispatch/loads/detail.html | 9 ++------- app/dispatch/templates/dispatch/loads/edit.html | 2 +- app/dispatch/templates/dispatch/paperwork/add.html | 2 +- 4 files changed, 11 insertions(+), 17 deletions(-) (limited to 'app/dispatch/templates') diff --git a/app/dispatch/templates/dispatch/generic_load_listing.html b/app/dispatch/templates/dispatch/generic_load_listing.html index 068ee0c..e92176e 100644 --- a/app/dispatch/templates/dispatch/generic_load_listing.html +++ b/app/dispatch/templates/dispatch/generic_load_listing.html @@ -37,18 +37,17 @@ {% endif %} {% if "Amount" in load_headers %} - {% if load.amount == 0 %} - {{ load.amount }} - {% else %} - {{ load.amount }} - {% endif %} - {% endif %} - {% if "Load Number" in load_headers %} - {{ load.load_number }} + {% if load.amount == 0 %} + {{ load.amount }} + {% else %} + {{ load.amount }} + {% endif %} {% endif %} + {% if "Description" in load_headers %} {{ load.description }} {% endif %} + View diff --git a/app/dispatch/templates/dispatch/loads/detail.html b/app/dispatch/templates/dispatch/loads/detail.html index 3368cb6..02dc5a0 100644 --- a/app/dispatch/templates/dispatch/loads/detail.html +++ b/app/dispatch/templates/dispatch/loads/detail.html @@ -1,12 +1,12 @@ {% extends 'dispatch/base.html' %} -{% block title %}Details - {{ object.load_number }}{% endblock %} +{% block title %}Details - {{ object.description }}{% endblock %} {% block content %} {% load dynamic_key %}
-

Details for {{object.load_number}}

+

Details for {{object.description}}

@@ -31,11 +31,6 @@ {{object.company}} - - Load Number - {{object.load_number}} - - Description {{object.description}} diff --git a/app/dispatch/templates/dispatch/loads/edit.html b/app/dispatch/templates/dispatch/loads/edit.html index f43c242..3049fb6 100644 --- a/app/dispatch/templates/dispatch/loads/edit.html +++ b/app/dispatch/templates/dispatch/loads/edit.html @@ -1,6 +1,6 @@ {% extends 'dispatch/base.html' %} -{% block title %}Edit - {{ object.load_number }}{% endblock %} +{% block title %}Edit - {{ object.description }}{% endblock %} {% block content %}
diff --git a/app/dispatch/templates/dispatch/paperwork/add.html b/app/dispatch/templates/dispatch/paperwork/add.html index 840a387..f828f9c 100644 --- a/app/dispatch/templates/dispatch/paperwork/add.html +++ b/app/dispatch/templates/dispatch/paperwork/add.html @@ -1,6 +1,6 @@ {% extends 'dispatch/base.html' %} -{% block title %}Edit - {{ object.load_number }}{% endblock %} +{% block title %}Edit - {{ object.description }}{% endblock %} {% block content %}
-- cgit v1.2.3