Canvas formulaire module service

Bonjour mon but est de créer un module qui modifie le comportement du module service , pour se faire j’ai utilisé les canvas , dans la documentation il dise qu’en copiant collant le fichier card du module service le formulaire doit apparaître or chez moi non … lorsque je print"blabla" c bon idem avec certain du formulaire seulement mon but est de conserver le fonctionnement de base du formulaire .Qu’est que je dois je dois garder et enlever dans le fichier card car je doute qu’en laissant du html simple cela crée un service en base de donnée .

<?php $object=$GLOBALS['object'];

$statutarray=array('1' => $langs->trans("OnSell"), '0' => $langs->trans("NotOnSell"));
?>

<!-- BEGIN PHP TEMPLATE CREATE.TPL -->

<?php print_fiche_titre($langs->trans("Service")); ?>

<?php dol_htmloutput_errors($this->control->tpl['error'],$this->control->tpl['errors']); ?>

<?php dol_htmloutput_errors($GLOBALS['mesg'],$GLOBALS['mesgs']); ?>
<?php  $object->label = GETPOST('label'); ?>
<form action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="post">
<input type="hidden" name="token" value="<?php echo $_SESSION['newtoken']; ?>">
<input type="hidden" name="action" value="add">
<input type="hidden" name="type" value="1">
<input type="hidden" name="canvas" value="<?php echo $canvas; ?>">

<table class="border allwidth">

<tr>
<td class="fieldrequired" width="20%"><?php echo $langs->trans("Ref"); ?></td>
<td><input name="ref" size="40" maxlength="32" value="<?php echo $object->ref; ?>">
<?php if ($_error == 1) echo $langs->trans("RefAlreadyExists"); ?>
</td></tr>

<tr>
<td class="fieldrequired"><?php echo $langs->trans("Label"); ?></td>
<td><input name="label" size="40" value="<?php echo $object->label ; ?>"></td>
</tr>
<?php/* echo "<pre>";  var_dump($_POST);echo "</pre>"; ?*/>
<tr>
<td class="field"><?php echo $langs->trans("Status").' ('.$langs->trans("Sell").')'; ?></td>
<td><?php echo $form->selectarray('statut',$statutarray,$object->status); ?></td>
</tr>

<tr>
<td class="fieldrequired"><?php echo $langs->trans("Status").' ('.$langs->trans("Buy").')'; ?></td>
<td><?php echo $form->selectarray('statut_buy',$statutarray,$object->status_tobuy); ?></td>
</tr>

<tr><td><?php echo $langs->trans("Duration"); ?></td>
<td><input name="duration_value" size="6" maxlength="5" value="<?php echo $object->duration_value; ?>"> &nbsp;
<?php echo $object->duration_unit; ?>
</td></tr>



</table>
<script> 
/*alert("ok");*/
</script>
<br>

<?php if (! $conf->global->PRODUIT_MULTIPRICES) { ?>

<table class="border allwidth">

<tr><td><?php echo $langs->trans("SellingPrice"); ?></td>
<td><input name="price" size="10" value="<?php echo $object->price; ?>">
<?php echo $object->price_base_type; ?>
</td></tr>

<tr><td><?php echo $langs->trans("MinPrice"); ?></td>
<td><input name="price_min" size="10" value="<?php echo $object->price_min; ?>">
</td></tr>

<tr><td width="20%"><?php echo $langs->trans("VATRate"); ?></td><td>
<?php echo $object->tva_tx; ?>
</td></tr>

</table>

<br>
<?php } ?>

<div align ="center"><input type="submit" class="button" value="<?php echo $langs->trans("Create"); ?>"></div>

</form>
1 « J'aime »

voila un formulaire de création de service qui marche et modifié cependant est ce que quelqu’un sais ou apparaisse les ajouter via l’extrafield dans un module .car je voudrais mettre des champs déroulant dans le formulaire