fix styling for error fields

This commit is contained in:
floss4good 2025-03-11 15:37:55 +02:00
parent 51580beaee
commit 5a1547f2e8
No known key found for this signature in database
GPG key ID: 5B948B4F4DAF819D

View file

@ -15,7 +15,7 @@
<input type="hidden" name="content_type" value="{{.ContentType}}" />
<fieldset{{if not .ContentID}} disabled{{end}}>
<label{{if .Err_AbuseCategory}} class="error"{{end}}>
<label{{if .Err_AbuseCategory}} class="field error"{{end}}>
{{ctx.Locale.Tr "moderation.abuse_category"}}
<select class="ui selection dropdown" id="abuse_category" name="abuse_category" required autofocus>
<option value="">{{ctx.Locale.Tr "moderation.abuse_category.placeholder"}}</option>
@ -24,7 +24,7 @@
{{end}}
</select>
</label>
<label{{if .Err_Remarks}} class="error"{{end}}>
<label{{if .Err_Remarks}} class="field error"{{end}}>
{{ctx.Locale.Tr "moderation.report_remarks"}}
<textarea id="remarks" name="remarks" required minlength="20" maxlength="500" placeholder="{{ctx.Locale.Tr "moderation.report_remarks.placeholder"}}">{{.remarks}}</textarea>
</label>