More work on displaying and editing an LDAP entry
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
{!! $o->values
|
||||
->transform(function($item) use ($o) {
|
||||
return sprintf('<abbr class="pb-1" title="%s"><i class="fas fa-book pe-2"></i>%s</abbr>%s<p class="mb-0">%s</p>',
|
||||
$item,
|
||||
$o->get($item,'title'),
|
||||
($x=$o->get($item,'ref')) ? sprintf('<abbr class="ps-2" title="%s"><i class="fas fa-comment-dots"></i></abbr>',$x) : '',
|
||||
$o->get($item,'desc'),
|
||||
);
|
||||
})->join('<br>') !!}
|
11
resources/views/components/attribute/schema/oid.blade.php
Normal file
11
resources/views/components/attribute/schema/oid.blade.php
Normal file
@@ -0,0 +1,11 @@
|
||||
{!! $o->values
|
||||
->transform(function($item) use ($o) {
|
||||
return preg_match('/[0-9]+\.[0-9]+\.[0-9]+/',$item)
|
||||
? sprintf('<abbr class="pb-1" title="%s"><i class="fas fa-list-ol pe-2"></i>%s</abbr>%s<p class="mb-0">%s</p>',
|
||||
$item,
|
||||
$o->get($item,'title'),
|
||||
($x=$o->get($item,'ref')) ? sprintf('<abbr class="ps-2" title="%s"><i class="fas fa-comment-dots"></i></abbr>',$x) : '',
|
||||
$o->get($item,'desc'),
|
||||
)
|
||||
: $item;
|
||||
})->join('<br>') !!}
|
Reference in New Issue
Block a user