mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-27 12:41:58 +00:00
![Dan Brown](/assets/img/avatar_default.png)
- 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
18 lines
768 B
PHP
18 lines
768 B
PHP
<div>
|
|
<form action="{{ url("/settings/users/". user()->id ."/switch-${type}-view") }}" method="POST" class="inline">
|
|
{!! csrf_field() !!}
|
|
{!! method_field('PATCH') !!}
|
|
<input type="hidden" value="{{ $view === 'list'? 'grid' : 'list' }}" name="view_type">
|
|
@if ($view === 'list')
|
|
<button type="submit" class="icon-list-item text-primary">
|
|
<span class="icon">@icon('grid')</span>
|
|
<span>{{ trans('common.grid_view') }}</span>
|
|
</button>
|
|
@else
|
|
<button type="submit" class="icon-list-item text-primary">
|
|
<span>@icon('list')</span>
|
|
<span>{{ trans('common.list_view') }}</span>
|
|
</button>
|
|
@endif
|
|
</form>
|
|
</div> |