mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-02 22:03:48 +08:00
154924cc0c
Split out comment component code so single-comment actions (delete, edit) are handled within their own compontent. Modernised existing component code.
30 lines
1.3 KiB
PHP
30 lines
1.3 KiB
PHP
<div refs="page-comments@form-container" hidden class="comment-box">
|
|
|
|
<div class="header p-s">{{ trans('entities.comment_new') }}</div>
|
|
<div refs="page-comments@reply-to-row" hidden class="primary-background-light text-muted px-s py-xs mb-s">
|
|
<div class="grid left-focus v-center">
|
|
<div>
|
|
{!! trans('entities.comment_in_reply_to', ['commentId' => '<a href=""></a>']) !!}
|
|
</div>
|
|
<div class="text-right">
|
|
<button refs="page-comments@remove-reply-to-button" class="text-button">{{ trans('common.remove') }}</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="content px-s">
|
|
<form refs="page-comments@form" novalidate>
|
|
<div class="form-group description-input">
|
|
<textarea refs="page-comments@form-input" name="markdown"
|
|
rows="3"
|
|
placeholder="{{ trans('entities.comment_placeholder') }}"></textarea>
|
|
</div>
|
|
<div class="form-group text-right">
|
|
<button type="button" class="button outline"
|
|
refs="page-comments@hide-form-button">{{ trans('common.cancel') }}</button>
|
|
<button type="submit" class="button">{{ trans('entities.comment_save') }}</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
</div> |