mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-02 22:03:48 +08:00
7590ecd37c
- Updated comment routes to be simpler. - Updated comments JS to align better with updated component system. - Documented available global JS functions/services. - Removed redundant controller method. - Added window.$events helpers for validation messages and success/error. - Updated JS events system to not be class based for simplicity. - Added window.trans_plural method to handle pluralisation/replacements where you already have the translation string itself. Fixes #1836
32 lines
1.4 KiB
PHP
32 lines
1.4 KiB
PHP
<div class="comment-box" style="display:none;">
|
|
|
|
<div class="header p-s">{{ trans('entities.comment_new') }}</div>
|
|
<div refs="page-comments@replyToRow" class="reply-row primary-background-light text-muted px-s py-xs mb-s" style="display: none;">
|
|
<div class="grid left-focus v-center">
|
|
<div>
|
|
{!! trans('entities.comment_in_reply_to', ['commentId' => '<a href=""></a>']) !!}
|
|
</div>
|
|
<div class="text-right">
|
|
<button class="text-button" action="remove-reply-to">{{ trans('common.remove') }}</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div refs="page-comments@formContainer" class="content px-s">
|
|
<form novalidate>
|
|
<div class="form-group description-input">
|
|
<textarea name="markdown" rows="3"
|
|
placeholder="{{ trans('entities.comment_placeholder') }}"></textarea>
|
|
</div>
|
|
<div class="form-group text-right">
|
|
<button type="button" class="button outline"
|
|
action="hideForm">{{ trans('common.cancel') }}</button>
|
|
<button type="submit" class="button">{{ trans('entities.comment_save') }}</button>
|
|
</div>
|
|
<div class="form-group loading" style="display: none;">
|
|
@include('partials.loading-icon', ['text' => trans('entities.comment_saving')])
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
</div> |