feat: remove title in form from thread page

This commit is contained in:
Yanislav Igonin 2021-09-12 00:14:31 +03:00
parent 6ef39c6726
commit 6243ad9f4c

View File

@ -66,7 +66,9 @@
{{ define "post-form" }} {{ define "post-form" }}
<div class="col col-12"> <div class="col col-12">
<form id="postForm" action="/{{ . }}" method="POST" enctype="multipart/form-data"> <form id="postForm" action="/{{ . }}" method="POST" enctype="multipart/form-data">
{{ if eq . nil }}
<input class="form-control" id="postTitle" placeholder="Title" name="title"> <input class="form-control" id="postTitle" placeholder="Title" name="title">
{{ 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">