Preparing column editor for backend requests, remove simple col editor and reuse one for both cases
This commit is contained in:
@@ -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', [
|
||||
|
||||
Reference in New Issue
Block a user