web: reorganise sidebar links
This commit is contained in:
		
							parent
							
								
									3f3a526e8a
								
							
						
					
					
						commit
						7778a0b821
					
				| @ -51,10 +51,10 @@ sidebar :: ViewData -> HtmlUrl AppRoute | |||||||
| sidebar vd@VD{..} = | sidebar vd@VD{..} = | ||||||
|  [hamlet| |  [hamlet| | ||||||
|  <a#sidebar-toggle-link.togglelink href="#" title="Toggle sidebar">[+] |  <a#sidebar-toggle-link.togglelink href="#" title="Toggle sidebar">[+] | ||||||
| 
 |  | ||||||
|  <div#sidebar-content> |  <div#sidebar-content> | ||||||
|  | 
 | ||||||
|   <p style="margin-top:1em;"> |   <p style="margin-top:1em;"> | ||||||
|    <a href=@{RegisterR} title="Show current register">Register |    <a#addformlink href="#" onclick="return addformToggle(event)" title="Add a new transaction to the journal" style="margin-top:1em;">Add a transaction.. | ||||||
| 
 | 
 | ||||||
|   <p style="margin-top:1em;"> |   <p style="margin-top:1em;"> | ||||||
|    <a href=@{JournalR} title="Show all transactions in journal format">Journal |    <a href=@{JournalR} title="Show all transactions in journal format">Journal | ||||||
| @ -66,9 +66,9 @@ sidebar vd@VD{..} = | |||||||
|      edit |      edit | ||||||
| 
 | 
 | ||||||
|   <p style="margin-top:1em;"> |   <p style="margin-top:1em;"> | ||||||
|    <a#addformlink href="#" onclick="return addformToggle(event)" title="Add a new transaction to the journal" style="margin-top:1em;">Add a transaction.. |    <a href=@{RegisterR} title="Show current register">Register | ||||||
| 
 | 
 | ||||||
|   <div#accounts> |   <div#accounts style="margin-top:.5em;"> | ||||||
|    ^{accounts} |    ^{accounts} | ||||||
| |] | |] | ||||||
|  where |  where | ||||||
| @ -314,14 +314,8 @@ balanceReportAsHtml :: WebOpts -> ViewData -> BalanceReport -> HtmlUrl AppRoute | |||||||
| balanceReportAsHtml _ vd@VD{..} (items',total) = | balanceReportAsHtml _ vd@VD{..} (items',total) = | ||||||
|  [hamlet| |  [hamlet| | ||||||
|  <table.balancereport> |  <table.balancereport> | ||||||
|   <tr> |  | ||||||
|    <td colspan=3> |  | ||||||
|     <br> |  | ||||||
|     Accounts |  | ||||||
| 
 |  | ||||||
|   $forall i <- items |   $forall i <- items | ||||||
|    ^{itemAsHtml vd i} |    ^{itemAsHtml vd i} | ||||||
| 
 |  | ||||||
|   <tr.totalrule> |   <tr.totalrule> | ||||||
|    <td colspan=3> |    <td colspan=3> | ||||||
|   <tr> |   <tr> | ||||||
|  | |||||||
| @ -116,7 +116,7 @@ body                        { margin:0; } | |||||||
| .balancereport tr           { vertical-align:bottom; border-spacing:0; } | .balancereport tr           { vertical-align:bottom; border-spacing:0; } | ||||||
| .balancereport .title       { white-space:nowrap; } | .balancereport .title       { white-space:nowrap; } | ||||||
| .balancereport .item        { } | .balancereport .item        { } | ||||||
| .balancereport .depth0      { padding-top:1em; } | /* .balancereport .depth0      { padding-top:1em; } */ | ||||||
| .balancereport td           { padding:0; } | .balancereport td           { padding:0; } | ||||||
| .totalrule td               { border-top:thin solid black; } | .totalrule td               { border-top:thin solid black; } | ||||||
| .balancereport .account     { white-space:nowrap; } | .balancereport .account     { white-space:nowrap; } | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user