configui/templates/components/result.tmpl

31 lines
905 B
Cheetah
Raw Normal View History

{{define "components/result"}}
<div class="modal" id="result_view">
<div class="modal-background"></div>
<div class="modal-card">
<header class="modal-card-head">
<p class="modal-card-title">{{.File.Name}}</p>
<button class="delete" aria-label="close" onclick="ResultViewTog()"></button>
</header>
<section class="modal-card-body">
<p class="title">{{.File.Action}}</p>
<p class="subtitle">{{.File.Path}}</p>
<div id="result_editor"></div>
</section>
<footer class="modal-card-foot">
<div class="level">
<div class="level-left"></div>
<div class="level-left">
<button class="button" onclick="ResultViewTog()">OK</button>
</div>
</div>
</footer>
</div>
</div>
<script>
function ResultViewTog(){
let el = document.getElementById('result_view')
el.classList.toggle('is-active')
}
</script>
{{end}}