mirror of
https://github.com/yanislav-igonin/micrach
synced 2024-12-22 22:32:33 +03:00
feat: add simple form for thread creating
This commit is contained in:
parent
107dd0fa0e
commit
41675a63fc
@ -44,8 +44,13 @@
|
|||||||
<h1 class="display-1 text-center">Welcome to Micrach</h1>
|
<h1 class="display-1 text-center">Welcome to Micrach</h1>
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row row-cols-auto gy-4">
|
<form class="row row-cols-auto gy-4" action="/" method="POST" enctype="multipart/form-data">
|
||||||
|
<input class="form-control" id="postTitle" placeholder="Title" name="title">
|
||||||
|
<textarea class="form-control" id="postText" rows="3" placeholder="Text" name="text"></textarea>
|
||||||
|
<input class="form-control" type="file" id="formFileMultiple" multiple name="files">
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<div class="row row-cols-auto gy-4">
|
||||||
{{range $Post := .}}
|
{{range $Post := .}}
|
||||||
<div class="col col-sm-6 col-md-4 col-lg-3">
|
<div class="col col-sm-6 col-md-4 col-lg-3">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
@ -66,9 +71,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user