// Hidden Xform::startRow('hidden'); Xform::addText('_token', 'x', Session::getToken(), 2); Xform::addText('id', 'ID', $datas->id, 2); Xform::addText('backUrl', '', $param['backUrl']); Xform::addText('user_id', 'USER_ID', Auth::user()->id, 1); Xform::endRow(); // Get Fields Xform::startRow(); Xform::addText('nom', 'Nom', $datas->nom, 4); Xform::addText('prenom', 'Prénom', $datas->prenom, 4); Xform::addDate('naissance', 'Date de naissance', $datas->naissance, 4); Xform::endRow(); Xform::startRow(); Xform::addSelect('nation_id', Nation::lists('libelle', 'id'), 'Nationalité', $datas->nation_id, 3); Xform::addSelect('langue_id', Langue::lists('libelle', 'id'), 'Langue', $datas->langue_id, 3); Xform::addText('Tel1', 'Téléphone', $datas->tel1, 3); Xform::endRow(); Xform::startRow(); Xform::addSelect('selectNation_id', Nation::lists('libelle', 'id'), 'Pays', $datas->club->region->nation->id, 3); Xform::addSelect('region_id', Region::listRegionsOneNation($datas->club->region->nation->id), 'Region', $datas->club->region->id, 3); Xform::addSelect('club_id', Club::listClubsOneRegion($datas->club->region->id), 'Club', $datas->club_id, 4); Xform::endRow(); Xform::startRow(); Xform::addText('licence', 'N° licence', $datas->licence, 3); Xform::addSelect('statusplayer_id', Statusplayer::lists('libelle', 'id'), 'Status', $datas->statusplayer_id, 2); Xform::addText('hcp', 'Hcp (index)', $datas->hcp, 2); Xform::addSelect('sexe_id', Sexe::lists('libelle', 'id'), 'Cat', $datas->sexe_id, 2); Xform::endRow(); // Buttons Xform::addSubmit();