2024-08-22 10:13:16 +02:00
|
|
|
{{define "page:content"}}
|
2024-12-14 15:30:49 +01:00
|
|
|
<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">
|
|
|
|
<div class="w3-padding" style="overflow: auto;">
|
|
|
|
<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>
|
|
|
|
<div class="w3-row">
|
|
|
|
<div class="w3-half" style="padding-right: 4px">
|
|
|
|
<p>
|
2024-11-17 20:12:20 +01:00
|
|
|
{{ widget_select "Type_id" "Type" 0 .types `class=" w3-border"` }}
|
2024-08-22 10:13:16 +02:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="w3-half" style="padding-left: 4px">
|
|
|
|
<p>
|
2024-11-17 20:12:20 +01:00
|
|
|
{{ widget_checkboxes "Notebooks" "Notebooks" "" .notebooks `class=""` }}
|
2024-08-22 10:13:16 +02:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="w3-row">
|
|
|
|
<div class="w3-half" style="padding-right: 4px">
|
|
|
|
<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>
|
|
|
|
<div class="w3-half" style="padding-left: 4px">
|
|
|
|
<p>
|
2024-11-17 20:12:20 +01:00
|
|
|
{{ widget_select "Categories" "Categories" "" .categories `multiple="true" class=" w3-border"` }}
|
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">
|
|
|
|
<input
|
2024-11-17 20:12:20 +01:00
|
|
|
class=""
|
2024-08-22 10:13:16 +02:00
|
|
|
name="Keep_in_quickbox"
|
|
|
|
type="checkbox"
|
|
|
|
value="1"
|
|
|
|
/>
|
|
|
|
<span class="slider round"></span> </label
|
|
|
|
><span class="label-checkbox">Keep in Quickbox</span>
|
|
|
|
</p>
|
2024-11-10 20:52:32 +01:00
|
|
|
<p class="hide-small w3-container" style="text-align: center;">
|
2024-12-15 20:35:52 +01:00
|
|
|
<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
|
|
|
</p>
|
|
|
|
</div>
|
2024-12-15 20:35:52 +01:00
|
|
|
|
2024-08-22 10:13:16 +02:00
|
|
|
</form>
|
2024-12-13 17:56:43 +01:00
|
|
|
</dialog>
|
2024-08-22 10:13:16 +02:00
|
|
|
{{ end }}
|