]> BookStack Code Mirror - bookstack/blob - resources/views/shelves/view-toggle.blade.php
1. Fixed translation for Copy and Reply
[bookstack] / resources / views / shelves / view-toggle.blade.php
1 <form action="{{ baseUrl("/settings/users/{$currentUser->id}/switch-shelf-view") }}" method="POST" class="inline">
2     {!! csrf_field() !!}
3     {!! method_field('PATCH') !!}
4     <input type="hidden" value="{{ $shelvesViewType === 'list'? 'grid' : 'list' }}" name="view_type">
5     @if ($shelvesViewType === '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>