diff options
| author | Mitch Riedstra <Mitch@riedstra.us> | 2017-10-18 15:55:23 -0400 |
|---|---|---|
| committer | Mitch Riedstra <Mitch@riedstra.us> | 2017-10-18 15:55:23 -0400 |
| commit | 5b2f6041e739be4810709ca49d0538279d3f549d (patch) | |
| tree | 8aba1c4a2d59e85a873bdcbb3327722b5e876ffa /app/dispatch/templates | |
| parent | 2c4f4a6a09feeb333f59cfc6c2d5d6c8e417599f (diff) | |
| download | dispatch-tracker-5b2f6041e739be4810709ca49d0538279d3f549d.tar.gz dispatch-tracker-5b2f6041e739be4810709ca49d0538279d3f549d.tar.xz | |
Added a delivered to field. File uploads work. Load detail view works properly now. File upload names are properly set. You can now delete uploaded files
Diffstat (limited to 'app/dispatch/templates')
| -rw-r--r-- | app/dispatch/templates/dispatch/loads/detail.html | 83 | ||||
| -rw-r--r-- | app/dispatch/templates/dispatch/paperwork/add.html | 3 |
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> |
