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