]> BookStack Code Mirror - bookstack/blob - resources/views/comments/add.blade.php
#47 - Gets rid of simplemde
[bookstack] / resources / views / comments / add.blade.php
1 <div class="comment-editor" ng-controller="CommentAddController as vm" ng-cloak>
2     <form novalidate>
3         <textarea name="markdown" rows="3" ng-model="comment.newComment" placeholder="{{ trans('entities.comment_placeholder') }}"
4                   @if($errors->has('markdown')) class="neg" @endif>@if(isset($model) ||
5                   old('markdown')){{htmlspecialchars( old('markdown') ? old('markdown') : ($model->markdown === '' ? $model->html : $model->markdown))}}@endif</textarea>
6         <input type="hidden" ng-model="pageId" name="comment.pageId" value="{{$pageId}}" ng-init="comment.pageId = {{$pageId }}">
7         <button type="submit" class="button pos" ng-click="vm.saveComment()">Save</button>
8     </form>
9 </div>
10
11 @if($errors->has('markdown'))
12     <div class="text-neg text-small">{{ $errors->first('markdown') }}</div>
13 @endif