aboutsummaryrefslogtreecommitdiff
path: root/app/dispatch/templates/dispatch/invoice/detail.html
blob: 850c4275badc76eebbe24677ab6e81ab617e9dde (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{% 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 m6">
      <h1>Invoice for {{object.invoice_date}} by {{object.owner}}</h1>
    </div>
    <div class="col s12 m6">
      <div class="right-align">
        <form action="{% url 'invoice_delete' object.pk %}" id="invoice_delete" method="POST">
          <!-- <input type="submit" class="btn red" value="Delete" /> -->
          {% csrf_token %}
          <a class="btn red" href="#" onClick="warn_submit('Are you sure?', '#invoice_delete')">Delete</a>
          <a class="btn orange darken-3" href="{% url 'invoice_edit' object.pk %}">Edit</a>
          <a class="btn green" href="#" onClick="window.print()">Print</a>
        </form>
      </div>
    </div>
</div>

<div style="padding-top:30px;" class="hide-print"></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">
      <form action="{% url 'invoice_delete' object.pk %}" id="invoice_delete" method="POST">
        <!-- <input type="submit" class="btn red" value="Delete" /> -->
        {% csrf_token %}
        <a class="btn red" href="#" onClick="warn_submit('Are you sure?', '#invoice_delete')">Delete</a>
        <a class="btn orange darken-3" href="{% url 'invoice_edit' object.pk %}">Edit</a>
        <a class="btn green" href="#" onClick="window.print()">Print</a>
      </form>
    </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%}