Preparing column editor for backend requests, remove simple col editor and reuse one for both cases

This commit is contained in:
2018-08-08 22:32:25 +02:00
parent 7aca9ded60
commit 9ca3b93847
8 changed files with 359 additions and 329 deletions
+3 -3
View File
@@ -85,9 +85,9 @@ class TableController extends Controller
$columns = Column::columnsFromJson([
// fake 'id' to satisfy the check in Column constructor
['name' => 'latin', 'type' => 'string', 'title' => 'Latin Name'],
['name' => 'common', 'type' => 'string', 'title' => 'Common Name'],
['name' => 'lifespan', 'type' => 'int', 'title' => 'Lifespan (years)']
['id' => 1, 'name' => 'latin', 'type' => 'string', 'title' => 'Latin Name'],
['id' => 2, 'name' => 'common', 'type' => 'string', 'title' => 'Common Name'],
['id' => 3, 'name' => 'lifespan', 'type' => 'int', 'title' => 'Lifespan (years)']
]);
return view('table.create', [