BookStack/resources/views/comments/add.blade.php

13 lines
845 B
PHP
Raw Normal View History

<div class="comment-editor" ng-controller="CommentAddController as vm" ng-cloak>
2017-05-02 21:12:04 +00:00
<form novalidate>
<textarea name="markdown" rows="3" ng-model="comment.newComment" placeholder="{{ trans('entities.comment_placeholder') }}"
@if($errors->has('markdown')) class="neg" @endif>@if(isset($model) ||
old('markdown')){{htmlspecialchars( old('markdown') ? old('markdown') : ($model->markdown === '' ? $model->html : $model->markdown))}}@endif</textarea>
2017-04-18 19:54:33 +00:00
<input type="hidden" ng-model="pageId" name="comment.pageId" value="{{$pageId}}" ng-init="comment.pageId = {{$pageId }}">
<button type="submit" class="button pos" ng-click="vm.saveComment()">Save</button>
2017-05-02 21:12:04 +00:00
</form>
2017-04-18 19:54:33 +00:00
</div>
@if($errors->has('markdown'))
<div class="text-neg text-small">{{ $errors->first('markdown') }}</div>
@endif