blob: 920d07495025254efe857c5fe0bdbacece9e7931 (
plain)
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
57
|
{% extends "admin/base_site.html" %}
{% load i18n admin_urls admin_static %}
{% block breadcrumbs %}
<div class="breadcrumbs">
<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
› <a href="/admin/income/">Income</a>
› <a href="/admin/income/invoice/">Invoices</a>
› <a href="/admin/income/invoice/{{object.id}}/change/">{{object.title}}</a>
</div>
{% endblock %}
{% block content %}
<h1>{% trans "EDR Invoice for the month of" %} {{object.title}}</h1>
<div style="float: left; width: 45%">
<div class="results">
<table id="result_list">
<thead>
<tr>
<th scope="col" class="sortable column-title">
<div class="text"><a href="?o=1">Date</a></div>
<div class="clear"></div>
</th>
<th scope="col" class="sortable column-status">
<div class="text"><a href="?o=5">Time Start</a></div>
<div class="clear"></div>
</th>
<th scope="col" class="sortable column-status">
<div class="text"><a href="?o=5">Time Finish</a></div>
<div class="clear"></div>
</th>
<th scope="col" class="sortable column-status">
<div class="text"><a href="?o=5">Total</a></div>
<div class="clear"></div>
</th>
<th scope="col" class="sortable column-status">
<div class="text"><a href="?o=5">Work Done</a></div>
<div class="clear"></div>
</th>
</tr>
</thead>
<tbody>
{% for object in object_list %}
<tr class="{% cycle 'row1' 'row2' %}"><th class="field-title"><a href="/admin/income/invoiceitem/{{object.id}}/change/">{{object.time_start|date:"M d"}}</a></th><td class="field-status">{{object.time_start|date:"h:i"}}</td><td class="field-payment_status">{{object.time_end|date:"h:i"}}</td><td class="field-pub_date nowrap">{{object.total}}-{{object.rounded_total}}</td><td class="field-payment_status">{{object.work_done}}</td></tr>
{% endfor %}
<tr class="row2"><th class="field-title"> </th><td class="field-status"></td><td class="field-payment_status"></td><td class="field-pub_date nowrap"></td></tr> <tr class="row2"><th class="field-title">Total Hours:</th><td class="field-status">{{total_hours}}</td><td class="field-payment_status"></td><td class="field-pub_date nowrap"></td></tr>
<tr class="row2"><th class="field-title">Total Billed:</th><td class="field-status">${{total_billed}}</td><td class="field-payment_status"></td><td class="field-pub_date nowrap"></td></tr>
</tbody>
</table>
</div>
<p style="margin: 2rem 0; background: #79aec8; width: 120px; padding: 1rem;"><a style="color:white !important;" href="{% url 'download-invoice' object.slug %}">Generate Invoice</a></p>
{% endblock %}
|