2017-05-15 15:10:14 -04:00
|
|
|
<div class="comment-editor" ng-controller="CommentReplyController as vm" ng-cloak>
|
|
|
|
<form novalidate>
|
2017-06-05 16:16:59 -04:00
|
|
|
<textarea name="markdown" rows="3" ng-model="comment.text" placeholder="{{ trans('entities.comment_placeholder') }}"></textarea>
|
2017-05-15 15:10:14 -04:00
|
|
|
<input type="hidden" ng-model="comment.pageId" name="comment.pageId" value="{{$pageId}}" ng-init="comment.pageId = {{$pageId }}">
|
2017-06-04 11:13:56 -04:00
|
|
|
<button type="button" ng-if="::(isReply || isEdit)" class="button muted" ng-click="closeBox()">{{ trans('entities.comment_cancel') }}</button>
|
2017-06-10 13:25:36 -04:00
|
|
|
<button type="submit" class="button pos" ng-click="vm.saveComment()">{{ trans('entities.comment_save') }}</button>
|
2017-05-15 15:10:14 -04:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@if($errors->has('markdown'))
|
|
|
|
<div class="text-neg text-small">{{ $errors->first('markdown') }}</div>
|
|
|
|
@endif
|