some initial work on New Table page

This commit is contained in:
2018-07-19 22:30:32 +02:00
parent eeaa837c29
commit ba721592cd
4 changed files with 111 additions and 4 deletions
+13 -1
View File
@@ -13,6 +13,18 @@ class TableController extends Controller
*/
public function create()
{
return view('table.create');
$exampleColSpec =
"string, latin, Latin Name\n".
"string, common, Common Name\n".
"int, lifespan, Lifespan";
$exampleData =
"Mercenaria mercenaria, hard clam, 40\n" .
"Magallana gigas, pacific oyster, 30\n" .
"Patella vulgata, common limpet, 20";
return view('table.create',
compact('exampleColSpec', 'exampleData')
);
}
}