web: remove more deprecated html attributes (align) and fix a tag with duplicate style attribute

This commit is contained in:
Thomas R. Koll 2015-12-18 23:12:39 +01:00
parent f9c1902cbb
commit 9f49da3713
3 changed files with 8 additions and 5 deletions

View File

@ -138,7 +138,7 @@ searchform VD{..} = [hamlet|
-- <tr#addbuttonrow>
-- <td>
-- <span.help>^{formathelp}
-- <td align=right>
-- <td>
-- <span.help>
-- Are you sure ? This will overwrite the journal. #
-- <input type=hidden name=action value=edit>
@ -193,7 +193,7 @@ balanceReportAsHtml _ vd@VD{..} (items',total) =
<td colspan=2>
<tr>
<td>
<td.balance align=right>#{mixedAmountAsHtml total}
<td.balance>#{mixedAmountAsHtml total}
|]
where
l = ledgerFromJournal Any j
@ -210,11 +210,11 @@ balanceReportAsHtml _ vd@VD{..} (items',total) =
&nbsp;
<a href="@?{acctonlyquery}" title="Show transactions affecting this account but not subaccounts">only
<td.balance align=right>#{mixedAmountAsHtml abal}
<td.balance>#{mixedAmountAsHtml abal}
|]
where
hassubs = not $ maybe False (null.asubs) $ ledgerAccount l acct
-- <td.numpostings align=right title="#{numpostings} transactions in this account">(#{numpostings})
-- <td.numpostings title="#{numpostings} transactions in this account">(#{numpostings})
-- numpostings = maybe 0 (length.apostings) $ ledgerAccount l acct
depthclass = "depth"++show aindent
inacctclass = case inacctmatcher of

View File

@ -35,7 +35,7 @@ getJournalR = do
hledgerLayout vd "journal" [hamlet|
<h2#contenttitle>#{title}
<!-- p>Journal entries record movements of commodities between accounts. -->
<a#addformlink role="button" style="cursor:pointer;" onClick="addformReset(true);" data-toggle="modal" data-target="#addmodal" title="Add a new transaction to the journal" style="margin-top:1em;">Add a transaction
<a#addformlink role="button" style="cursor:pointer; margin-top:1em;" onClick="addformReset(true);" data-toggle="modal" data-target="#addmodal" itle="Add a new transaction to the journal" >Add a transaction
^{maincontent}
|]

View File

@ -128,6 +128,9 @@ tr td:first-child { padding-left:0.3em; }
.amount, .balance { width:2em; } /* minimise width */
.positive { }
td.balance, td.numpostings {
text-align: right;
}
/* table.transactionsreport { border-spacing: 0; } */
/* .transactionsreport td { } */
/* .transactionsreport pre { margin-top:0; } */