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(); Xform::addCancel($param['backUrl']); // Message bottom //Xform::addMessage('Ceci est un message'); ?>
Xform::addSelect('statussocial_id', Statussocial::lists('libelle', 'id'), 'Status', $datas->statussocial_id, 3); Xform::addSelect('langue_id', Langue::lists('libelle', 'id'), 'Langue', $datas->langue_id, 2); Xform::endRow(); Xform::startRow(); Xform::addText('societe', 'Société', $datas->societe, 4); Xform::addText('numtva', 'N° de TVA', $datas->numtva, 3); Xform::endRow(); Xform::startRow(); Xform::addText('adr1', 'Adresse', $datas->adr1, 4); Xform::addText('adr2', 'Adresse 2', $datas->adr2, 4); Xform::endRow(); Xform::startRow(); Xform::addText('Tel1', 'Téléphone 1', $datas->tel1, 3); Xform::addText('Tel2', 'Téléphone 2', $datas->tel2, 3); Xform::endRow(); Xform::startRow(); Xform::addText('cpost', 'Code postal', $datas->cpost, 2); Xform::addText('ville', 'Ville', $datas->ville, 4); Xform::addSelect('nation_id', Nation::lists('libelle', 'id'), 'Pays', $datas->nation_id, 2); Xform::endRow(); // Buttons Xform::addSubmit(); Xform::addCancel($param['backUrl']); // Message bottom //Xform::addMessage('Ceci est un message'); ?> <!-- Close Form --> {{ Xform::show($errors,'left') }} {{ closeContent() }}