BrainMinder/assets/templates/quickbox/transform.tmpl

56 lines
2.0 KiB
Cheetah
Raw Normal View History

2024-08-22 10:13:16 +02:00
{{define "page:content"}}
<dialog id="dialog" class="quickbox-transform">
2024-12-15 20:35:52 +01:00
<header>
<h5><i class="bi bi-arrow-up-left-circle-fill" title="Transform"></i> Quicknote transform</h5>
<span class="close-dialog button close"><i class='close-dialog bi bi-x-circle-fill'></i></span>
</header>
2024-08-22 10:13:16 +02:00
<form hx-post="/quickbox/transform/{{ .quicknote.Id }}" hx-target="#message">
2024-12-17 12:02:32 +01:00
<div class="content">
2024-08-22 10:13:16 +02:00
<p>
<label for="item-title">Title</label>
2024-12-15 20:35:52 +01:00
<input name="Title" id="item-title" type="text" value=""/>
2024-08-22 10:13:16 +02:00
</p>
2024-12-16 17:55:33 +01:00
<div class="row">
<div class="col s12 m6" style="padding-right: 4px">
2024-08-22 10:13:16 +02:00
<p>
2024-12-16 17:55:33 +01:00
{{ widget_select "Type_id" "Type" 0 .types `` }}
2024-08-22 10:13:16 +02:00
</p>
</div>
2024-12-16 17:55:33 +01:00
<div class="col s12 m6" style="padding-left: 4px">
2024-08-22 10:13:16 +02:00
<p>
2024-12-16 17:55:33 +01:00
{{ widget_checkboxes "Notebooks" "Notebooks" "" .notebooks `` }}
2024-08-22 10:13:16 +02:00
</p>
</div>
</div>
2024-12-16 17:55:33 +01:00
<div class="row">
<div class="col s12 m6" style="padding-right: 4px">
2024-08-22 10:13:16 +02:00
<p>
<label for="item-tags">Tags</label>
2024-12-15 20:35:52 +01:00
<input name="Tags" id="item-tags" type="text" value=""/>
2024-08-22 10:13:16 +02:00
</p>
</div>
2024-12-16 17:55:33 +01:00
<div class="col s12 m6" style="padding-left: 4px">
2024-08-22 10:13:16 +02:00
<p>
2024-12-16 17:55:33 +01:00
{{ widget_select "Categories" "Categories" "" .categories `multiple="true"` }}
2024-08-22 10:13:16 +02:00
</p>
</div>
</div>
<p>
<label for="item-description">Description</label>
2024-12-15 20:35:52 +01:00
<textarea name="Description" id="item-description" rows="5">{{.quicknote.Note}}</textarea>
2024-08-22 10:13:16 +02:00
</p>
<p>
<label class="switch">
2024-12-16 17:55:33 +01:00
<input name="Keep_in_quickbox" type="checkbox" value="1"/>
<span class="slider round"></span>
</label>
<span class="label-checkbox">Keep in Quickbox</span>
2024-08-22 10:13:16 +02:00
</p>
2024-12-17 12:02:32 +01:00
</div>
<div id="footer-navbar">
<button class="main"><i class="bi bi-arrow-up-left-circle-fill" title="Transform"></i> Transform</button>
2024-08-22 10:13:16 +02:00
</div>
</form>
2024-12-13 17:56:43 +01:00
</dialog>
2024-08-22 10:13:16 +02:00
{{ end }}