mirror of
https://github.com/miniflux/v2.git
synced 2024-09-07 11:59:21 +02:00
32 lines
1.2 KiB
HTML
32 lines
1.2 KiB
HTML
{{ define "title"}}{{ t "page.new_category.title" }}{{ end }}
|
|
|
|
{{ define "page_header"}}
|
|
<section class="page-header" aria-labelledby="page-header-title">
|
|
<h1 id="page-header-title">{{ t "page.new_category.title" }}</h1>
|
|
<nav aria-label="{{ t "page.new_category.title" }} {{ t "menu.title" }}">
|
|
<ul>
|
|
<li>
|
|
<a href="{{ route "categories" }}">{{ icon "categories" }}{{ t "menu.categories" }}</a>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
</section>
|
|
{{ end }}
|
|
|
|
{{ define "content"}}
|
|
<form action="{{ route "saveCategory" }}" method="post" autocomplete="off">
|
|
<input type="hidden" name="csrf" value="{{ .csrf }}">
|
|
|
|
{{ if .errorMessage }}
|
|
<div role="alert" class="alert alert-error">{{ .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>
|
|
|
|
<div class="buttons">
|
|
<button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.save" }}</button> {{ t "action.or" }} <a href="{{ route "categories" }}">{{ t "action.cancel" }}</a>
|
|
</div>
|
|
</form>
|
|
{{ end }}
|