39 lines
		
	
	
		
			998 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			998 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
{{template "base" .}}
 | 
						|
 | 
						|
{{define "title"}}{{.Account.Name}}{{end}}
 | 
						|
 | 
						|
{{define "new"}}
 | 
						|
    {{template "transaction-new" .}}
 | 
						|
{{end}}
 | 
						|
 | 
						|
{{define "main"}}
 | 
						|
<div class="budget-item">
 | 
						|
    <a href="#newtransactionmodal" data-bs-toggle="modal" data-bs-target="#newtransactionmodal">New Transaction</a>
 | 
						|
    <span class="time"></span>
 | 
						|
</div>
 | 
						|
<table class="container col-lg-12" id="content">
 | 
						|
    {{range .Transactions}}
 | 
						|
    <tr class="{{if .Date.After now}}future{{end}}">
 | 
						|
        <td>{{.Date.Format "02.01.2006"}}</td>
 | 
						|
        <td>
 | 
						|
            {{.Account}}
 | 
						|
        </td>
 | 
						|
        <td>
 | 
						|
            {{.Payee}}
 | 
						|
        </td>
 | 
						|
        <td>
 | 
						|
            {{if .CategoryGroup}}
 | 
						|
                {{.CategoryGroup}} : {{.Category}}
 | 
						|
            {{end}}
 | 
						|
        </td>
 | 
						|
        <td>
 | 
						|
            {{if .GroupID.Valid}}☀{{end}}
 | 
						|
        </td>
 | 
						|
        <td>
 | 
						|
            <a href="/budget/{{$.Budget.ID}}/transaction/{{.ID}}">{{.Memo}}</a>
 | 
						|
        </td>
 | 
						|
        {{template "amount-cell" .Amount}}
 | 
						|
    </tr>
 | 
						|
    {{end}}
 | 
						|
</table>
 | 
						|
{{end}} |