BrainMinder/assets/templates/items/share.tmpl

70 lines
2.8 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-08-22 10:13:16 +02:00
<form>
<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>
2024-12-13 17:56:43 +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>
2024-12-13 17:56:43 +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>
2024-12-13 17:56:43 +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>
2024-12-13 17:56:43 +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">
<div class="col l6">
2024-08-22 10:13:16 +02:00
<p>
<label class="switch">
2024-11-17 20:12:20 +01:00
<input class="" name="read" type="checkbox" value="1" checked="checked">
2024-08-22 10:13:16 +02:00
<span class="slider round"></span>
</label><span class="label-checkbox">Read</span>
</p>
</div>
2024-12-13 17:56:43 +01:00
<div class="col l6">
2024-08-22 10:13:16 +02:00
<p>
<label class="switch">
2024-11-17 20:12:20 +01:00
<input class="" name="edit" type="checkbox" value="1">
2024-08-22 10:13:16 +02:00
<span class="slider round"></span>
</label><span class="label-checkbox">Edit</span>
</p>
</div>
</div>
</fieldset>
2024-12-15 20:35:52 +01:00
<footer>
<button type="submit" class="main" title="Share"><i class='bi bi-share-fill'></i> Share</button>
</footer>
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 }}