@use(App\Ldap\Entry) @extends('layouts.dn') @section('page_title') @include('fragment.dn.header',[ 'o'=>($o ?? $o=$server->fetch($dn)), 'langtags'=>($langtags=$o->getLangTags() ->flatMap(fn($item)=>$item->values()) ->unique() ->sort()) ]) @endsection @section('page_actions')
@if(($x=$o->getOtherTags())->count())
This entry has [{!! $x->flatten()->join(', ') !!}] tags used by [{!! $x->keys()->join(', ') !!}] that cant be managed by PLA. You can though manage those tags with an LDIF import.
@elseif(($x=$o->getLangMultiTags())->count())
This entry has multi-language tags used by [{!! $x->keys()->join(', ') !!}] that cant be managed by PLA. You can though manage those lang tags with an LDIF import.
@elseif(($x=$o->getLangTags())->count())
This entry has language tags used by [{!! $x->keys()->join(', ') !!}] that cant be managed by PLA yet. You can though manage those lang tags with an LDIF import.
@endif
@endsection @section('main-content')
@csrf
@foreach($langtags as $tag)
@switch($tag) @case(Entry::TAG_NOTAG) @foreach ($o->getVisibleAttributes($tag) as $ao) @endforeach @break @case('+')
It is not possible to create new language tags at the moment. This functionality should come soon.
You can create them with an LDIF import though.
@break @default @foreach ($o->getVisibleAttributes($langtag=sprintf('lang-%s',$tag)) as $ao) @endforeach @endswitch
@endforeach
@include('fragment.dn.add_attr')
@foreach ($o->getInternalAttributes() as $ao) @endforeach
@endsection @section('page-modals') @endsection @section('page-scripts') @append