mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
1097c61d6d
Closes #2286
28 lines
1.5 KiB
PHP
28 lines
1.5 KiB
PHP
{{--
|
|
@pageId
|
|
--}}
|
|
<div component="ajax-form"
|
|
option:ajax-form:url="/attachments/link"
|
|
option:ajax-form:method="post"
|
|
option:ajax-form:response-container=".link-form-container"
|
|
option:ajax-form:success-message="{{ trans('entities.attachments_link_attached') }}">
|
|
<input type="hidden" name="attachment_link_uploaded_to" value="{{ $pageId }}">
|
|
<p class="text-muted small">{{ trans('entities.attachments_explain_link') }}</p>
|
|
<div class="form-group">
|
|
<label for="attachment_link_name">{{ trans('entities.attachments_link_name') }}</label>
|
|
<input name="attachment_link_name" id="attachment_link_name" type="text" placeholder="{{ trans('entities.attachments_link_name') }}" value="{{ $attachment_link_name ?? '' }}">
|
|
@if($errors->has('attachment_link_name'))
|
|
<div class="text-neg text-small">{{ $errors->first('attachment_link_name') }}</div>
|
|
@endif
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="attachment_link_url">{{ trans('entities.attachments_link_url') }}</label>
|
|
<input name="attachment_link_url" id="attachment_link_url" type="text" placeholder="{{ trans('entities.attachments_link_url_hint') }}" value="{{ $attachment_link_url ?? '' }}">
|
|
@if($errors->has('attachment_link_url'))
|
|
<div class="text-neg text-small">{{ $errors->first('attachment_link_url') }}</div>
|
|
@endif
|
|
</div>
|
|
<button refs="ajax-form@submit"
|
|
type="button"
|
|
class="button">{{ trans('entities.attach') }}</button>
|
|
</div> |