<?php
//$Id$ 
//gen openMairie le 22/09/2025 16:21

require_once "../gen/obj/habillage.class.php";

class habillage extends habillage_gen {

    /**
     * SETTER_FORM - setType.
     *
     * @return void
     */
    function setType(&$form, $maj) {
        parent::setType($form, $maj);
        // Gestion du champs geom
        $form->setType('geom','hidden');
        $form->setType("pgeom", "hidden");
        if ($this->f->getParameter("option_localisation") == "sig_interne") {
            if ($maj == 0 || $maj == 1 || $maj == 3) {
                $form->setType('geom', 'geom');
            }
        }
    }
}
