Use the same component to render internal attributes
This commit is contained in:
parent
1cc8681b5a
commit
8cbd4eaed5
@ -101,9 +101,8 @@ class Attribute implements \Countable, \ArrayAccess, \Iterator
|
|||||||
$this->lang_tags = collect();
|
$this->lang_tags = collect();
|
||||||
$this->oldValues = collect($values);
|
$this->oldValues = collect($values);
|
||||||
|
|
||||||
// No need to load our schema for internal attributes
|
$this->schema = (new Server)
|
||||||
if (! $this->is_internal)
|
->schema('attributetypes',$name);
|
||||||
$this->schema = (new Server)->schema('attributetypes',$name);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
# Should this attribute be hidden
|
# Should this attribute be hidden
|
||||||
|
@ -71,24 +71,9 @@
|
|||||||
|
|
||||||
<!-- Internal Attributes -->
|
<!-- Internal Attributes -->
|
||||||
<div class="tab-pane" id="internal" role="tabpanel">
|
<div class="tab-pane" id="internal" role="tabpanel">
|
||||||
<div class="row">
|
@foreach ($o->getInternalAttributes() as $ao)
|
||||||
<div class="col-12 offset-lg-2 col-lg-8">
|
<x-attribute-type :o="$ao"/>
|
||||||
<table class="table">
|
@endforeach
|
||||||
@foreach ($o->getInternalAttributes() as $ao)
|
|
||||||
<tr class="bg-light text-dark small">
|
|
||||||
<th class="w-25">
|
|
||||||
<abbr title="{{ $ao->description }}">{{ $ao->name }}</abbr>
|
|
||||||
</th>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="ps-5">
|
|
||||||
<x-attribute :edit="false" :o="$ao"/>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
@endforeach
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Debug -->
|
<!-- Debug -->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user