Handle no attribute tags at an Attribute::class level, added form/disabled components
This commit is contained in:
8
resources/views/components/form/disabled/input.blade.php
Normal file
8
resources/views/components/form/disabled/input.blade.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<!-- $o=Attribute::class -->
|
||||
<x-attribute.layout :edit="false" :new="false" :detail="true" :o="$o">
|
||||
@foreach(old($o->name_lc,($new ?? FALSE) ? [NULL] : $o->values) as $value)
|
||||
<div class="input-group">
|
||||
<input type="text" @class(['form-control','mb-1']) name="{{ $o->name_lc }}[]" value="{{ $value }}" @disabled(true)>
|
||||
</div>
|
||||
@endforeach
|
||||
</x-attribute.layout>
|
Reference in New Issue
Block a user