From 3ed0cf2be8005950439b5b62a5ef52d294eb638e Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 30 Aug 2016 06:48:00 -0700 Subject: [PATCH] Moved import errors up higher on the screen, fixed some weird formatting bugaboos --- resources/views/hardware/import.blade.php | 71 +++++++++++++---------- 1 file changed, 40 insertions(+), 31 deletions(-) diff --git a/resources/views/hardware/import.blade.php b/resources/views/hardware/import.blade.php index c243eb86ec..e5c1d4b415 100644 --- a/resources/views/hardware/import.blade.php +++ b/resources/views/hardware/import.blade.php @@ -12,6 +12,43 @@ {{-- Modal import dialog --}} +@if (session()->has('import_errors')) +
+
+
+ Warning {{trans('admin/hardware/message.import.errorDetail')}} +
+ +
+ + + + + + + + @foreach (session('import_errors') as $asset => $itemErrors) + + + + + @endforeach + +
AssetErrors
{{ $asset }} + @foreach ($itemErrors as $field => $values ) + {{ $field }}: + @foreach( $values as $errorString) + {{$errorString[0]}} + @endforeach +
+ @endforeach +
+
+
+
+@endif + + @@ -109,35 +146,7 @@ - @if (session()->has('import_errors')) -
-
- Warning {{trans('admin/hardware/message.import.errorDetail')}} -
- - - - - - - @foreach (session('import_errors') as $asset => $itemErrors) - - - - - @endforeach - -
AssetErrors
{{ $asset }} - @foreach ($itemErrors as $field => $values ) - {{ $field }}: - @foreach( $values as $errorString) - {{$errorString[0]}} - @endforeach -
- @endforeach -
-
- @endif + @section('moar_scripts') @@ -190,7 +199,7 @@ $('.progress-bar-text').html('Finished!'); $('.progress-checkmark').fadeIn('fast').html(''); $.each(data.result.files, function (index, file) { - $('' + file.name + 'Just now' + file.filesize + ' Process').prependTo("#upload-table > tbody"); + $('' + file.name + 'Just now' + file.filesize + ' Process ').prependTo("#upload-table > tbody"); }); } $('#progress').removeClass('active');