From c8c3939d5919e9cdd9decb2c5745ad740f4ea9c0 Mon Sep 17 00:00:00 2001 From: Deon George Date: Thu, 6 Mar 2025 12:55:30 +1100 Subject: [PATCH] Style changes when rendering the DN header --- public/css/custom.css | 6 ---- .../attribute/binary/jpegphoto.blade.php | 4 +-- resources/views/fragment/dn/header.blade.php | 30 +++++++++---------- 3 files changed, 17 insertions(+), 23 deletions(-) diff --git a/public/css/custom.css b/public/css/custom.css index 96a84336..807825d8 100644 --- a/public/css/custom.css +++ b/public/css/custom.css @@ -1,9 +1,3 @@ -img.jpegphoto { - display:block; - max-width:100px; - height:100px; -} - /** ensure our userpassword has select is next to the password input */ div#userPassword .select2-container--bootstrap-5 .select2-selection { font-size: inherit; diff --git a/resources/views/components/attribute/binary/jpegphoto.blade.php b/resources/views/components/attribute/binary/jpegphoto.blade.php index 0d7414d6..2bcccaa2 100644 --- a/resources/views/components/attribute/binary/jpegphoto.blade.php +++ b/resources/views/components/attribute/binary/jpegphoto.blade.php @@ -9,12 +9,12 @@ @default - ($e=$errors->get($o->name_lc.'.'.$loop->index))]) src="data:{{ $x }};base64, {{ base64_encode($value) }}" /> + ($e=$errors->get($o->name_lc.'.'.$loop->index))]) src="data:{{ $x }};base64, {{ base64_encode($value) }}" /> @if ($edit)
- @lang('Delete') + @lang('Delete')
@if($e) diff --git a/resources/views/fragment/dn/header.blade.php b/resources/views/fragment/dn/header.blade.php index 1317de64..4a7166d8 100644 --- a/resources/views/fragment/dn/header.blade.php +++ b/resources/views/fragment/dn/header.blade.php @@ -1,28 +1,28 @@ - - + - + -
- {!! $x ? $x->render(FALSE,TRUE) : sprintf('
',$o->icon() ?? "fas fa-info") !!} +
+ {!! ($x=$o->getObject('jpegphoto')) ? $x->render(FALSE,TRUE) : sprintf('
',$o->icon() ?? "fas fa-info") !!}
{{ $o->getDn() }}{{ $o->getDn() }}
- - - -
Created + + + + + - - - + + - - - + +
Created []
Modified +
Modified []
UUID +
UUID