Template adjustments
This commit is contained in:
parent
98d2a1e1fd
commit
1a55532f95
|
@ -5,7 +5,7 @@
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="col-md-9">
|
<div class="col-md-12">
|
||||||
<ul class="breadcrumb">
|
<ul class="breadcrumb">
|
||||||
<li><a href="/admin">Admin Control</a></li>
|
<li><a href="/admin">Admin Control</a></li>
|
||||||
<li class="active">Accounts</li>
|
<li class="active">Accounts</li>
|
||||||
|
|
|
@ -5,22 +5,12 @@
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="col-md-9">
|
<div class="col-md-12">
|
||||||
<ul class="breadcrumb">
|
<ul class="breadcrumb">
|
||||||
<li><a href="/admin">Admin Controls</a></li>
|
<li><a href="/admin">Admin Controls</a></li>
|
||||||
<li><a href="/admin/accounts">Accounts</a></li>
|
<li><a href="/admin/accounts">Accounts</a></li>
|
||||||
<li class="active">Add New Account</li>
|
<li class="active">Add New Account</li>
|
||||||
</ul>
|
</ul>
|
||||||
@if (count($errors) > 0)
|
|
||||||
<div class="alert alert-danger">
|
|
||||||
<strong>{{ trans('strings.whoops') }}!</strong> {{ trans('auth.errorencountered') }}<br><br>
|
|
||||||
<ul>
|
|
||||||
@foreach ($errors->all() as $error)
|
|
||||||
<li>{{ $error }}</li>
|
|
||||||
@endforeach
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
<h3>Create New Account</h3><hr />
|
<h3>Create New Account</h3><hr />
|
||||||
<form action="new" method="post">
|
<form action="new" method="post">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
|
|
@ -5,30 +5,12 @@
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="col-md-9">
|
<div class="col-md-12">
|
||||||
<ul class="breadcrumb">
|
<ul class="breadcrumb">
|
||||||
<li><a href="/admin">Admin Controls</a></li>
|
<li><a href="/admin">Admin Controls</a></li>
|
||||||
<li><a href="/admin/accounts">Accounts</a></li>
|
<li><a href="/admin/accounts">Accounts</a></li>
|
||||||
<li class="active">{{ $user->email }}</li>
|
<li class="active">{{ $user->email }}</li>
|
||||||
</ul>
|
</ul>
|
||||||
@if (count($errors) > 0)
|
|
||||||
<div class="alert alert-danger">
|
|
||||||
<strong>{{ trans('strings.whoops') }}!</strong> {{ trans('auth.errorencountered') }}<br><br>
|
|
||||||
<ul>
|
|
||||||
@foreach ($errors->all() as $error)
|
|
||||||
<li>{{ $error }}</li>
|
|
||||||
@endforeach
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
@foreach (Alert::getMessages() as $type => $messages)
|
|
||||||
@foreach ($messages as $message)
|
|
||||||
<div class="alert alert-{{ $type }} alert-dismissable" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
{!! $message !!}
|
|
||||||
</div>
|
|
||||||
@endforeach
|
|
||||||
@endforeach
|
|
||||||
<h3>Viewing User: {{ $user->email }}</h3><hr />
|
<h3>Viewing User: {{ $user->email }}</h3><hr />
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="col-md-9">
|
<div class="col-md-12">
|
||||||
<ul class="breadcrumb">
|
<ul class="breadcrumb">
|
||||||
<li class="active">Admin Control</li>
|
<li class="active">Admin Control</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -5,19 +5,11 @@
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="col-md-9">
|
<div class="col-md-12">
|
||||||
<ul class="breadcrumb">
|
<ul class="breadcrumb">
|
||||||
<li><a href="/admin">Admin Control</a></li>
|
<li><a href="/admin">Admin Control</a></li>
|
||||||
<li class="active">Servers</li>
|
<li class="active">Servers</li>
|
||||||
</ul>
|
</ul>
|
||||||
@foreach (Alert::getMessages() as $type => $messages)
|
|
||||||
@foreach ($messages as $message)
|
|
||||||
<div class="alert alert-{{ $type }} alert-dismissable" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
{!! $message !!}
|
|
||||||
</div>
|
|
||||||
@endforeach
|
|
||||||
@endforeach
|
|
||||||
<h3>All Servers</h3><hr />
|
<h3>All Servers</h3><hr />
|
||||||
<table class="table table-bordered table-hover">
|
<table class="table table-bordered table-hover">
|
||||||
<thead>
|
<thead>
|
||||||
|
|
|
@ -5,30 +5,12 @@
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="col-md-9">
|
<div class="col-md-12">
|
||||||
<ul class="breadcrumb">
|
<ul class="breadcrumb">
|
||||||
<li><a href="/admin">Admin Control</a></li>
|
<li><a href="/admin">Admin Control</a></li>
|
||||||
<li><a href="/admin/servers">Servers</a></li>
|
<li><a href="/admin/servers">Servers</a></li>
|
||||||
<li class="active">Create New Server</li>
|
<li class="active">Create New Server</li>
|
||||||
</ul>
|
</ul>
|
||||||
@if (count($errors) > 0)
|
|
||||||
<div class="alert alert-danger">
|
|
||||||
<strong>{{ trans('strings.whoops') }}!</strong> {{ trans('base.validation_error') }}<br><br>
|
|
||||||
<ul>
|
|
||||||
@foreach ($errors->all() as $error)
|
|
||||||
<li>{{ $error }}</li>
|
|
||||||
@endforeach
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
@foreach (Alert::getMessages() as $type => $messages)
|
|
||||||
@foreach ($messages as $message)
|
|
||||||
<div class="alert alert-{{ $type }} alert-dismissable" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
{!! $message !!}
|
|
||||||
</div>
|
|
||||||
@endforeach
|
|
||||||
@endforeach
|
|
||||||
<h3>Create New Server</h3><hr />
|
<h3>Create New Server</h3><hr />
|
||||||
<form action="/admin/servers/new" method="POST">
|
<form action="/admin/servers/new" method="POST">
|
||||||
<div class="well">
|
<div class="well">
|
||||||
|
|
|
@ -5,30 +5,12 @@
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="col-md-9">
|
<div class="col-md-12">
|
||||||
<ul class="breadcrumb">
|
<ul class="breadcrumb">
|
||||||
<li><a href="/admin">Admin Control</a></li>
|
<li><a href="/admin">Admin Control</a></li>
|
||||||
<li><a href="/admin/servers">Servers</a></li>
|
<li><a href="/admin/servers">Servers</a></li>
|
||||||
<li class="active">{{ $server->name }} ({{ $server->uuidShort}})</li>
|
<li class="active">{{ $server->name }} ({{ $server->uuidShort}})</li>
|
||||||
</ul>
|
</ul>
|
||||||
@if (count($errors) > 0)
|
|
||||||
<div class="alert alert-danger">
|
|
||||||
<strong>{{ trans('strings.whoops') }}!</strong> {{ trans('base.validation_error') }}<br><br>
|
|
||||||
<ul>
|
|
||||||
@foreach ($errors->all() as $error)
|
|
||||||
<li>{{ $error }}</li>
|
|
||||||
@endforeach
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
@foreach (Alert::getMessages() as $type => $messages)
|
|
||||||
@foreach ($messages as $message)
|
|
||||||
<div class="alert alert-{{ $type }} alert-dismissable" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
{!! $message !!}
|
|
||||||
</div>
|
|
||||||
@endforeach
|
|
||||||
@endforeach
|
|
||||||
<ul class="nav nav-tabs tabs_with_panel" id="config_tabs">
|
<ul class="nav nav-tabs tabs_with_panel" id="config_tabs">
|
||||||
<li class="active"><a href="#tab_about" data-toggle="tab">About</a></li>
|
<li class="active"><a href="#tab_about" data-toggle="tab">About</a></li>
|
||||||
<li><a href="#tab_details" data-toggle="tab">Details</a></li>
|
<li><a href="#tab_details" data-toggle="tab">Details</a></li>
|
||||||
|
|
|
@ -14,24 +14,6 @@
|
||||||
<form action="/auth/login" method="POST" id="login-form">
|
<form action="/auth/login" method="POST" id="login-form">
|
||||||
<legend>{{ trans('strings.login') }}</legend>
|
<legend>{{ trans('strings.login') }}</legend>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
@if (count($errors) > 0)
|
|
||||||
<div class="alert alert-danger">
|
|
||||||
<strong>{{ trans('strings.whoops') }}!</strong> {{ trans('auth.errorencountered') }}<br><br>
|
|
||||||
<ul>
|
|
||||||
@foreach ($errors->all() as $error)
|
|
||||||
<li>{{ $error }}</li>
|
|
||||||
@endforeach
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
@foreach (Alert::getMessages() as $type => $messages)
|
|
||||||
@foreach ($messages as $message)
|
|
||||||
<div class="alert alert-{{ $type }} alert-dismissable" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
{{ $message }}
|
|
||||||
</div>
|
|
||||||
@endforeach
|
|
||||||
@endforeach
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="email" class="control-label">{{ trans('strings.email') }}</label>
|
<label for="email" class="control-label">{{ trans('strings.email') }}</label>
|
||||||
<div>
|
<div>
|
||||||
|
|
|
@ -14,16 +14,6 @@
|
||||||
<form action="/auth/password" method="POST">
|
<form action="/auth/password" method="POST">
|
||||||
<legend>{{ trans('auth.resetpassword') }}</legend>
|
<legend>{{ trans('auth.resetpassword') }}</legend>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
@if (count($errors) > 0)
|
|
||||||
<div class="alert alert-danger">
|
|
||||||
<strong>{{ trans('strings.whoops') }}!</strong> {{ trans('auth.errorencountered') }}<br><br>
|
|
||||||
<ul>
|
|
||||||
@foreach ($errors->all() as $error)
|
|
||||||
<li>{{ $error }}</li>
|
|
||||||
@endforeach
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
@if (session('status'))
|
@if (session('status'))
|
||||||
<div class="alert alert-success">
|
<div class="alert alert-success">
|
||||||
<strong>{{ trans('strings.success') }}!</strong> {{ trans('auth.emailsent') }}
|
<strong>{{ trans('strings.success') }}!</strong> {{ trans('auth.emailsent') }}
|
||||||
|
|
|
@ -14,16 +14,6 @@
|
||||||
<form action="/auth/password/verify" method="POST">
|
<form action="/auth/password/verify" method="POST">
|
||||||
<legend>{{ trans('auth.resetpassword') }}</legend>
|
<legend>{{ trans('auth.resetpassword') }}</legend>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
@if (count($errors) > 0)
|
|
||||||
<div class="alert alert-danger">
|
|
||||||
<strong>{{ trans('strings.whoops') }}!</strong> {{ trans('auth.errorencountered') }}<br><br>
|
|
||||||
<ul>
|
|
||||||
@foreach ($errors->all() as $error)
|
|
||||||
<li>{{ $error }}</li>
|
|
||||||
@endforeach
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
<input type="hidden" name="token" value="{{ $token }}">
|
<input type="hidden" name="token" value="{{ $token }}">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="email" class="control-label">{{ trans('strings.email') }}</label>
|
<label for="email" class="control-label">{{ trans('strings.email') }}</label>
|
||||||
|
|
|
@ -6,26 +6,7 @@
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="col-md-9">
|
<div class="col-md-12">
|
||||||
@if (count($errors) > 0)
|
|
||||||
<div class="alert alert-danger alert-dismissible" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
{{ trans('base.form_error') }}
|
|
||||||
<ul>
|
|
||||||
@foreach ($errors->all() as $error)
|
|
||||||
<li>{{ $error }}</li>
|
|
||||||
@endforeach
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
@foreach (Alert::getMessages() as $type => $messages)
|
|
||||||
@foreach ($messages as $message)
|
|
||||||
<div class="alert alert-{{ $type }} alert-dismissable" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
{{ $message }}
|
|
||||||
</div>
|
|
||||||
@endforeach
|
|
||||||
@endforeach
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<h3 class="nopad">{{ trans('base.account.update_pass') }}</h3><hr />
|
<h3 class="nopad">{{ trans('base.account.update_pass') }}</h3><hr />
|
||||||
|
|
|
@ -6,15 +6,7 @@
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="col-md-9">
|
<div class="col-md-12">
|
||||||
@foreach (Alert::getMessages() as $type => $messages)
|
|
||||||
@foreach ($messages as $message)
|
|
||||||
<div class="alert alert-{{ $type }} alert-dismissable" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
{{ $message }}
|
|
||||||
</div>
|
|
||||||
@endforeach
|
|
||||||
@endforeach
|
|
||||||
@if (Auth::user()->root_admin == 1)
|
@if (Auth::user()->root_admin == 1)
|
||||||
<div class="alert alert-info">{{ trans('base.view_as_admin') }}</div>
|
<div class="alert alert-info">{{ trans('base.view_as_admin') }}</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="col-md-9">
|
<div class="col-md-12">
|
||||||
@foreach (Alert::getMessages() as $type => $messages)
|
@foreach (Alert::getMessages() as $type => $messages)
|
||||||
@foreach ($messages as $message)
|
@foreach ($messages as $message)
|
||||||
<div class="alert alert-{{ $type }} alert-dismissable" role="alert">
|
<div class="alert alert-{{ $type }} alert-dismissable" role="alert">
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
@section('title', '403: Forbidden')
|
@section('title', '403: Forbidden')
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="col-md-9">
|
<div class="col-md-12">
|
||||||
<div class="panel panel-danger">
|
<div class="panel panel-danger">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h3 class="panel-title">HTTP 403: Access Denied</h3>
|
<h3 class="panel-title">HTTP 403: Access Denied</h3>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
@section('title', '503: Server Temporarily Unavaliable')
|
@section('title', '503: Server Temporarily Unavaliable')
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="col-md-9">
|
<div class="col-md-12">
|
||||||
<div class="panel panel-danger">
|
<div class="panel panel-danger">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h3 class="panel-title">HTTP 503: Temporarily Unavaliable</h3>
|
<h3 class="panel-title">HTTP 503: Temporarily Unavaliable</h3>
|
||||||
|
|
|
@ -77,14 +77,41 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="list-group">
|
<div class="list-group">
|
||||||
<a href="#" class="list-group-item list-group-item-heading"><strong>Node Management</strong></a>
|
<a href="#" class="list-group-item list-group-item-heading"><strong>Node Management</strong></a>
|
||||||
<a href="/admin/node" class="list-group-item">List Nodes</a>
|
<a href="/admin/nodes" class="list-group-item">List Nodes</a>
|
||||||
<a href="/admin/node/new" class="list-group-item">Add Node</a>
|
<a href="/admin/nodes/new" class="list-group-item">Add Node</a>
|
||||||
<a href="/admin/node/locations" class="list-group-item">Manage Locations</a>
|
<a href="/admin/locations" class="list-group-item">Manage Locations</a>
|
||||||
<a href="/admin/node/plugins" class="list-group-item">Manage Plugins</a>
|
<a href="/admin/services" class="list-group-item">Manage Services</a>
|
||||||
</div>
|
</div>
|
||||||
@show
|
@show
|
||||||
</div>
|
</div>
|
||||||
@yield('content')
|
<div class="col-md-9">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12" id="tpl_messages">
|
||||||
|
@if (count($errors) > 0)
|
||||||
|
<div class="alert alert-danger">
|
||||||
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||||
|
<strong>{{ trans('strings.whoops') }}!</strong> {{ trans('auth.errorencountered') }}<br><br>
|
||||||
|
<ul>
|
||||||
|
@foreach ($errors->all() as $error)
|
||||||
|
<li>{{ $error }}</li>
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
@foreach (Alert::getMessages() as $type => $messages)
|
||||||
|
@foreach ($messages as $message)
|
||||||
|
<div class="alert alert-{{ $type }} alert-dismissable" role="alert">
|
||||||
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||||
|
{{ $message }}
|
||||||
|
</div>
|
||||||
|
@endforeach
|
||||||
|
@endforeach
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
@yield('content')
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -100,6 +127,15 @@
|
||||||
// Remeber Active Tab and Navigate to it on Reload
|
// Remeber Active Tab and Navigate to it on Reload
|
||||||
for(var queryParameters={},queryString=location.search.substring(1),re=/([^&=]+)=([^&]*)/g,m;m=re.exec(queryString);)queryParameters[decodeURIComponent(m[1])]=decodeURIComponent(m[2]);$("a[data-toggle='tab']").click(function(){queryParameters.tab=$(this).attr("href").substring(1),window.history.pushState(null,null,location.pathname+"?"+$.param(queryParameters))});
|
for(var queryParameters={},queryString=location.search.substring(1),re=/([^&=]+)=([^&]*)/g,m;m=re.exec(queryString);)queryParameters[decodeURIComponent(m[1])]=decodeURIComponent(m[2]);$("a[data-toggle='tab']").click(function(){queryParameters.tab=$(this).attr("href").substring(1),window.history.pushState(null,null,location.pathname+"?"+$.param(queryParameters))});
|
||||||
if($.urlParam('tab') != null){$('.nav.nav-tabs a[href="#' + $.urlParam('tab') + '"]').tab('show');}
|
if($.urlParam('tab') != null){$('.nav.nav-tabs a[href="#' + $.urlParam('tab') + '"]').tab('show');}
|
||||||
|
|
||||||
|
@if (count($errors) > 0)
|
||||||
|
@foreach ($errors->all() as $error)
|
||||||
|
<?php preg_match('/^The\s(.*?)\s/', $error, $matches) ?>
|
||||||
|
@if (isset($matches[1]))
|
||||||
|
$('[name="{{ $matches[1] }}"]').parent().parent().addClass('has-error');
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -203,7 +203,34 @@
|
||||||
@show
|
@show
|
||||||
@show
|
@show
|
||||||
</div>
|
</div>
|
||||||
@yield('content')
|
<div class="col-md-9">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12" id="tpl_messages">
|
||||||
|
@if (count($errors) > 0)
|
||||||
|
<div class="alert alert-danger">
|
||||||
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||||
|
<strong>{{ trans('strings.whoops') }}!</strong> {{ trans('auth.errorencountered') }}<br><br>
|
||||||
|
<ul>
|
||||||
|
@foreach ($errors->all() as $error)
|
||||||
|
<li>{{ $error }}</li>
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
@foreach (Alert::getMessages() as $type => $messages)
|
||||||
|
@foreach ($messages as $message)
|
||||||
|
<div class="alert alert-{{ $type }} alert-dismissable" role="alert">
|
||||||
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||||
|
{{ $message }}
|
||||||
|
</div>
|
||||||
|
@endforeach
|
||||||
|
@endforeach
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
@yield('content')
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -219,6 +246,14 @@
|
||||||
// Remeber Active Tab and Navigate to it on Reload
|
// Remeber Active Tab and Navigate to it on Reload
|
||||||
for(var queryParameters={},queryString=location.search.substring(1),re=/([^&=]+)=([^&]*)/g,m;m=re.exec(queryString);)queryParameters[decodeURIComponent(m[1])]=decodeURIComponent(m[2]);$("a[data-toggle='tab']").click(function(){queryParameters.tab=$(this).attr("href").substring(1),window.history.pushState(null,null,location.pathname+"?"+$.param(queryParameters))});
|
for(var queryParameters={},queryString=location.search.substring(1),re=/([^&=]+)=([^&]*)/g,m;m=re.exec(queryString);)queryParameters[decodeURIComponent(m[1])]=decodeURIComponent(m[2]);$("a[data-toggle='tab']").click(function(){queryParameters.tab=$(this).attr("href").substring(1),window.history.pushState(null,null,location.pathname+"?"+$.param(queryParameters))});
|
||||||
if($.urlParam('tab') != null){$('.nav.nav-tabs a[href="#' + $.urlParam('tab') + '"]').tab('show');}
|
if($.urlParam('tab') != null){$('.nav.nav-tabs a[href="#' + $.urlParam('tab') + '"]').tab('show');}
|
||||||
|
@if (count($errors) > 0)
|
||||||
|
@foreach ($errors->all() as $error)
|
||||||
|
<?php preg_match('/^The\s(.*?)\s/', $error, $matches) ?>
|
||||||
|
@if (isset($matches[1]))
|
||||||
|
$('[name="{{ $matches[1] }}"]').parent().parent().addClass('has-error');
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -10,15 +10,7 @@
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="col-md-9">
|
<div class="col-md-12">
|
||||||
@foreach (Alert::getMessages() as $type => $messages)
|
|
||||||
@foreach ($messages as $message)
|
|
||||||
<div class="alert alert-{{ $type }} alert-dismissable" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
{{ $message }}
|
|
||||||
</div>
|
|
||||||
@endforeach
|
|
||||||
@endforeach
|
|
||||||
<ul class="nav nav-tabs" id="config_tabs">
|
<ul class="nav nav-tabs" id="config_tabs">
|
||||||
<li class="active"><a href="#create" data-toggle="tab">Create File</a></li>
|
<li class="active"><a href="#create" data-toggle="tab">Create File</a></li>
|
||||||
@can('upload-files', $server)<li><a href="#upload" data-toggle="tab">Upload Files</a></li>@endcan
|
@can('upload-files', $server)<li><a href="#upload" data-toggle="tab">Upload Files</a></li>@endcan
|
||||||
|
|
|
@ -5,16 +5,7 @@
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="col-md-9">
|
<div class="col-md-12">
|
||||||
<span id="save_status" style="display:none;width: 100%;"></span>
|
|
||||||
@foreach (Alert::getMessages() as $type => $messages)
|
|
||||||
@foreach ($messages as $message)
|
|
||||||
<div class="alert alert-{{ $type }} alert-dismissable" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
{{ $message }}
|
|
||||||
</div>
|
|
||||||
@endforeach
|
|
||||||
@endforeach
|
|
||||||
<h3 class="nopad"><small>Editing File: /home/container/{{ $file }}</small></h3>
|
<h3 class="nopad"><small>Editing File: /home/container/{{ $file }}</small></h3>
|
||||||
<form method="post" id="editing_file">
|
<form method="post" id="editing_file">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -85,9 +76,9 @@ $(document).ready(function () {
|
||||||
contents: fileContents
|
contents: fileContents
|
||||||
}
|
}
|
||||||
}).done(function (data) {
|
}).done(function (data) {
|
||||||
$('#save_status').html('<div class="alert alert-success">{{ trans('server.files.saved') }}</div>').slideDown();
|
$('#tpl_messages').html('<div class="alert alert-success">{{ trans('server.files.saved') }}</div>');
|
||||||
}).fail(function (jqXHR) {
|
}).fail(function (jqXHR) {
|
||||||
$('#save_status').html('<div class="alert alert-danger">' + jqXHR.responseText + '</div>').slideDown();
|
$('#tpl_messages').html('<div class="alert alert-danger">' + jqXHR.responseText + '</div>');
|
||||||
}).always(function () {
|
}).always(function () {
|
||||||
$('#save_file').html('{{ trans('strings.save') }}').removeClass('disabled');
|
$('#save_file').html('{{ trans('strings.save') }}').removeClass('disabled');
|
||||||
});
|
});
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="col-md-9">
|
<div class="col-md-12">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12" id="internal_alert">
|
<div class="col-md-12" id="internal_alert">
|
||||||
<div class="alert alert-info">
|
<div class="alert alert-info">
|
||||||
|
@ -15,14 +15,6 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
@foreach (Alert::getMessages() as $type => $messages)
|
|
||||||
@foreach ($messages as $message)
|
|
||||||
<div class="alert alert-{{ $type }} alert-dismissable" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
{{ $message }}
|
|
||||||
</div>
|
|
||||||
@endforeach
|
|
||||||
@endforeach
|
|
||||||
<div class="ajax_loading_box"><i class="fa fa-refresh fa-spin" id="position_me"></i></div>
|
<div class="ajax_loading_box"><i class="fa fa-refresh fa-spin" id="position_me"></i></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -11,15 +11,7 @@
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="col-md-9">
|
<div class="col-md-12">
|
||||||
@foreach (Alert::getMessages() as $type => $messages)
|
|
||||||
@foreach ($messages as $message)
|
|
||||||
<div class="alert alert-{{ $type }} alert-dismissable" role="alert">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
||||||
{{ $message }}
|
|
||||||
</div>
|
|
||||||
@endforeach
|
|
||||||
@endforeach
|
|
||||||
<ul class="nav nav-tabs tabs_with_panel" id="config_tabs">
|
<ul class="nav nav-tabs tabs_with_panel" id="config_tabs">
|
||||||
<li id="triggerConsoleView" class="active"><a href="#console" data-toggle="tab">{{ trans('server.index.control') }}</a></li>
|
<li id="triggerConsoleView" class="active"><a href="#console" data-toggle="tab">{{ trans('server.index.control') }}</a></li>
|
||||||
<li><a href="#stats" data-toggle="tab">{{ trans('server.index.usage') }}</a></li>
|
<li><a href="#stats" data-toggle="tab">{{ trans('server.index.usage') }}</a></li>
|
||||||
|
|
Loading…
Reference in New Issue