-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathrecords.html
50 lines (45 loc) · 1.23 KB
/
records.html
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
---
layout: default
title: 收支記錄
---
<div id="record">
<h1>{{ page.title }}</h1>
{% assign sorted_record = (site.data.records | sort: {{record_hash[0]}}) %}
{% for record_hash in sorted_record reversed %}
{% assign record = record_hash[1] %}
<h3 class="text-center" id="record-{{ forloop.rindex0 }}">{{ record.title }} <a href="#record-{{ forloop.rindex0 }}"><sup>⚓</sup></a></h3>
<div class="scrollbox">
<table class="text-center">
<thead>
<tr>
<th class="name">名稱</th>
<th>分類</th>
<th>單價</th>
<th>數量</th>
<th>總額</th>
<th>備註</th>
</tr>
</thead>
<tfoot class="sum text-center">
<tr>
<td colspan="2"><span>本次總額</span>:{{ record.total }}</td>
<td colspan="2"><span>前次餘額</span>:{{ record.property }}</td>
<td colspan="2"><span>收支現況</span>:{{ record.balance }}</td>
</tr>
</tfoot>
<tbody>
{% for item in record.data %}
<tr>
<td class="name">{{ item.name }}</td>
<td>{{ item.category }}</td>
<td>{{ item.unitPrice }}</td>
<td>{{ item.number }}</td>
<td>{{ item.total }}</td>
<td>{{ item.note }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endfor %}
</div>