new table form html, css

This commit is contained in:
2018-07-21 18:06:37 +02:00
parent ba721592cd
commit 3242ae9cbe
26 changed files with 749 additions and 148 deletions
+17 -3
View File
@@ -14,9 +14,9 @@ class TableController extends Controller
public function create()
{
$exampleColSpec =
"string, latin, Latin Name\n".
"string, common, Common Name\n".
"int, lifespan, Lifespan";
"latin, string, Latin Name\n".
"common, string, Common Name\n".
"lifespan, int, Lifespan (years)";
$exampleData =
"Mercenaria mercenaria, hard clam, 40\n" .
@@ -27,4 +27,18 @@ class TableController extends Controller
compact('exampleColSpec', 'exampleData')
);
}
public function storeNew(Request $request)
{
$this->validate($request, [
'table-name' => 'required',
'table-descr' => 'string|nullable',
'license' => 'string|nullable',
'upstream' => 'string|nullable',
'col-spec' => 'required',
'row-data' => 'string|nullable',
]);
return "Ok.";
}
}