mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-25 17:57:28 +08:00
a61c9c5e98
- Primarily moved and re-organised view files. - Included readme within views to document the convention. - Fixed some issues with page field select list in previous commit. - Tweaked some route names while going through. - Split some views out further. Closes #2805
13 lines
884 B
PHP
13 lines
884 B
PHP
|
|
{{--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>
|
|
<a @if(!$value) style="display: none" @endif href="{{ url('/link/' . $value) }}" target="_blank" rel="noopener" class="text-page" page-picker-display>#{{$value}}, {{$value ? \BookStack\Entities\Models\Page::find($value)->name : '' }}</a>
|
|
</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> |