/**
* Edits or adds a lens type.
*
* @param bool|int $id
*
* @throws CHttpException
*/
public function actionEdit($id = false)
{
$admin = new Admin(OphInBiometry_LensType_Lens::model(), $this);
if ($id) {
$admin->setModelId($id);
}
$admin->setModelDisplayName('Lens types');
$admin->setEditFields(array('name' => 'text', 'description' => 'text', 'acon' => 'text', 'active' => 'checkbox'));
$admin->editModel();
}