2016-09-28 20:13:18 +01:00
|
|
|
@extends('themes.base.layout')
|
|
|
|
@section('title', trans('admin.edit_storage', ['storage_name' => $storage->name]))
|
|
|
|
|
|
|
|
@section('breadcrumb')
|
|
|
|
<div class="breadcrumb">
|
|
|
|
<div class="container">
|
|
|
|
<ol class="breadcrumb">
|
2017-02-13 10:36:53 +00:00
|
|
|
<li><a href="{{ route('home') }}"><i class="fa fa-fw fa-home"></i></a></li>
|
2016-09-28 20:13:18 +01:00
|
|
|
<li><a href="{{ route('admin') }}">@lang('navigation.breadcrumb.admin')</a></li>
|
|
|
|
<li><a href="{{ route('storage.index') }}">@lang('navigation.breadcrumb.storage')</a></li>
|
2016-09-28 20:32:19 +01:00
|
|
|
<li class="active">@lang('navigation.breadcrumb.edit_storage')</li>
|
2016-09-28 20:13:18 +01:00
|
|
|
</ol>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12">
|
|
|
|
<h1>@yield('title')</h1>
|
|
|
|
<p>@lang('admin.edit_storage_intro', ['storage_name' => $storage->name])</p>
|
|
|
|
<hr/>
|
|
|
|
|
|
|
|
{!! Form::model($storage, ['route' => ['storage.update', $storage->id], 'method' => 'PUT']) !!}
|
2016-10-27 11:36:37 +01:00
|
|
|
<div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
|
2016-09-28 20:13:18 +01:00
|
|
|
{!! Form::label('name', trans('forms.name_label'), ['class' => 'control-label']) !!}
|
|
|
|
{!! Form::text('name', old('name'), ['class' => 'form-control']) !!}
|
2016-10-27 11:36:37 +01:00
|
|
|
|
|
|
|
@if ($errors->has('name'))
|
|
|
|
<span class="help-block">
|
|
|
|
<strong>{{ $errors->first('name') }}</strong>
|
|
|
|
</span>
|
|
|
|
@endif
|
2016-09-28 20:13:18 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="checkbox">
|
|
|
|
<label>
|
|
|
|
<input type="checkbox" name="is_default"@if ($storage->is_default) checked="checked"@endif>
|
|
|
|
<strong>@lang('forms.default_storage_label')</strong>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
2016-10-27 11:36:37 +01:00
|
|
|
<div class="checkbox">
|
|
|
|
<label>
|
|
|
|
<input type="checkbox" name="is_active"@if ($storage->is_active) checked="checked"@endif>
|
|
|
|
<strong>@lang('forms.storage_active_label')</strong>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
2016-10-28 12:59:36 +01:00
|
|
|
@if ($storage->source == 'OpenStackSource')
|
|
|
|
<hr/>
|
2016-11-05 09:41:07 +00:00
|
|
|
@include(Theme::viewName('partials.admin_storages_openstack_options'))
|
2016-10-28 12:59:36 +01:00
|
|
|
@endif
|
|
|
|
|
2016-11-03 13:33:35 +00:00
|
|
|
@if ($storage->source == 'AmazonS3Source')
|
2016-11-05 09:41:07 +00:00
|
|
|
<hr/>
|
2016-11-03 13:33:35 +00:00
|
|
|
@include(Theme::viewName('partials.admin_storages_amazon_s3_options'))
|
|
|
|
@endif
|
|
|
|
|
2016-11-05 09:41:07 +00:00
|
|
|
@if ($storage->source == 'RackspaceSource')
|
|
|
|
<hr/>
|
|
|
|
@include(Theme::viewName('partials.admin_storages_rackspace_options'))
|
|
|
|
@endif
|
|
|
|
|
2016-09-28 20:13:18 +01:00
|
|
|
<div class="form-actions">
|
|
|
|
<a href="{{ route('storage.index') }}" class="btn btn-default">@lang('forms.cancel_action')</a>
|
2017-02-15 09:14:52 +00:00
|
|
|
<button type="submit" class="btn btn-success"><i class="fa fa-fw fa-check"></i> @lang('forms.save_action')</button>
|
2016-09-28 20:13:18 +01:00
|
|
|
</div>
|
|
|
|
{!! Form::close() !!}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@push('scripts')
|
|
|
|
<script type="text/javascript">
|
|
|
|
var viewModel = new StorageLocationsViewModel();
|
|
|
|
ko.applyBindings(viewModel);
|
|
|
|
</script>
|
|
|
|
@endpush
|