From 292d088a7490c9123c73e466f24836c4daee3e89 Mon Sep 17 00:00:00 2001 From: glmdev Date: Sun, 10 Feb 2019 01:59:05 -0600 Subject: [PATCH] add frequency control to dynamic config --- .idea/workspace.xml | 42 ++++++++++++++++------------ resources/views/device/add.blade.php | 14 ++++++++++ routes/web.php | 1 + 3 files changed, 39 insertions(+), 18 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 7a2c0e3..6a3f4fe 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,10 +2,7 @@ - - - - + - - + @@ -390,7 +396,7 @@ - + @@ -512,13 +518,6 @@ - - - - - - - @@ -561,10 +560,17 @@ + + + + + + + - + diff --git a/resources/views/device/add.blade.php b/resources/views/device/add.blade.php index b30c70e..a18d509 100644 --- a/resources/views/device/add.blade.php +++ b/resources/views/device/add.blade.php @@ -31,6 +31,20 @@ +
+ + +
+ + + @if ($errors->has('freq')) + + {{ $errors->first('freq') }} + + @endif +
+
+
diff --git a/routes/web.php b/routes/web.php index fe3b3a4..0c6695e 100644 --- a/routes/web.php +++ b/routes/web.php @@ -195,6 +195,7 @@ Route::post('/device/add', function(\Illuminate\Http\Request $request){ 'e_hat' => $request->get('ehat'), 'lot_id' => $request->get('lotid'), 'stream' => $request->get('camera'), + 'frequency' => $request->get('freq') ]); return redirect(url('/device/get/'.str_replace(' ', '-', $request->get('code'))));