layouts: Add button to download pdf

Signed-off-by: Ida Delphine <mida@unicef.org>
This commit is contained in:
Ida Delphine 2021-08-20 12:06:18 +01:00
parent dead996a53
commit f073995976

View file

@ -12,12 +12,17 @@
{{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode}}
{{ end }}
{{ end }}
{{ if .Content }}
<div>
<button class="btn btn-primary btn-block" id="generatePDF" > Get Pdf </button>
</div>
{{ end }}
</ul>
</div>
</div>
<div class="col-lg-9">
<div class="p-lg-5 p-4 bg-white">
<h2 class="mb-5">{{ .Title }}</h2>
<div class="p-lg-5 p-4 bg-white" id="content">
<h2 class="mb-5" id="title">{{ .Title }}</h2>
{{ if .Content }}
<div class="content">{{.Content}}</div>
{{ else }}