1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-12-13 05:50:27 +00:00

move form errors out of change group thing

there are multiple form fields now, so the error could apply to any one
of the forms
This commit is contained in:
Jackson 2023-11-27 14:55:44 +01:00 committed by Timur Ismagilov
parent b41acf1f57
commit 5ed9e6d9ef

View File

@ -7,8 +7,6 @@
{{.U.Name}} {{.U.Name}}
</h1> </h1>
<h2>{{block "change group" .}}Change group{{end}}</h2>
{{if .Form.HasError}} {{if .Form.HasError}}
<div class="notice notice--error"> <div class="notice notice--error">
<strong>{{template "error"}}:</strong> <strong>{{template "error"}}:</strong>
@ -16,6 +14,8 @@
</div> </div>
{{end}} {{end}}
<h2>{{block "change group" .}}Change group{{end}}</h2>
<form action="" method="post"> <form action="" method="post">
<div class="form-field"> <div class="form-field">
<select id="group" name="group" aria-label="{{block "group" .}}Group{{end}}"> <select id="group" name="group" aria-label="{{block "group" .}}Group{{end}}">