2018-12-10 19:42:28 +01:00
|
|
|
<div class="row">
|
2018-12-22 20:04:32 +01:00
|
|
|
<div class="col-xs-2">
|
|
|
|
{{ if.Id }}
|
2018-12-31 15:42:05 +01:00
|
|
|
<a href="/deletePost/{{.Id}}">Usuń</a>
|
2018-12-22 20:04:32 +01:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
2018-12-10 19:42:28 +01:00
|
|
|
<div class="col-xs-4">
|
|
|
|
<form action="/savePost" method="POST" role="form">
|
2018-12-11 20:42:44 +01:00
|
|
|
<input type="hidden" name="id" value="{{.Id}}"/>
|
2018-12-10 19:42:28 +01:00
|
|
|
<div class="form-group">
|
2018-12-31 15:42:05 +01:00
|
|
|
<label for="title">Tytuł</label>
|
2018-12-11 20:42:44 +01:00
|
|
|
<input type="text" class="form-control" id="title" name="title" value ="{{.Title}}"/>
|
2018-12-10 19:42:28 +01:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2018-12-31 15:42:05 +01:00
|
|
|
<label for="content">Treść</label>
|
2018-12-22 20:04:32 +01:00
|
|
|
<textarea name="content" id="content">{{.ContentMd}}</textarea>
|
2018-12-10 19:42:28 +01:00
|
|
|
</div>
|
2018-12-31 15:42:05 +01:00
|
|
|
<button type="submit" class="btn btn-default">Akceptuj</button>
|
2018-12-10 19:42:28 +01:00
|
|
|
</form>
|
|
|
|
</div>
|
2018-12-22 20:04:32 +01:00
|
|
|
<div class="col-xs-6" id="md">
|
|
|
|
{{ .ContentHtml | unescape}}
|
|
|
|
|
2018-12-10 19:42:28 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|