1
0
Fork 0
miniflux/server/template/html/create_category.html
Frédéric Guillot 8ffb773f43 First commit
2017-11-19 22:01:46 -08:00

27 lines
915 B
HTML

{{ define "title"}}{{ t "New Category" }}{{ end }}
{{ define "content"}}
<section class="page-header">
<h1>{{ t "New Category" }}</h1>
<ul>
<li>
<a href="{{ route "categories" }}">{{ t "Categories" }}</a>
</li>
</ul>
</section>
<form action="{{ route "saveCategory" }}" 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 "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 "Loading..." }}">{{ t "Save" }}</button> {{ t "or" }} <a href="{{ route "categories" }}">{{ t "cancel" }}</a>
</div>
</form>
{{ end }}