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