27 lines
806 B
HTML
27 lines
806 B
HTML
{{ 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 }} |