#123: Display list of storages on the Image Processing tab
This commit is contained in:
parent
f26f545b76
commit
cffe8332fc
@ -368,9 +368,17 @@ class DefaultController extends Controller
|
||||
|
||||
$themeNamesLookup = UserConfig::allowedThemeNames();
|
||||
|
||||
// Storage sources for the Image Processing tab
|
||||
$storageSources = [];
|
||||
foreach (Storage::where('is_active', true)->orderBy('name')->get() as $storage)
|
||||
{
|
||||
$storageSources[$storage->id] = $storage->name;
|
||||
}
|
||||
|
||||
return Theme::render('admin.settings', [
|
||||
'config' => $config,
|
||||
'date_formats' => $dateFormatsLookup,
|
||||
'storage_sources' => $storageSources,
|
||||
'success' => $request->session()->get('success'),
|
||||
'theme_names' => $themeNamesLookup
|
||||
]);
|
||||
|
@ -208,7 +208,9 @@
|
||||
<div class="form-group">
|
||||
<label class="form-control-label" for="analysis-queue-storage-location">Analysis queue storage:</label>
|
||||
<select class="form-control{{ $errors->has('analysis_queue_storage_location') ? ' is-invalid' : '' }}" id="analysis-queue-storage-location" name="analysis_queue_storage_location">
|
||||
<option value="{{ old('analysis_queue_storage_location', $config['analysis_queue_storage_location']) }}"></option>
|
||||
@foreach ($storage_sources as $key => $value)
|
||||
<option value="{{ $key }}"{{ $key == old('analysis_queue_storage_location', $config['analysis_queue_storage_location']) ? ' selected="selected"' : '' }}>{{ $value }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
|
||||
@if ($errors->has('analysis_queue_storage_location'))
|
||||
|
Loading…
Reference in New Issue
Block a user