phpldapadmin/resources/views/components/attribute.blade.php

27 lines
895 B
PHP
Raw Normal View History

<!-- $o=Attribute::class -->
2023-09-02 10:50:54 +00:00
<div class="row pt-2">
<div class="col-1"></div>
<div class="col-10 p-2">
2023-03-31 04:55:08 +00:00
<div id="{{ $o->name_lc }}">
2023-09-02 10:50:54 +00:00
@foreach (old($o->name_lc,$new ? [NULL] : $o->values) as $value)
2023-03-31 04:55:08 +00:00
@if ($edit && ! $o->is_rdn)
2023-04-12 13:18:26 +00:00
<div class="input-group has-validation">
2023-09-02 10:50:54 +00:00
<input type="text" class="form-control @if($e=$errors->get($o->name_lc.'.'.$loop->index))is-invalid @endif mb-1 @if($o->values->search($value) === FALSE) border-focus @endif" name="{{ $o->name_lc }}[]" value="{{ $value }}" placeholder="{{ ! is_null($x=Arr::get($o->values,$loop->index)) ? $x : '['.__('NEW').']' }}" @if (! $new)readonly="true" @endif">
2023-04-12 13:18:26 +00:00
<div class="invalid-feedback pb-2">
@if($e)
{{ join('|',$e) }}
@endif
</div>
</div>
2023-09-02 10:50:54 +00:00
2023-03-31 04:55:08 +00:00
@else
2023-09-02 10:50:54 +00:00
{{ $value }}
2023-03-31 04:55:08 +00:00
@endif
@endforeach
</div>
2023-09-02 10:50:54 +00:00
@include('components.attribute.widget.options')
2023-03-31 04:55:08 +00:00
</div>
2023-09-02 10:50:54 +00:00
</div>