Pracownia.Programowania/views/write.html

27 lines
806 B
HTML
Raw Normal View History

2018-12-10 19:42:28 +01:00
{{ define "write" }}
{{ template "header" }}
<div class="row">
<div class="col-xs-4"></div>
<div class="col-xs-4">
<form action="/savePost" method="POST" role="form">
<input type="hidden" name="id"/>
<div class="form-group">
<label for="title">Tytul</label>
<input type="text" class="form-control" id="title" name="title"/>
</div>
<div class="form-group">
<label for="content">Content</label>
<textarea name="content" id="content"></textarea>
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>
</div>
<div class="col-xs-4">
<a href="deletePost">Usun</a>
</div>
</div>
{{ template "footer" }}
{{ end }}