1
0
Fork 0
miniflux/template/templates/views/create_category.html

28 lines
991 B
HTML
Raw Normal View History

{{ define "title"}}{{ t "page.new_category.title" }}{{ end }}
2017-11-20 00:10:04 -05:00
{{ define "content"}}
<section class="page-header">
<h1>{{ t "page.new_category.title" }}</h1>
2017-11-20 00:10:04 -05:00
<ul>
<li>
<a href="{{ route "categories" }}">{{ t "menu.categories" }}</a>
2017-11-20 00:10:04 -05:00
</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 "form.category.label.title" }}</label>
2017-11-20 00:10:04 -05:00
<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>
2017-11-20 00:10:04 -05:00
</div>
</form>
{{ end }}