aboutsummaryrefslogtreecommitdiff
path: root/app/dispatch/templates
diff options
context:
space:
mode:
Diffstat (limited to 'app/dispatch/templates')
-rw-r--r--app/dispatch/templates/dispatch/loads/detail.html83
-rw-r--r--app/dispatch/templates/dispatch/paperwork/add.html3
2 files changed, 83 insertions, 3 deletions
diff --git a/app/dispatch/templates/dispatch/loads/detail.html b/app/dispatch/templates/dispatch/loads/detail.html
index 3460ccc..bf6d809 100644
--- a/app/dispatch/templates/dispatch/loads/detail.html
+++ b/app/dispatch/templates/dispatch/loads/detail.html
@@ -5,7 +5,88 @@
{% block content %}
<div class="row">
<div class="col s12 m6">
- <h1>Load details {{object.load_number}}</h1>
+ <h1>Details for {{object.load_number}}</h1>
</div>
</div>
+
+<div class="row">
+ <div class="col s12">
+ <div class="right-align">
+ <a class="btn blue" href="{%url 'load_edit' object.id %}">Edit</a>
+ </div>
+ <table class="bordered">
+ <tr>
+ <th>Date</th>
+ <td>{{object.date}}</td>
+ </tr>
+
+ <tr>
+ <th>User</th>
+ <td>{{object.user}}</td>
+ </tr>
+
+ <tr>
+ <th>Company</th>
+ <td>{{object.company}}</td>
+ </tr>
+
+ <tr>
+ <th>Load Number</th>
+ <td>{{object.load_number}}</td>
+ </tr>
+
+ <tr>
+ <th>Description</th>
+ <td>{{object.description}}</td>
+ </tr>
+
+ <tr>
+ <th>Delivered To</th>
+ <td>{{object.delivered_to}}</td>
+ </tr>
+
+ <tr>
+ <th>Amount</th>
+ <td>{{object.amount}}</td>
+ </tr>
+
+
+
+ </table>
+
+ </div>
+
+
+ <div class="row">
+ <div class="col s12" style="padding-top: 50px;">
+ <h4>Attached Files:</h4>
+
+ <div class="right-align">
+ <a class="btn blue" href="{% url 'paperwork_upload' object.id %}">Upload</a>
+ </div>
+
+ <table>
+ <thead>
+ <th>Description: </th>
+ <th></th>
+ </thead>
+ <tbody>
+ {% for p in paperwork_list %}
+ <tr>
+ <td>{{p.description}}</td>
+ <td class="right-align">
+ <a class="btn red" href="{% url 'paperwork_delete' object.id p.id %}">Delete</a>
+ <a class="btn green" target="_blank" href="{{p.document.url}}">Download</a>
+ </td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+
+ </div>
+ </div>
+
+
+</div>
+
{% endblock %}
diff --git a/app/dispatch/templates/dispatch/paperwork/add.html b/app/dispatch/templates/dispatch/paperwork/add.html
index 107c905..840a387 100644
--- a/app/dispatch/templates/dispatch/paperwork/add.html
+++ b/app/dispatch/templates/dispatch/paperwork/add.html
@@ -9,8 +9,6 @@
</div>
</div>
-fuck
-
{% if form.errors %}
{{form.errors}}
@@ -19,6 +17,7 @@ fuck
<form action="" method="post" enctype="multipart/form-data">{% csrf_token %}
{{ form.as_p }}
+ <div style="padding-top: 10px;"></div>
<input type="submit" class="btn blue" value="Update" />
</form>