2016-09-28 20:13:18 +01:00
|
|
|
@extends('themes.base.layout')
|
|
|
|
@section('title', trans('admin.edit_storage', ['storage_name' => $storage->name]))
|
|
|
|
|
|
|
|
@section('breadcrumb')
|
2017-03-25 08:26:35 +00:00
|
|
|
<li class="breadcrumb-item"><a href="{{ route('home') }}"><i class="fa fa-fw fa-home"></i></a></li>
|
|
|
|
<li class="breadcrumb-item"><a href="{{ route('admin') }}">@lang('navigation.breadcrumb.admin')</a></li>
|
|
|
|
<li class="breadcrumb-item"><a href="{{ route('storage.index') }}">@lang('navigation.breadcrumb.storage')</a></li>
|
|
|
|
<li class="breadcrumb-item active">@lang('navigation.breadcrumb.edit_storage')</li>
|
2016-09-28 20:13:18 +01:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
2017-03-25 08:26:35 +00:00
|
|
|
<div class="col">
|
2016-09-28 20:13:18 +01:00
|
|
|
<h1>@yield('title')</h1>
|
|
|
|
<p>@lang('admin.edit_storage_intro', ['storage_name' => $storage->name])</p>
|
|
|
|
<hr/>
|
|
|
|
|
2017-03-25 08:26:35 +00:00
|
|
|
<form action="{{ route('storage.update', [$storage->id]) }}" method="post" id="storage-options">
|
|
|
|
{{ method_field('PUT') }}
|
|
|
|
{{ csrf_field() }}
|
2016-10-27 11:36:37 +01:00
|
|
|
|
2017-08-31 17:20:58 +01:00
|
|
|
<div class="form-group">
|
2017-03-25 08:26:35 +00:00
|
|
|
<label class="form-control-label" for="storage-name">@lang('forms.name_label')</label>
|
2017-08-31 17:20:58 +01:00
|
|
|
<input type="text" class="form-control{{ $errors->has('name') ? ' is-invalid' : '' }}" id="storage-name" name="name" value="{{ old('name') }}">
|
2016-09-28 20:13:18 +01:00
|
|
|
|
2017-03-25 08:26:35 +00:00
|
|
|
@if ($errors->has('name'))
|
2017-08-31 17:20:58 +01:00
|
|
|
<div class="invalid-feedback">
|
2017-03-25 08:26:35 +00:00
|
|
|
<strong>{{ $errors->first('name') }}</strong>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
</div>
|
2016-09-28 20:13:18 +01:00
|
|
|
|
2017-08-31 17:20:58 +01:00
|
|
|
<div>
|
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input" name="is_default"@if (old('is_default', $storage->is_default)) checked="checked"@endif>
|
|
|
|
<span class="custom-control-indicator"></span>
|
|
|
|
<span class="custom-control-description">@lang('forms.default_storage_label')</span>
|
2017-03-25 08:26:35 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
2016-10-27 11:36:37 +01:00
|
|
|
|
2017-08-31 17:20:58 +01:00
|
|
|
<div>
|
|
|
|
<label class="custom-control custom-checkbox">
|
|
|
|
<input type="checkbox" class="custom-control-input" name="is_active"@if (old('is_active', $storage->is_active)) checked="checked"@endif>
|
|
|
|
<span class="custom-control-indicator"></span>
|
|
|
|
<span class="custom-control-description">@lang('forms.storage_active_label')</span>
|
2017-03-25 08:26:35 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
2016-10-28 12:59:36 +01:00
|
|
|
|
2017-03-25 08:26:35 +00:00
|
|
|
@if ($storage->source == 'LocalFilesystemSource')
|
|
|
|
<hr/>
|
|
|
|
@include(Theme::viewName('partials.admin_storages_filesystem_options'))
|
|
|
|
@endif
|
2016-11-03 13:33:35 +00:00
|
|
|
|
2017-03-25 08:26:35 +00:00
|
|
|
@if ($storage->source == 'OpenStackSource')
|
|
|
|
<hr/>
|
|
|
|
@include(Theme::viewName('partials.admin_storages_openstack_options'))
|
|
|
|
@endif
|
2016-11-05 09:41:07 +00:00
|
|
|
|
2017-03-25 08:26:35 +00:00
|
|
|
@if ($storage->source == 'AmazonS3Source')
|
|
|
|
<hr/>
|
|
|
|
@include(Theme::viewName('partials.admin_storages_amazon_s3_options'))
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@if ($storage->source == 'RackspaceSource')
|
|
|
|
<hr/>
|
|
|
|
@include(Theme::viewName('partials.admin_storages_rackspace_options'))
|
|
|
|
@endif
|
|
|
|
|
|
|
|
<div class="text-right">
|
|
|
|
<a href="{{ route('storage.index') }}" class="btn btn-default">@lang('forms.cancel_action')</a>
|
|
|
|
<button type="submit" class="btn btn-success"><i class="fa fa-fw fa-check"></i> @lang('forms.save_action')</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
2016-09-28 20:13:18 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-03-25 08:26:35 +00:00
|
|
|
@endsection
|