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