Pracownia.Programowania/views/index1.html
2019-03-06 20:06:19 +01:00

38 lines
993 B
HTML

{{ range $key, $value := . }}
<div class="row">
<div class="col-xs-2"></div>
<div class="col-xs-8">
<h1><a href ="/edit/{{$value.Id}}">{{ $value.Title }}</a></h1>
</div>
<div class="col-xs-2"></div>
</div>
<div class="row">
<div class="col-xs-2">
</div>
<div class="col-xs-8">
{{ $value.ContentHtml | unescape }}
<div class="col-xs-8">
<br/><br/>Komentarz
<fieldset style="border: 2px solid; width: 450px; height: 160px; padding: 3;">{{ $value.ContentCom | unescape }}</fieldset>
<form action="/createCom" method="POST" role="form"></form>
<input type="hidden" name="id" value="{{.Id}}"/>
<div class="form-group">
</div>
</form>
</div>
</div>
<div class="col-xs-2"></div>
</div>
{{end}}