19 lines
827 B
PHP
19 lines
827 B
PHP
|
<form method="get" action="{{ \Request::url() }}">
|
||
|
<div class="field-group">
|
||
|
<label class="control-label">@lang('forms.album_view_label')</label>
|
||
|
<select name="view" class="form-control" id="album-view-selector">
|
||
|
<option value="default"@if (isset($current_view) && $current_view == 'default') selected="selected"@endif>@lang('gallery.album_views.default')</option>
|
||
|
<option value="slideshow"@if (isset($current_view) && $current_view == 'slideshow') selected="selected"@endif>@lang('gallery.album_views.slideshow')</option>
|
||
|
</select>
|
||
|
</div>
|
||
|
</form>
|
||
|
|
||
|
@push('scripts')
|
||
|
<script type="text/javascript">
|
||
|
$(document).ready(function() {
|
||
|
$('#album-view-selector').change(function() {
|
||
|
$(this).parents('form').submit();
|
||
|
});
|
||
|
});
|
||
|
</script>
|
||
|
@endpush
|