Skip to content

A free open source IT asset/license management system

Branding page UI improvements (image previews inline)

snipe6f99ce2b07b3
diff --git a/resources/views/partials/forms/edit/uploadLogo.blade.php b/resources/views/partials/forms/edit/uploadLogo.blade.php
index 0d77c776ca..101e392809 100644
--- a/resources/views/partials/forms/edit/uploadLogo.blade.php
+++ b/resources/views/partials/forms/edit/uploadLogo.blade.php
@@ -1,15 +1,35 @@
<div class="form-group {{ $errors->has($logoVariable) ? 'has-error' : '' }}">
- <label class="col-md-3" for="{{ $logoVariable }}">
- {{ Form::label($logoVariable, $logoLabel) }}</label>
+ <div class="col-md-3">
+ <strong>{{ $logoLabel }}</strong>
+ </div>
+
+ @if (($setting->$logoVariable!='') && (Storage::disk('public')->exists(e($snipeSettings->$logoVariable))))
+ <div class="col-md-9">
+
+ <label for="{{ $logoClearVariable }}" style="font-weight: normal">
+ {{ Form::checkbox($logoClearVariable, '1', Request::old($logoClearVariable),array('class' => 'minimal')) }}
+ Remove current {{ str_replace('_', ' ', $logoVariable) }} image
+
+ </label>
- @if ($setting->$logoVariable!='')
- <div class="col-md-9">
- {{ Form::checkbox($logoClearVariable, '1', Request::old($logoClearVariable),array('class' => 'minimal')) }} Remove current {{ str_replace('_', ' ', $logoVariable) }} image
- </div>
+ <br>
+ @if ($logoVariable!='favicon')
+ <a href="{{ Storage::disk('public')->url(e($snipeSettings->$logoVariable)) }}" data-toggle="lightbox">
+ <img style="max-height: 60px; padding-top: 10px; padding-bottom: 10px; " alt="" src="{{ Storage::disk('public')->url(e($snipeSettings->$logoVariable)) }}">
+ </a>
+ @else
+ <img style="max-height: 50px; padding-top: 10px; padding-bottom: 10px; " alt="" src="{{ Storage::disk('public')->url(e($snipeSettings->$logoVariable)) }}">
+ @endif
+
+ </div>
+ <div class="col-md-9 col-md-offset-3">
+ @else
+ <div class="col-md-9">
@endif
- <div class="col-md-9 col-md-offset-3">
+
+
<label class="btn btn-default">
{{ trans('button.select_file') }}