github.com/bitcubate/cryptojournal@v1.2.5-0.20171102134152-f578b3d788ab/src/comments/views/form.html.got (about) 1 <div class="row comments_form"> 2 <form method="post" class="resource-update-form"> 3 4 <p> 5 Comment by <a href="{{ .comment.UserID }}">{{ .comment.UserName }}</a> 6 on <a href="/stories/{{ .comment.StoryID }}">{{ .comment.StoryName }}</a> 7 </p> 8 9 <div class="wide-fields"> 10 <div class="field"> 11 <label></label> 12 {{ if .currentUser.Admin }} 13 {{ template "lib/editable/views/editable-toolbar-full.html.got"}} 14 {{ else }} 15 {{ template "lib/editable/views/editable-toolbar-basic.html.got"}} 16 {{ end }} 17 <textarea name="text" class="content-textarea" id="comment-content-textarea">{{.comment.Text}}</textarea> 18 <div contenteditable class="content-editable" id="comment-content-editable">{{html .comment.Text}}</div> 19 </div> 20 </div> 21 22 <div class="actions clear"> 23 <input type="submit" class="button" value="Save"> 24 <a class="button grey" method="back">Cancel</a> 25 </div> 26 27 <input name="authenticity_token" type="hidden" value="{{.authenticity_token}}"> 28 </form> 29 </div>