#9: Storage locations is now fully up and working with Bootstrap 4
This commit is contained in:
parent
a588ac2b31
commit
83ba49568e
@ -167,10 +167,11 @@ class StorageController extends Controller
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function edit($id)
|
||||
public function edit(Request $request, $id)
|
||||
{
|
||||
$this->authorize('admin-access');
|
||||
|
||||
/** @var Storage $storage */
|
||||
$storage = Storage::where('id', intval($id))->first();
|
||||
if (is_null($storage))
|
||||
{
|
||||
@ -185,6 +186,11 @@ class StorageController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
if (!$request->session()->has('_old_input'))
|
||||
{
|
||||
$request->session()->flash('_old_input', $storage->toArray());
|
||||
}
|
||||
|
||||
return Theme::render('admin.edit_storage', ['storage' => $storage]);
|
||||
}
|
||||
|
||||
|
@ -7,7 +7,6 @@
|
||||
"require": {
|
||||
"php": ">=5.6.4",
|
||||
"laravel/framework": "5.3.*",
|
||||
"laravelcollective/html": "5.3.*",
|
||||
"rackspace/php-opencloud": "^1.16",
|
||||
"doctrine/dbal": "^2.5",
|
||||
"aws/aws-sdk-php": "^3.19"
|
||||
|
@ -168,7 +168,6 @@ return [
|
||||
/*
|
||||
* Package Service Providers...
|
||||
*/
|
||||
Collective\Html\HtmlServiceProvider::class,
|
||||
|
||||
/*
|
||||
* Application Service Providers...
|
||||
@ -227,8 +226,6 @@ return [
|
||||
'View' => Illuminate\Support\Facades\View::class,
|
||||
|
||||
// Additional aliases added by AH
|
||||
'Form' => Collective\Html\FormFacade::class,
|
||||
'Html' => Collective\Html\HtmlFacade::class,
|
||||
'Image' => \App\Facade\Image::class,
|
||||
'Theme' => \App\Facade\Theme::class,
|
||||
'UserConfig' => \App\Facade\UserConfig::class
|
||||
|
5
public/css/blue-twilight.css
vendored
5
public/css/blue-twilight.css
vendored
@ -1,6 +1,11 @@
|
||||
.admin-sidebar-card {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.card-header.card-danger {
|
||||
color: #fff;
|
||||
font-weight: bold;
|
||||
}
|
||||
html {
|
||||
font-size: 14px !important;
|
||||
}
|
||||
|
2
public/css/blue-twilight.min.css
vendored
2
public/css/blue-twilight.min.css
vendored
@ -1,4 +1,4 @@
|
||||
.admin-sidebar-card{margin-bottom:15px}html{font-size:14px !important}button,input,optgroup,select,textarea{cursor:pointer;font-family:inherit !important}.album-photo-cards .card{margin-bottom:15px}.container,.container-fluid{margin-top:20px}.tab-content{border:solid 1px #ddd;border-top:0;padding:20px}/*!
|
||||
.admin-sidebar-card{margin-bottom:15px}.card-header.card-danger{color:#fff;font-weight:bold}html{font-size:14px !important}button,input,optgroup,select,textarea{cursor:pointer;font-family:inherit !important}.album-photo-cards .card{margin-bottom:15px}.container,.container-fluid{margin-top:20px}.tab-content{border:solid 1px #ddd;border-top:0;padding:20px}/*!
|
||||
* Bootstrap v4.0.0-alpha.6 (https://getbootstrap.com)
|
||||
* Copyright 2011-2017 The Bootstrap Authors
|
||||
* Copyright 2011-2017 Twitter, Inc.
|
||||
|
@ -10243,6 +10243,13 @@ if ( !noGlobal ) {
|
||||
return jQuery;
|
||||
} );
|
||||
|
||||
function StorageLocationViewModel()
|
||||
{
|
||||
this.el = '#storage-options';
|
||||
this.data = {
|
||||
storage_driver: 'LocalFilesystemSource'
|
||||
};
|
||||
}
|
||||
/*!
|
||||
* Vue.js v2.2.0
|
||||
* (c) 2014-2017 Evan You
|
||||
|
10
public/js/blue-twilight.min.js
vendored
10
public/js/blue-twilight.min.js
vendored
File diff suppressed because one or more lines are too long
5
resources/assets/css/admin.css
vendored
5
resources/assets/css/admin.css
vendored
@ -1,3 +1,8 @@
|
||||
.admin-sidebar-card {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.card-header.card-danger {
|
||||
color: #fff;
|
||||
font-weight: bold;
|
||||
}
|
@ -51,10 +51,6 @@
|
||||
@include(Theme::viewName('partials.admin_storages_filesystem_options'))
|
||||
</div>
|
||||
|
||||
<div v-if="storage_driver == 'OpenStackV1Source'">
|
||||
@include(Theme::viewName('partials.admin_storages_openstack_v1_options'))
|
||||
</div>
|
||||
|
||||
<div v-if="storage_driver == 'OpenStackSource'">
|
||||
@include(Theme::viewName('partials.admin_storages_openstack_options'))
|
||||
</div>
|
||||
|
@ -2,32 +2,31 @@
|
||||
@section('title', trans('admin.delete_storage', ['name' => $storage->name]))
|
||||
|
||||
@section('breadcrumb')
|
||||
<div class="breadcrumb">
|
||||
<div class="container">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}"><i class="fa fa-fw fa-home"></i></a></li>
|
||||
<li><a href="{{ route('admin') }}">@lang('navigation.breadcrumb.admin')</a></li>
|
||||
<li><a href="{{ route('storage.index') }}">@lang('navigation.breadcrumb.storage')</a></li>
|
||||
<li class="active">@lang('navigation.breadcrumb.delete_storage')</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<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.delete_storage')</li>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<h1>@yield('title')</h1>
|
||||
<p>@lang('admin.delete_storage_confirm', ['name' => $storage->name])</p>
|
||||
<div class="alert alert-danger">
|
||||
@lang('admin.delete_storage_warning')
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
{!! Form::open(['route' => ['storage.destroy', $storage->id], 'method' => 'DELETE']) !!}
|
||||
<a href="{{ route('storage.index') }}" class="btn btn-default">@lang('forms.cancel_action')</a>
|
||||
<button type="submit" class="btn btn-danger"><i class="fa fa-fw fa-trash"></i> @lang('forms.delete_action')</button>
|
||||
{!! Form::close() !!}
|
||||
<div class="col-md-8 offset-md-2">
|
||||
<div class="card card-outline-danger">
|
||||
<div class="card-header card-danger">@yield('title')</div>
|
||||
<div class="card-block">
|
||||
<p>@lang('admin.delete_storage_confirm', ['name' => $storage->name])</p>
|
||||
<p class="text-danger"><b>@lang('admin.delete_storage_warning')</b></p>
|
||||
|
||||
<div class="text-right">
|
||||
<form action="{{ route('storage.destroy', [$storage->id]) }}" method="post" id="storage-options">
|
||||
{{ method_field('DELETE') }}
|
||||
{{ csrf_field() }}
|
||||
<a href="{{ route('storage.index') }}" class="btn btn-link">@lang('forms.cancel_action')</a>
|
||||
<button type="submit" class="btn btn-danger"><i class="fa fa-fw fa-trash"></i> @lang('forms.delete_action')</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -2,80 +2,75 @@
|
||||
@section('title', trans('admin.edit_storage', ['storage_name' => $storage->name]))
|
||||
|
||||
@section('breadcrumb')
|
||||
<div class="breadcrumb">
|
||||
<div class="container">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}"><i class="fa fa-fw fa-home"></i></a></li>
|
||||
<li><a href="{{ route('admin') }}">@lang('navigation.breadcrumb.admin')</a></li>
|
||||
<li><a href="{{ route('storage.index') }}">@lang('navigation.breadcrumb.storage')</a></li>
|
||||
<li class="active">@lang('navigation.breadcrumb.edit_storage')</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<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>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="col">
|
||||
<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']) !!}
|
||||
<div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
|
||||
{!! Form::label('name', trans('forms.name_label'), ['class' => 'control-label']) !!}
|
||||
{!! Form::text('name', old('name'), ['class' => 'form-control']) !!}
|
||||
<form action="{{ route('storage.update', [$storage->id]) }}" method="post" id="storage-options">
|
||||
{{ method_field('PUT') }}
|
||||
{{ csrf_field() }}
|
||||
|
||||
@if ($errors->has('name'))
|
||||
<span class="help-block">
|
||||
<strong>{{ $errors->first('name') }}</strong>
|
||||
</span>
|
||||
<div class="form-group{{ $errors->has('name') ? ' has-danger' : '' }}">
|
||||
<label class="form-control-label" for="storage-name">@lang('forms.name_label')</label>
|
||||
<input type="text" class="form-control" id="storage-name" name="name" value="{{ old('name') }}">
|
||||
|
||||
@if ($errors->has('name'))
|
||||
<div class="form-control-feedback">
|
||||
<strong>{{ $errors->first('name') }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" name="is_default"@if ($storage->is_default) checked="checked"@endif>
|
||||
@lang('forms.default_storage_label')
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" name="is_active"@if ($storage->is_active) checked="checked"@endif>
|
||||
@lang('forms.storage_active_label')
|
||||
</label>
|
||||
</div>
|
||||
|
||||
@if ($storage->source == 'LocalFilesystemSource')
|
||||
<hr/>
|
||||
@include(Theme::viewName('partials.admin_storages_filesystem_options'))
|
||||
@endif
|
||||
</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>
|
||||
@if ($storage->source == 'OpenStackSource')
|
||||
<hr/>
|
||||
@include(Theme::viewName('partials.admin_storages_openstack_options'))
|
||||
@endif
|
||||
|
||||
<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>
|
||||
@if ($storage->source == 'AmazonS3Source')
|
||||
<hr/>
|
||||
@include(Theme::viewName('partials.admin_storages_amazon_s3_options'))
|
||||
@endif
|
||||
|
||||
@if ($storage->source == 'OpenStackSource')
|
||||
<hr/>
|
||||
@include(Theme::viewName('partials.admin_storages_openstack_options'))
|
||||
@endif
|
||||
@if ($storage->source == 'RackspaceSource')
|
||||
<hr/>
|
||||
@include(Theme::viewName('partials.admin_storages_rackspace_options'))
|
||||
@endif
|
||||
|
||||
@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="form-actions">
|
||||
<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::close() !!}
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script type="text/javascript">
|
||||
var viewModel = new StorageLocationsViewModel();
|
||||
ko.applyBindings(viewModel);
|
||||
</script>
|
||||
@endpush
|
||||
@endsection
|
@ -1,25 +1,25 @@
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group{{ $errors->has('access_key') ? ' has-error' : '' }}">
|
||||
{!! Form::label('access_key', trans('forms.storage_access_key_label'), ['class' => 'control-label']) !!}
|
||||
{!! Form::text('access_key', old('access_key'), ['class' => 'form-control']) !!}
|
||||
<div class="form-group{{ $errors->has('access_key') ? ' has-danger' : '' }}">
|
||||
<label class="form-control-label" for="access-key">@lang('forms.storage_access_key_label')</label>
|
||||
<input type="text" class="form-control" id="access-key" name="access_key" value="{{ old('access_key') }}">
|
||||
|
||||
@if ($errors->has('access_key'))
|
||||
<span class="help-block">
|
||||
<div class="form-control-feedback">
|
||||
<strong>{{ $errors->first('access_key') }}</strong>
|
||||
</span>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group{{ $errors->has('secret_key') ? ' has-error' : '' }}">
|
||||
{!! Form::label('secret_key', trans('forms.storage_secret_key_label'), ['class' => 'control-label']) !!}
|
||||
{!! Form::text('secret_key', old('secret_key'), ['class' => 'form-control']) !!}
|
||||
<div class="form-group{{ $errors->has('secret_key') ? ' has-danger' : '' }}">
|
||||
<label class="form-control-label" for="secret-key">@lang('forms.storage_secret_key_label')</label>
|
||||
<input type="text" class="form-control" id="secret-key" name="secret_key" value="{{ old('secret_key') }}">
|
||||
|
||||
@if ($errors->has('secret_key'))
|
||||
<span class="help-block">
|
||||
<div class="form-control-feedback">
|
||||
<strong>{{ $errors->first('secret_key') }}</strong>
|
||||
</span>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@ -27,38 +27,38 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group{{ $errors->has('container_name') ? ' has-error' : '' }}">
|
||||
{!! Form::label('container_name', trans('forms.storage_bucket_name_label'), ['class' => 'control-label']) !!}
|
||||
{!! Form::text('container_name', old('container_name'), ['class' => 'form-control']) !!}
|
||||
<div class="form-group{{ $errors->has('container_name') ? ' has-danger' : '' }}">
|
||||
<label class="form-control-label" for="container-name">@lang('forms.storage_bucket_name_label')</label>
|
||||
<input type="text" class="form-control" id="container-name" name="container_name" value="{{ old('container_name') }}">
|
||||
|
||||
@if ($errors->has('container_name'))
|
||||
<span class="help-block">
|
||||
<div class="form-control-feedback">
|
||||
<strong>{{ $errors->first('container_name') }}</strong>
|
||||
</span>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group{{ $errors->has('service_region') ? ' has-error' : '' }}">
|
||||
{!! Form::label('service_region', trans('forms.storage_service_region_label'), ['class' => 'control-label']) !!}
|
||||
{!! Form::text('service_region', old('service_region'), ['class' => 'form-control']) !!}
|
||||
<div class="form-group{{ $errors->has('service_region') ? ' has-danger' : '' }}">
|
||||
<label class="form-control-label" for="service-region">@lang('forms.storage_service_region_label')</label>
|
||||
<input type="text" class="form-control" id="service-region" name="service_region" value="{{ old('service_region') }}">
|
||||
|
||||
@if ($errors->has('service_region'))
|
||||
<span class="help-block">
|
||||
<div class="form-control-feedback">
|
||||
<strong>{{ $errors->first('service_region') }}</strong>
|
||||
</span>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group{{ $errors->has('auth_url') ? ' has-error' : '' }}">
|
||||
{!! Form::label('auth_url', trans('forms.storage_endpoint_url_label'), ['class' => 'control-label']) !!}
|
||||
{!! Form::text('auth_url', old('auth_url'), ['class' => 'form-control']) !!}
|
||||
<div class="form-group{{ $errors->has('auth_url') ? ' has-danger' : '' }}">
|
||||
<label class="form-control-label" for="auth-url">@lang('forms.storage_auth_url_label')</label>
|
||||
<input type="text" class="form-control" id="auth-url" name="auth_url" value="{{ old('auth_url') }}">
|
||||
|
||||
@if ($errors->has('auth_url'))
|
||||
<span class="help-block">
|
||||
<div class="form-control-feedback">
|
||||
<strong>{{ $errors->first('auth_url') }}</strong>
|
||||
</span>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
@ -1,6 +1,6 @@
|
||||
<div class="form-group{{ $errors->has('location') ? ' has-danger' : '' }}">
|
||||
<label class="form-control-label" for="storage-location">@lang('forms.storage_location_label')</label>
|
||||
<input type="text" class="form-control" id="storage-location" name="location" value="{{ old('location', $filesystem_default_location) }}">
|
||||
<input type="text" class="form-control" id="storage-location" name="location" value="{{ old('location', isset($filesystem_default_location) ? $filesystem_default_location : '') }}">
|
||||
|
||||
@if ($errors->has('location'))
|
||||
<div class="form-control-feedback">
|
||||
|
@ -1,25 +1,25 @@
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group{{ $errors->has('auth_url') ? ' has-error' : '' }}">
|
||||
{!! Form::label('auth_url', trans('forms.storage_auth_url_label'), ['class' => 'control-label']) !!}
|
||||
{!! Form::text('auth_url', old('auth_url'), ['class' => 'form-control']) !!}
|
||||
<div class="form-group{{ $errors->has('auth_url') ? ' has-danger' : '' }}">
|
||||
<label class="form-control-label" for="auth-url">@lang('forms.storage_auth_url_label')</label>
|
||||
<input type="text" class="form-control" id="auth-url" name="auth_url" value="{{ old('auth_url') }}">
|
||||
|
||||
@if ($errors->has('auth_url'))
|
||||
<span class="help-block">
|
||||
<div class="form-control-feedback">
|
||||
<strong>{{ $errors->first('auth_url') }}</strong>
|
||||
</span>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group{{ $errors->has('tenant_name') ? ' has-error' : '' }}">
|
||||
{!! Form::label('tenant_name', trans('forms.storage_tenant_name_label'), ['class' => 'control-label']) !!}
|
||||
{!! Form::text('tenant_name', old('tenant_name'), ['class' => 'form-control']) !!}
|
||||
<div class="form-group{{ $errors->has('tenant_name') ? ' has-danger' : '' }}">
|
||||
<label class="form-control-label" for="tenant-name">@lang('forms.storage_tenant_name_label')</label>
|
||||
<input type="text" class="form-control" id="tenant-name" name="tenant_name" value="{{ old('tenant_name') }}">
|
||||
|
||||
@if ($errors->has('tenant_name'))
|
||||
<span class="help-block">
|
||||
<div class="form-control-feedback">
|
||||
<strong>{{ $errors->first('tenant_name') }}</strong>
|
||||
</span>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@ -27,26 +27,26 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group{{ $errors->has('username') ? ' has-error' : '' }}">
|
||||
{!! Form::label('username', trans('forms.username_label'), ['class' => 'control-label']) !!}
|
||||
{!! Form::text('username', old('username'), ['class' => 'form-control']) !!}
|
||||
<div class="form-group{{ $errors->has('username') ? ' has-danger' : '' }}">
|
||||
<label class="form-control-label" for="username">@lang('forms.username_label')</label>
|
||||
<input type="text" class="form-control" id="username" name="username" value="{{ old('username') }}">
|
||||
|
||||
@if ($errors->has('username'))
|
||||
<span class="help-block">
|
||||
<div class="form-control-feedback">
|
||||
<strong>{{ $errors->first('username') }}</strong>
|
||||
</span>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
|
||||
{!! Form::label('password', trans('forms.password_label'), ['class' => 'control-label']) !!}
|
||||
{!! Form::text('password', old('password'), ['class' => 'form-control']) !!}
|
||||
<div class="form-group{{ $errors->has('password') ? ' has-danger' : '' }}">
|
||||
<label class="form-control-label" for="password">@lang('forms.password_label')</label>
|
||||
<input type="text" class="form-control" id="password" name="password" value="{{ old('password') }}">
|
||||
|
||||
@if ($errors->has('password'))
|
||||
<span class="help-block">
|
||||
<div class="form-control-feedback">
|
||||
<strong>{{ $errors->first('password') }}</strong>
|
||||
</span>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@ -54,49 +54,49 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group{{ $errors->has('service_name') ? ' has-error' : '' }}">
|
||||
{!! Form::label('service_name', trans('forms.storage_service_name_label'), ['class' => 'control-label']) !!}
|
||||
{!! Form::text('service_name', old('service_name'), ['class' => 'form-control']) !!}
|
||||
<div class="form-group{{ $errors->has('service_name') ? ' has-danger' : '' }}">
|
||||
<label class="form-control-label" for="service-name">@lang('forms.storage_service_name_label')</label>
|
||||
<input type="text" class="form-control" id="service-name" name="service_name" value="{{ old('service_name') }}">
|
||||
|
||||
@if ($errors->has('service_name'))
|
||||
<span class="help-block">
|
||||
<div class="form-control-feedback">
|
||||
<strong>{{ $errors->first('service_name') }}</strong>
|
||||
</span>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group{{ $errors->has('service_region') ? ' has-error' : '' }}">
|
||||
{!! Form::label('service_region', trans('forms.storage_service_region_label'), ['class' => 'control-label']) !!}
|
||||
{!! Form::text('service_region', old('service_region'), ['class' => 'form-control']) !!}
|
||||
<div class="form-group{{ $errors->has('service_region') ? ' has-danger' : '' }}">
|
||||
<label class="form-control-label" for="service-region">@lang('forms.storage_service_region_label')</label>
|
||||
<input type="text" class="form-control" id="service-region" name="service_region" value="{{ old('service_region') }}">
|
||||
|
||||
@if ($errors->has('service_region'))
|
||||
<span class="help-block">
|
||||
<div class="form-control-feedback">
|
||||
<strong>{{ $errors->first('service_region') }}</strong>
|
||||
</span>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group{{ $errors->has('container_name') ? ' has-error' : '' }}">
|
||||
{!! Form::label('container_name', trans('forms.storage_container_name_label'), ['class' => 'control-label']) !!}
|
||||
{!! Form::text('container_name', old('container_name'), ['class' => 'form-control']) !!}
|
||||
<div class="form-group{{ $errors->has('container_name') ? ' has-danger' : '' }}">
|
||||
<label class="form-control-label" for="container-name">@lang('forms.storage_container_name_label')</label>
|
||||
<input type="text" class="form-control" id="container-name" name="container_name" value="{{ old('container_name') }}">
|
||||
|
||||
@if ($errors->has('container_name'))
|
||||
<span class="help-block">
|
||||
<div class="form-control-feedback">
|
||||
<strong>{{ $errors->first('container_name') }}</strong>
|
||||
</span>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="form-group{{ $errors->has('cdn_url') ? ' has-error' : '' }}">
|
||||
{!! Form::label('cdn_url', trans('forms.storage_cdn_url_label'), ['class' => 'control-label']) !!}
|
||||
{!! Form::text('cdn_url', old('cdn_url'), ['class' => 'form-control']) !!}
|
||||
<div class="form-group{{ $errors->has('cdn_url') ? ' has-danger' : '' }}">
|
||||
<label class="form-control-label" for="cdn-url">@lang('forms.storage_cdn_url_label')</label>
|
||||
<input type="text" class="form-control" id="cdn-url" name="cdn_url" value="{{ old('cdn_url') }}">
|
||||
|
||||
@if ($errors->has('cdn_url'))
|
||||
<span class="help-block">
|
||||
<div class="form-control-feedback">
|
||||
<strong>{{ $errors->first('cdn_url') }}</strong>
|
||||
</span>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
@ -1,102 +0,0 @@
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group{{ $errors->has('auth_url') ? ' has-error' : '' }}">
|
||||
{!! Form::label('auth_url', trans('forms.storage_auth_url_label'), ['class' => 'control-label']) !!}
|
||||
{!! Form::text('auth_url', old('auth_url'), ['class' => 'form-control']) !!}
|
||||
|
||||
@if ($errors->has('auth_url'))
|
||||
<span class="help-block">
|
||||
<strong>{{ $errors->first('auth_url') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group{{ $errors->has('tenant_name') ? ' has-error' : '' }}">
|
||||
{!! Form::label('tenant_name', trans('forms.storage_tenant_name_label'), ['class' => 'control-label']) !!}
|
||||
{!! Form::text('tenant_name', old('tenant_name'), ['class' => 'form-control']) !!}
|
||||
|
||||
@if ($errors->has('tenant_name'))
|
||||
<span class="help-block">
|
||||
<strong>{{ $errors->first('tenant_name') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group{{ $errors->has('username') ? ' has-error' : '' }}">
|
||||
{!! Form::label('username', trans('forms.username_label'), ['class' => 'control-label']) !!}
|
||||
{!! Form::text('username', old('username'), ['class' => 'form-control']) !!}
|
||||
|
||||
@if ($errors->has('username'))
|
||||
<span class="help-block">
|
||||
<strong>{{ $errors->first('username') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
|
||||
{!! Form::label('password', trans('forms.password_label'), ['class' => 'control-label']) !!}
|
||||
{!! Form::text('password', old('password'), ['class' => 'form-control']) !!}
|
||||
|
||||
@if ($errors->has('password'))
|
||||
<span class="help-block">
|
||||
<strong>{{ $errors->first('password') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group{{ $errors->has('service_name') ? ' has-error' : '' }}">
|
||||
{!! Form::label('service_name', trans('forms.storage_service_name_label'), ['class' => 'control-label']) !!}
|
||||
{!! Form::text('service_name', old('service_name'), ['class' => 'form-control']) !!}
|
||||
|
||||
@if ($errors->has('service_name'))
|
||||
<span class="help-block">
|
||||
<strong>{{ $errors->first('service_name') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group{{ $errors->has('service_region') ? ' has-error' : '' }}">
|
||||
{!! Form::label('service_region', trans('forms.storage_service_region_label'), ['class' => 'control-label']) !!}
|
||||
{!! Form::text('service_region', old('service_region'), ['class' => 'form-control']) !!}
|
||||
|
||||
@if ($errors->has('service_region'))
|
||||
<span class="help-block">
|
||||
<strong>{{ $errors->first('service_region') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group{{ $errors->has('container_name') ? ' has-error' : '' }}">
|
||||
{!! Form::label('container_name', trans('forms.storage_container_name_label'), ['class' => 'control-label']) !!}
|
||||
{!! Form::text('container_name', old('container_name'), ['class' => 'form-control']) !!}
|
||||
|
||||
@if ($errors->has('container_name'))
|
||||
<span class="help-block">
|
||||
<strong>{{ $errors->first('container_name') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="form-group{{ $errors->has('cdn_url') ? ' has-error' : '' }}">
|
||||
{!! Form::label('cdn_url', trans('forms.storage_cdn_url_label'), ['class' => 'control-label']) !!}
|
||||
{!! Form::text('cdn_url', old('cdn_url'), ['class' => 'form-control']) !!}
|
||||
|
||||
@if ($errors->has('cdn_url'))
|
||||
<span class="help-block">
|
||||
<strong>{{ $errors->first('cdn_url') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
@ -1,25 +1,25 @@
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group{{ $errors->has('username') ? ' has-error' : '' }}">
|
||||
{!! Form::label('username', trans('forms.username_label'), ['class' => 'control-label']) !!}
|
||||
{!! Form::text('username', old('username'), ['class' => 'form-control']) !!}
|
||||
<div class="form-group{{ $errors->has('username') ? ' has-danger' : '' }}">
|
||||
<label class="form-control-label" for="username">@lang('forms.username_label')</label>
|
||||
<input type="text" class="form-control" id="username" name="username" value="{{ old('username') }}">
|
||||
|
||||
@if ($errors->has('username'))
|
||||
<span class="help-block">
|
||||
<div class="form-control-feedback">
|
||||
<strong>{{ $errors->first('username') }}</strong>
|
||||
</span>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
|
||||
{!! Form::label('password', trans('forms.storage_api_key_label'), ['class' => 'control-label']) !!}
|
||||
{!! Form::text('password', old('password'), ['class' => 'form-control']) !!}
|
||||
<div class="form-group{{ $errors->has('password') ? ' has-danger' : '' }}">
|
||||
<label class="form-control-label" for="password">@lang('forms.password_label')</label>
|
||||
<input type="text" class="form-control" id="password" name="password" value="{{ old('password') }}">
|
||||
|
||||
@if ($errors->has('password'))
|
||||
<span class="help-block">
|
||||
<div class="form-control-feedback">
|
||||
<strong>{{ $errors->first('password') }}</strong>
|
||||
</span>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@ -27,26 +27,26 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group{{ $errors->has('service_region') ? ' has-error' : '' }}">
|
||||
{!! Form::label('service_region', trans('forms.storage_service_region_label'), ['class' => 'control-label']) !!}
|
||||
{!! Form::text('service_region', old('service_region'), ['class' => 'form-control']) !!}
|
||||
<div class="form-group{{ $errors->has('service_region') ? ' has-danger' : '' }}">
|
||||
<label class="form-control-label" for="service-region">@lang('forms.storage_service_region_label')</label>
|
||||
<input type="text" class="form-control" id="service-region" name="service_region" value="{{ old('service_region') }}">
|
||||
|
||||
@if ($errors->has('service_region'))
|
||||
<span class="help-block">
|
||||
<div class="form-control-feedback">
|
||||
<strong>{{ $errors->first('service_region') }}</strong>
|
||||
</span>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group{{ $errors->has('container_name') ? ' has-error' : '' }}">
|
||||
{!! Form::label('container_name', trans('forms.storage_container_name_label'), ['class' => 'control-label']) !!}
|
||||
{!! Form::text('container_name', old('container_name'), ['class' => 'form-control']) !!}
|
||||
<div class="form-group{{ $errors->has('container_name') ? ' has-danger' : '' }}">
|
||||
<label class="form-control-label" for="container-name">@lang('forms.storage_container_name_label')</label>
|
||||
<input type="text" class="form-control" id="container-name" name="container_name" value="{{ old('container_name') }}">
|
||||
|
||||
@if ($errors->has('container_name'))
|
||||
<span class="help-block">
|
||||
<div class="form-control-feedback">
|
||||
<strong>{{ $errors->first('container_name') }}</strong>
|
||||
</span>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user