4 <div component="ajax-form"
5 option:ajax-form:url="/attachments/link"
6 option:ajax-form:method="post"
7 option:ajax-form:response-container="#link-form-container"
8 option:ajax-form:success-message="{{ trans('entities.attachments_link_attached') }}">
9 <input type="hidden" name="attachment_link_uploaded_to" value="{{ $pageId }}">
10 <p class="text-muted small">{{ trans('entities.attachments_explain_link') }}</p>
11 <div class="form-group">
12 <label for="attachment_link_name">{{ trans('entities.attachments_link_name') }}</label>
13 <input name="attachment_link_name" id="attachment_link_name" type="text" placeholder="{{ trans('entities.attachments_link_name') }}" value="{{ $attachment_link_name ?? '' }}">
14 @if($errors->has('attachment_link_name'))
15 <div class="text-neg text-small">{{ $errors->first('attachment_link_name') }}</div>
18 <div class="form-group">
19 <label for="attachment_link_url">{{ trans('entities.attachments_link_url') }}</label>
20 <input name="attachment_link_url" id="attachment_link_url" type="text" placeholder="{{ trans('entities.attachments_link_url_hint') }}" value="{{ $attachment_link_url ?? '' }}">
21 @if($errors->has('attachment_link_url'))
22 <div class="text-neg text-small">{{ $errors->first('attachment_link_url') }}</div>
25 <button component="event-emit-select"
26 option:event-emit-select:name="edit-back"
27 type="button" class="button outline">{{ trans('common.cancel') }}</button>
28 <button refs="ajax-form@submit"
30 class="button">{{ trans('entities.attach') }}</button>