2017-08-28 08:38:32 -04:00
|
|
|
|
|
|
|
{{--Depends on entity selector popup--}}
|
|
|
|
<div page-picker>
|
|
|
|
<div class="input-base">
|
|
|
|
<span @if($value) style="display: none" @endif page-picker-default class="text-muted italic">{{ $placeholder }}</span>
|
2019-08-04 09:26:39 -04:00
|
|
|
<a @if(!$value) style="display: none" @endif href="{{ url('/link/' . $value) }}" target="_blank" class="text-page" page-picker-display>#{{$value}}, {{$value ? \BookStack\Entities\Page::find($value)->name : '' }}</a>
|
2017-08-28 08:38:32 -04:00
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<input type="hidden" value="{{$value}}" name="{{$name}}" id="{{$name}}">
|
|
|
|
<button @if(!$value) style="display: none" @endif type="button" page-picker-reset class="text-button">{{ trans('common.reset') }}</button>
|
|
|
|
<span @if(!$value) style="display: none" @endif class="sep">|</span>
|
|
|
|
<button type="button" page-picker-select class="text-button">{{ trans('common.select') }}</button>
|
|
|
|
</div>
|