Files
pages/templates/partials/bookmark_settings.gohtml
T
Anya Tokugawa c1175d389f Implement Knowledge City platform, organizer and DAV integration
Capture accumulated application, UI, CLI, regression tests and design documentation changes, including task project mapping and default CalDAV list naming.

Keep deployment data, backups, local credentials and build artifacts out of Git. Move the Compose enrollment token to an ignored local environment file.
2026-09-27 14:44:43 +09:00

21 lines
2.8 KiB
Go Template
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{{ define "bookmark-settings" }}
<section id="panel-bookmarks" class="config-section config-panel">
<h1>{{ T "home.bookmarks" }}</h1><p class="muted">{{ T "config.bookmark_help" }}</p>
<form method="post" action="/-/sys/config" id="bookmark-form" data-label="{{ T "config.name" }}" data-target="{{ T "config.bookmark_target" }}" data-section="{{ T "bookmark.section" }}" data-children="{{ T "bookmark.children" }}" data-add-link="{{ T "bookmark.add_link" }}" data-add-section="{{ T "bookmark.add_section" }}" data-remove="{{ T "config.delete" }}" data-up="{{ T "config.move_up" }}" data-down="{{ T "config.move_down" }}" data-confirm="{{ T "bookmark.delete_section" }}" data-default="{{ T "home.bookmarks" }}" data-saved="{{ T "bookmark.saved" }}" data-auto="{{ T "bookmark.auto_help" }}" data-limit="{{ T "config.bookmark_limit" }}">
<input type="hidden" name="section" value="bookmarks">
{{ if .IsHome }}<input type="hidden" name="return_home" value="true">{{ end }}
<div class="table-scroll bookmark-legacy"><table class="recent-table"><thead><tr><th>{{ T "config.name" }}</th><th>{{ T "config.bookmark_kind" }}</th><th>{{ T "config.bookmark_target" }}</th><th>{{ T "config.operations" }}</th></tr></thead>
<tbody id="bookmark-source-rows">
{{ range .ManagedBookmarks }}
<tr><td><input name="bookmark_label" value="{{ .Label }}" maxlength="200" required aria-label="{{ T "config.name" }}"></td>
<td><select name="bookmark_kind" aria-label="{{ T "config.bookmark_kind" }}"><option value="path" {{ if eq .Kind "path" }}selected{{ end }}>Path</option><option value="url" {{ if eq .Kind "url" }}selected{{ end }}>URL</option><option value="section" {{ if eq .Kind "section" }}selected{{ end }}>{{ T "bookmark.section" }}</option></select>
<input type="hidden" name="bookmark_children" value="{{ .Children }}"><label data-section-options {{ if ne .Kind "section" }}hidden{{ end }} class="bookmark-toggle" data-label="{{ T "bookmark.children" }}"><input type="checkbox" role="switch" data-bookmark-children aria-label="{{ T "bookmark.children" }}" {{ if .Children }}checked{{ end }}><span>{{ T "bookmark.children" }}</span></label></td>
<td><input name="bookmark_target" value="{{ .Href }}" maxlength="4096" {{ if ne .Kind "section" }}required{{ end }} aria-label="{{ T "config.bookmark_target" }}"></td>
<td class="row-actions"><button type="button" data-bookmark-move="up" aria-label="{{ T "config.move_up" }}">↑</button><button type="button" data-bookmark-move="down" aria-label="{{ T "config.move_down" }}">↓</button><button type="button" data-bookmark-remove aria-label="{{ T "config.delete" }}">×</button></td></tr>
{{ end }}
</tbody></table></div>
<div class="config-actions bookmark-savebar"><button type="submit">{{ T "config.save" }}</button><output role="status" data-bookmark-status></output></div>
</form>
</section>
{{ end }}