mirror of
https://github.com/miniflux/v2.git
synced 2024-08-31 08:37:28 +02:00
- refresh: https://tabler-icons.io/i/refresh - edit: https://tabler-icons.io/i/edit - delete: https://tabler-icons.io/i/delete - mark page as read: https://tabler-icons.io/i/check - mark all as read: https://tabler-icons.io/i/checks - show all entries: https://tabler-icons.io/i/eye - show only unread entries: https://tabler-icons.io/i/eye-off - create category: https://tabler-icons.io/i/folder-plus - add subscription: https://tabler-icons.io/i/plus - import: https://tabler-icons.io/i/file-import - export: https://tabler-icons.io/i/file-export - categories: https://tabler-icons.io/i/folders
39 lines
1.4 KiB
HTML
39 lines
1.4 KiB
HTML
{{ define "title"}}{{ t "page.edit_category.title" .category.Title }}{{ end }}
|
|
|
|
{{ define "content"}}
|
|
<section class="page-header">
|
|
<h1>{{ t "page.edit_category.title" .category.Title }}</h1>
|
|
<ul>
|
|
<li>
|
|
<a href="{{ route "categories" }}">{{ icon "categories" }}{{ t "menu.categories" }}</a>
|
|
</li>
|
|
<li>
|
|
<a href="{{ route "categoryFeeds" "categoryID" .category.ID }}">{{ icon "feeds" }}{{ t "menu.feeds" }}</a>
|
|
</li>
|
|
<li>
|
|
<a href="{{ route "createCategory" }}">{{ icon "add-category" }}{{ t "menu.create_category" }}</a>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
|
|
<form action="{{ route "updateCategory" "categoryID" .category.ID }}" method="post" autocomplete="off">
|
|
<input type="hidden" name="csrf" value="{{ .csrf }}">
|
|
|
|
{{ if .errorMessage }}
|
|
<div class="alert alert-error">{{ t .errorMessage }}</div>
|
|
{{ end }}
|
|
|
|
<label for="form-title">{{ t "form.category.label.title" }}</label>
|
|
<input type="text" name="title" id="form-title" value="{{ .form.Title }}" required autofocus>
|
|
|
|
<label>
|
|
<input type="checkbox" name="hide_globally" {{ if .form.HideGlobally }}checked{{ end }}>
|
|
{{ t "form.category.hide_globally" }}
|
|
</label>
|
|
|
|
<div class="buttons">
|
|
<button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
|
|
</div>
|
|
</form>
|
|
{{ end }}
|