]> BookStack Code Mirror - bookstack/blob - resources/views/attachments/manager-link-form.blade.php
Implement the renderPages parameter
[bookstack] / resources / views / attachments / manager-link-form.blade.php
1 {{--
2 @pageId
3 --}}
4 <div component="ajax-form"
5      option:ajax-form:url="/attachments/link"
6      option:ajax-form:method="post"
7      option:ajax-form:success-message="{{ trans('entities.attachments_link_attached') }}">
8     <input type="hidden" name="attachment_link_uploaded_to" value="{{ $pageId }}">
9     <p class="text-muted small">{{ trans('entities.attachments_explain_link') }}</p>
10     <div class="form-group">
11         <label for="attachment_link_name">{{ trans('entities.attachments_link_name') }}</label>
12         <input name="attachment_link_name" id="attachment_link_name" type="text" placeholder="{{ trans('entities.attachments_link_name') }}" value="{{ $attachment_link_name ?? '' }}">
13         @if($errors->has('attachment_link_name'))
14             <div class="text-neg text-small">{{ $errors->first('attachment_link_name') }}</div>
15         @endif
16     </div>
17     <div class="form-group">
18         <label for="attachment_link_url">{{ trans('entities.attachments_link_url') }}</label>
19         <input name="attachment_link_url" id="attachment_link_url" type="text" placeholder="{{ trans('entities.attachments_link_url_hint') }}" value="{{ $attachment_link_url ?? '' }}">
20         @if($errors->has('attachment_link_url'))
21             <div class="text-neg text-small">{{ $errors->first('attachment_link_url') }}</div>
22         @endif
23     </div>
24     <button refs="ajax-form@submit"
25             type="button"
26             class="button">{{ trans('entities.attach') }}</button>
27 </div>