stub of the row editor

This commit is contained in:
2018-08-05 14:45:43 +02:00
parent e17548e5e7
commit bb8bc459dc
34 changed files with 724 additions and 175 deletions
+3 -4
View File
@@ -4,24 +4,23 @@
@php
/** @var object[] $columns */
/** @var \App\Tables\Changeset[] $changeset */
/** @var \App\Models\Row[] $rows */
@endphp
<table class="table table-hover table-sm">
<thead>
<tr>
<th>_id</th>
@foreach($columns as $col)
<th>{{$col->name}} ("{{ $col->title }}") [ {{$col->id}} ]</th>
<th>{{ $col->title }}</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach($rows as $row)
<tr>
<td>{{ $row->_id }}</td>
@foreach($columns as $col)
<td data-id="{{ $row->_id }}">{{ $row->{$col->name} }}</td>
<td>{{ $row->{$col->name} }}</td>
@endforeach
</tr>
@endforeach