]> BookStack Code Mirror - bookstack/blob - resources/views/books/view-toggle.blade.php
Changed the location of the "view-toggle" to be under the books views.
[bookstack] / resources / views / books / view-toggle.blade.php
1 <form action="{{ baseUrl("/settings/users/{$currentUser->id}/switch-book-view") }}" method="POST" class="inline">
2     {!! csrf_field() !!}
3     {!! method_field('PATCH') !!}
4     <input type="hidden" value="{{ $booksViewType === 'list'? 'grid' : 'list' }}" name="book_view_type">
5     @if ($booksViewType === 'list')
6         <button type="submit" class="text-pos text-button">@icon('grid'){{ trans('common.grid_view') }}</button>
7     @else
8         <button type="submit" class="text-pos text-button">@icon('list'){{ trans('common.list_view') }}</button>
9     @endif
10 </form>