Commit 8fdd8692 authored by tatarp's avatar tatarp
Browse files

new

parent ed4bf27e
......@@ -201,10 +201,8 @@ class HomepageController extends Controller
$cities = \DB::table("cities")->pluck("name", "id");
$address = Address::find($id);
// return \View::make('homepage.form-test', compact('address'), array('title' => 'Homepage:form-edit', "dataSelect" => $cities));
return \View::make('homepage.form-test', compact('address'), array('title' => 'Homepage:form-edit', 'id' => $id, "dataSelect" => $cities));
//return view('homepage.form-test', array('title' => 'Homepage:form-edit', 'id' => $id, "dataSelect" => $cities));
return \View::make('homepage.form-test', array('title' => 'Homepage:form-edit', "dataSelect" => $cities, "address"=>$address));
}
}
......@@ -17,6 +17,7 @@
Form test
</div>
<div class="card-body">
{{ Form::model($address, ['route'=>'homepage_form_edit','method'=>'POST']) }}
<form name="add-blog-post-form" id="add-blog-post-form" method="post" action="{{url('form-add')}}">
@csrf
{{-- {{$errors}}--}}
......@@ -27,6 +28,7 @@
</div>
@endforeach
@endif
<div class="form-group">
<label for="name" class="form-label mt-4">Jmeno</label>
{{Form::text("name", "", array("class"=>"form-control", "placeholder"=>"Vypln jmeno"))}}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment