]> BookStack Code Mirror - bookstack/blob - resources/views/entities/view-toggle.blade.php
Opensearch: Fixed XML declaration when php short tags enabled
[bookstack] / resources / views / entities / view-toggle.blade.php
1 <div>
2     <form action="{{ url("/preferences/change-view/" . $type) }}" method="POST" class="inline">
3         {{ csrf_field() }}
4         {{ method_field('patch') }}
5         <input type="hidden" name="_return" value="{{ url()->current() }}">
6
7         @if ($view === 'list')
8             <button type="submit" name="view" value="grid" class="icon-list-item text-link">
9                 <span class="icon">@icon('grid')</span>
10                 <span>{{ trans('common.grid_view') }}</span>
11             </button>
12         @else
13             <button type="submit" name="view" value="list" class="icon-list-item text-link">
14                 <span class="icon">@icon('list')</span>
15                 <span>{{ trans('common.list_view') }}</span>
16             </button>
17         @endif
18     </form>
19 </div>