jt-espace Posted November 5, 2013 Share Posted November 5, 2013 Bonjour, Comment rendre un champ de type text non-modifiable (grisé) dans un renderForm ? Dans mon exemple (label Circuit), l'id s'affiche bien mais n'est pas grisé. public function renderForm() { // loads current warehouse if (!($obj = $this->loadObject(true))) return; $this->fields_form = array( 'legend' => array( 'title' => $this->l('Ajout d\'une activité'), 'image' => '../img/admin/bus-icon.png' ), 'input' => array( array( 'type' => 'hidden', 'name' => 'id_address', ), array( 'type' => 'hidden', 'name' => 'id_product', ), array( 'type' => 'text', 'label' => $this->l('Circuit:'), 'name' => 'id_product', ), ... Merci à vous. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now