mirror of
https://github.com/yanislav-igonin/micrach
synced 2024-12-22 14:22:33 +03:00
feat: center captch, add input
This commit is contained in:
parent
096948bcaa
commit
8ec262f09c
@ -65,6 +65,7 @@
|
||||
|
||||
{{ define "post-form" }}
|
||||
<div class="col col-12">
|
||||
|
||||
{{ if eq .FirstPostID 0 }}
|
||||
<form id="postForm" action="/" method="POST" enctype="multipart/form-data">
|
||||
{{ else }}
|
||||
@ -74,11 +75,15 @@
|
||||
{{ if eq .FirstPostID 0 }}
|
||||
<input class="form-control" id="postTitle" placeholder="Title" name="title">
|
||||
{{ end }}
|
||||
|
||||
<textarea class="form-control" id="postText" rows="5" placeholder="Text" name="text"></textarea>
|
||||
<input class="form-control" type="file" id="postFiles" multiple name="files">
|
||||
<input class="form-control" type="hidden" id="postCaptcha" name="captchaId" value="{{ .CaptchaID }}">
|
||||
|
||||
<div class="captcha-container text-center">
|
||||
<img src="/captcha/{{ .CaptchaID }}" alt="Captcha">
|
||||
</div>
|
||||
<input class="form-control" type="hidden" id="postCaptcha" name="captchaId" value="{{ .CaptchaID }}">
|
||||
<input class="form-control" id="postCaptcha" placeholder="Captcha" name="captcha">
|
||||
|
||||
<div class="row">
|
||||
{{ if ne .FirstPostID 0 }}
|
||||
|
Loading…
Reference in New Issue
Block a user