2018-09-21 21:53:29 -04:00
|
|
|
{{ define "title"}}{{ t "page.edit_category.title" .category.Title }}{{ end }}
|
2017-11-20 00:10:04 -05:00
|
|
|
|
|
|
|
{{ define "content"}}
|
|
|
|
<section class="page-header">
|
2018-09-21 21:53:29 -04:00
|
|
|
<h1>{{ t "page.edit_category.title" .category.Title }}</h1>
|
2017-11-20 00:10:04 -05:00
|
|
|
<ul>
|
|
|
|
<li>
|
2018-09-21 21:53:29 -04:00
|
|
|
<a href="{{ route "categories" }}">{{ t "menu.categories" }}</a>
|
2017-11-20 00:10:04 -05:00
|
|
|
</li>
|
2019-11-17 22:44:12 -05:00
|
|
|
<li>
|
|
|
|
<a href="{{ route "categoryFeeds" "categoryID" .category.ID }}">{{ t "menu.feeds" }}</a>
|
|
|
|
</li>
|
2017-11-20 00:10:04 -05:00
|
|
|
<li>
|
2018-09-21 21:53:29 -04:00
|
|
|
<a href="{{ route "createCategory" }}">{{ t "menu.create_category" }}</a>
|
2017-11-20 00:10:04 -05:00
|
|
|
</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 }}
|
|
|
|
|
2018-09-21 21:53:29 -04:00
|
|
|
<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">
|
2019-11-17 22:44:12 -05:00
|
|
|
<button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
|
2017-11-20 00:10:04 -05:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{{ end }}
|