diff options
author | Ida Delphine <mida@unicef.org> | 2021-08-20 14:06:18 +0300 |
---|---|---|
committer | Ida Delphine <mida@unicef.org> | 2021-08-20 14:06:18 +0300 |
commit | f0739959763c679c3f911a36eb50284137af7acf (patch) | |
tree | 16d1e5fe51dadd864ac08b994adb7e7e3c702551 | |
parent | dead996a5319fcec07fa69880761e717c54446ad (diff) |
layouts: Add button to download pdf
Signed-off-by: Ida Delphine <mida@unicef.org>
-rw-r--r-- | layouts/partials/default.html | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/layouts/partials/default.html b/layouts/partials/default.html index b60b3cb..8bd157c 100644 --- a/layouts/partials/default.html +++ b/layouts/partials/default.html @@ -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 }} |