2017-08-28 08:38:32 -04:00
|
|
|
|
|
|
|
{{--Depends on entity selector popup--}}
|
2023-12-19 07:09:57 -05:00
|
|
|
<div component="page-picker"
|
|
|
|
option:page-picker:selector-endpoint="{{ $selectorEndpoint }}">
|
2023-12-12 10:38:09 -05:00
|
|
|
<div class="input-base overflow-hidden height-auto">
|
|
|
|
<span @if($value) hidden @endif refs="page-picker@default-display" class="text-muted italic">{{ $placeholder }}</span>
|
|
|
|
<a @if(!$value) hidden @endif href="{{ url('/link/' . $value) }}" target="_blank" rel="noopener" class="text-page" refs="page-picker@display">#{{$value}}, {{$value ? \BookStack\Entities\Models\Page::query()->visible()->find($value)->name ?? '' : '' }}</a>
|
2017-08-28 08:38:32 -04:00
|
|
|
</div>
|
|
|
|
<br>
|
2022-11-15 07:44:57 -05:00
|
|
|
<input refs="page-picker@input" type="hidden" value="{{$value}}" name="{{$name}}" id="{{$name}}">
|
2023-12-12 10:38:09 -05:00
|
|
|
<button @if(!$value) hidden @endif type="button" refs="page-picker@reset-button" class="text-button">{{ trans('common.reset') }}</button>
|
|
|
|
<span refs="page-picker@button-seperator" @if(!$value) hidden @endif class="sep">|</span>
|
2022-11-15 07:44:57 -05:00
|
|
|
<button type="button" refs="page-picker@select-button" class="text-button">{{ trans('common.select') }}</button>
|
2017-08-28 08:38:32 -04:00
|
|
|
</div>
|