mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-30 23:52:40 +01:00
b89411c108
Added view control Added pivot table for books relation Added control to assign books
10 lines
563 B
PHP
10 lines
563 B
PHP
<form action="{{ baseUrl("/settings/users/{$currentUser->id}/switch-book-view") }}" method="POST" class="inline">
|
|
{!! csrf_field() !!}
|
|
{!! method_field('PATCH') !!}
|
|
<input type="hidden" value="{{ $booksViewType === 'list'? 'grid' : 'list' }}" name="view_type">
|
|
@if ($booksViewType === 'list')
|
|
<button type="submit" class="text-pos text-button">@icon('grid'){{ trans('common.grid_view') }}</button>
|
|
@else
|
|
<button type="submit" class="text-pos text-button">@icon('list'){{ trans('common.list_view') }}</button>
|
|
@endif
|
|
</form> |