Browse Source

Use images in PDF only if the user has uploaded them

master
Immanuel Onyeka 1 year ago
parent
commit
0313364069
2 changed files with 5 additions and 1 deletions
  1. +1
    -1
      views/report/comparison.tpl
  2. +4
    -0
      views/report/header.tpl

+ 1
- 1
views/report/comparison.tpl View File

@@ -11,7 +11,7 @@
<tr><td>Term</td>
{{range .Estimate.Loans}}<td>{{.Term}} Years</td>{{end}}</tr>
<tr><td>Amortization</td>
{{range .Estimate.Loans}}<td>{{.Amortization}}</td>{{end}}</tr>
{{range .Estimate.Loans}}<td>Fixed</td>{{end}}</tr>
<tr><td>Interest rate</td>
{{range .Estimate.Loans}}<td>{{.Interest}}%</td>{{end}}</tr>
<tr><td>Loan payment</td>


+ 4
- 0
views/report/header.tpl View File

@@ -1,7 +1,9 @@
{{define "header"}}
<header class="heading">

{{if .Letterhead}}
<img src="data:image/png;base64,{{.Letterhead}}" />
{{end}}

<div>
<div class="user-info">
@@ -13,7 +15,9 @@
{{.User.Address.City}}, {{.User.Address.Region}} {{.User.Address.Zip}}
</small>
</div>
{{if .Avatar}}
<img src="data:image/png;base64,{{.Avatar}}" />
{{end}}
</div>

</header>


Loading…
Cancel
Save