BrainMinder/assets/templates/items/share.tmpl

55 lines
2.3 KiB
Cheetah
Raw Normal View History

2024-08-22 10:13:16 +02:00
{{define "page:content"}}
2024-12-13 17:56:43 +01:00
<dialog id="dialog" class="share">
2024-12-11 17:52:09 +01:00
<header>
<h5><i class="bi bi-share-fill" title="Share"></i> Share item</h5>
<span class="close-dialog button close"><i class='close-dialog bi bi-x-circle-fill'></i></span>
</header>
<div class="content">
2024-12-29 17:32:01 +01:00
<form hx-post="/item/share/{{ .item.Id }}" hx-target="#message">
2024-08-22 10:13:16 +02:00
<h5>{{ .item.Title }}</h5>
2024-12-13 17:56:43 +01:00
<div class="row">
<div class="col l6">
2024-08-22 10:13:16 +02:00
<p style="margin-right: 6px">
<label for="share-start-datetime">Start date time</label>
2025-01-06 17:07:18 +01:00
<input name="Start_datetime" id="share-start-datetime" type="datetime-local" value=""/>
2024-08-22 10:13:16 +02:00
</p>
</div>
2024-12-13 17:56:43 +01:00
<div class="col l6">
2024-08-22 10:13:16 +02:00
<p>
<label for="share-end-datetime">End date time</label>
2025-01-06 17:07:18 +01:00
<input name="End_datetime" id="share-end-datetime" type="datetime-local" value=""/>
2024-08-22 10:13:16 +02:00
</p>
</div>
</div>
2024-12-13 17:56:43 +01:00
<div class="row">
<div class="col l12">
2024-08-22 10:13:16 +02:00
<p style="margin-right: 6px">
<label for="share-token">Share Url</label>
<div class="input-container">
<span class="prefix">{{ .baseUrl }}/</span>
2025-01-06 17:07:18 +01:00
<input name="Token" id="share-token" type="url" readonly="readonly" value="{{ .shareToken }}" />
2024-08-22 10:13:16 +02:00
</div>
</p>
</div>
</div>
2024-12-13 17:56:43 +01:00
<div class="row">
<div class="col l12">
2024-08-22 10:13:16 +02:00
<p style="margin-right: 6px">
<label for="share-password">Password</label>
2025-01-06 17:07:18 +01:00
<input name="Password" id="share-password" type="password" value=""/>
2024-08-22 10:13:16 +02:00
</p>
</div>
</div>
<fieldset>
<legend>Permissions</legend>
2024-12-13 17:56:43 +01:00
<div class="row">
2025-01-06 17:07:18 +01:00
<div class="col l6">{{ widget_checkbox "Permission_edit" "Edit" "1" "" }}</div>
2024-08-22 10:13:16 +02:00
</div>
</fieldset>
2024-12-16 17:55:33 +01:00
<div id="footer-navbar">
<button type="submit" class="main" title="Share"><i class='bi bi-share-fill'></i><span>Share</span></button>
</div>
2024-08-22 10:13:16 +02:00
</form>
</div>
2024-12-11 17:52:09 +01:00
</dialog>
2024-08-22 10:13:16 +02:00
{{ end }}