feat: make form responsible for different screens

This commit is contained in:
Yanislav Igonin 2021-10-04 19:49:44 +03:00
parent 19a2c02e9a
commit fcc6330b19

View File

@ -64,8 +64,9 @@
{{ end }} {{ end }}
{{ define "post-form" }} {{ define "post-form" }}
<div class="col col-12"> <div class="d-flex justify-content-center">
<div class="col col-lg-6 col-md-8">
{{ 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 }}
@ -107,4 +108,6 @@
</div> </div>
</form> </form>
</div> </div>
</div>
{{ end }} {{ end }}