aboutsummaryrefslogtreecommitdiff
path: root/app/dispatch/templates/dispatch/invoice/detail.html
blob: d7b30f6bd08cfbd4c34ab7570dee8856cd6e565f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{% extends 'dispatch/base.html' %}

{% block title %}Invoice for {{object.invoice_date}} by {{object.owner}}{% endblock %}

{% block content %}
<div class="row hide-print">
    <div class="col s12">
      <h1>Invoice for {{object.invoice_date}} by {{object.owner}}</h1>
    </div>
</div>

<div style="padding-top:30px;" class="hide-print"></div>

<div class="z-depth-3 padding-30">
{% include "dispatch/invoice/detail-table.html" %}
</div>

<div class="row hide-print" style="padding-top: 20px;">

  <div class="col s12">
    <div class="right-align">
      <a class="btn red" href="{% url 'invoice_delete' object.pk%}">Delete</a>
      <a class="btn green" href="#" onClick="window.print()">Print</a>
    </div>
  </div>

</div>

<style>
.padding-30 {
  padding: 30px;
}
</style>

<link rel="stylesheet" href="/static/print.css" media="print">
<link rel="stylesheet" href="/static/materialize/css/materialize.min.css" media="print">

{%endblock%}