<?php
//print_r($_POST);
//$filter = ['id' => $_GET['econid']];
//print_r($user);
if (isset($_POST) && $_POST != []) {
    $data = $_POST;
    $data['postedBy'] = $user->id;
    //echo json_encode($data,JSON_NUMERIC_CHECK);
    $response = $auth->getApiDataFilter('set/partner/newcity', $data);
}
?>
<div class="row card">
    <div class="col-12 text-center">
        <button type="button" class="btn btn-block bg-gradient-success btn-lg savedata">Mentés</button>
    </div>
</div>
<form id="sendForm" class="row" method="POST">
    <div class="col-lg-12 col-sm-12">
        <div class="card">
            <div class="card-header">
                <h4>Új megye</h4>
            </div>
            <div class="card-body">
                <div class="row">
                    <div class="col-lg-4 div-sm-6">
                        <h5>Megye neve</h5>
                    </div>
                    <div class="col-lg-8 div-sm-6">
                        <input value="" class="form-control" name="name" type="text"/>
                    </div>
                </div>
            </div>
        </div>
    </div> 
</form>
<?php
addJS("edit.js");
?>