hledger/hledger-web/templates/journal.hamlet

38 lines
1.2 KiB
Plaintext

<h2>
#{title'}
$if elem CapAdd caps
<a #addformlink href="#" role="button" style="cursor:pointer; margin-top:1em;"
data-toggle="modal" data-target="#addmodal" title="Lisää uusi tapahtuma kirjanpitoon.">
Kirjaa tapahtuma
<div .table-responsive>
<table .transactionsreport .table .table-condensed>
<thead>
<th .date style="text-align:left;">Päiväys
<th .description style="text-align:left;">Selite
<th .account style="text-align:left;">Tili
<th .amount style="text-align:right;">Summa
$forall torig <- items
<tr .title ##{transactionFrag torig} title="#{showTransaction torig}">
<td .date nowrap>
#{show (tdate torig)}
<td colspan=2>
#{textElideRight 60 (tdescription torig)}
<td .amount style="text-align:right;">
$forall Posting { paccount = acc, pamount = amt } <- tpostings torig
<tr .posting>
<td>
<td>
<td>
&nbsp;
<a href="@?{acctlink acc}##{tindex torig}" title="#{acc}">
#{elideAccountName 40 acc}
<td .amount style="text-align:right;">
^{mixedAmountAsHtml amt}
$if elem CapAdd caps
^{addModal AddR j today}