Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vjeantet/hugo-theme-docport.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/_checklist-header.html')
-rw-r--r--layouts/partials/_checklist-header.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/layouts/partials/_checklist-header.html b/layouts/partials/_checklist-header.html
new file mode 100644
index 0000000..4426680
--- /dev/null
+++ b/layouts/partials/_checklist-header.html
@@ -0,0 +1,16 @@
+{{if .Params.checklist}}
+ {{ $formID := .File.UniqueID }}
+ <link rel="stylesheet" href='{{ (resources.Get "sass/checklist.scss" | resources.ExecuteAsTemplate "css/checklist.main.scss" . | toCSS).Permalink }}'>
+ <form name="{{$formID}}" id="6d2ab01b-fad4-4e70-83a8-b910ca848fec" ref="{{with $.Params.Ref}}{{.}}{{else}}{{printf "%s-%s" $.CurrentSection.Title $formID}}{{end}}">
+ <script src='{{"js/checklist.js" | relURL}}'></script>
+ <script type="text/javascript">
+ $( document ).ready(function() {
+ listenFormChange('6d2ab01b-fad4-4e70-83a8-b910ca848fec')
+ });
+ </script>
+
+ <div class="form-group checklist-header">
+ <label class="sr-only" for="inputFile">File Upload</label>
+ <input type="file" class="form-control-file text-primary font-weight-bold" id="inputFile" accept="application/json" onchange="onChooseFile(event,fillForm('6d2ab01b-fad4-4e70-83a8-b910ca848fec'))" data-title="{{T "checklist-load-answers"}}">
+ </div>
+{{end}} \ No newline at end of file