20 lines
733 B
PHP
20 lines
733 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">
|
|
@foreach ($allowed_views as $view)
|
|
<option value="{{ $view }}"@if (isset($current_view) && $current_view == $view) selected="selected"@endif>@lang('gallery.album_views.' . $view)</option>
|
|
@endforeach
|
|
</select>
|
|
</div>
|
|
</form>
|
|
|
|
@push('scripts')
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
$('#album-view-selector').change(function() {
|
|
$(this).parents('form').submit();
|
|
});
|
|
});
|
|
</script>
|
|
@endpush |