After few experiments :
If we remove a line above, => {include file="button.tpl.htm"
text="valid"....
It works.
Do you made changes in { and " interpretation ?
Here's the complete tpl code :
<form name="elmt,insert" id="elmt,insert">
<table style="width:100%">
<tfoot>
<tr>
<td colspan="2">
<input type="hidden" name="elmt[id_parent]" id="elmt[id_parent]"
value="{$smarty.post.id_parent}" />
</td>
</tr>
<tr>
<td colspan="2">
<div class="submit" id="submit">
{include file="button.tpl.htm" text="valid" onclick=" ATF.insert
('elmt,insert' , { onComplete: function (e) { new ATF.tpl2div
('formulaire,addNewElmt.ajax,id_gep_projet=
{$smarty.post.id_gep_projet}', 'id_elmt='+e.result+'&id_gep_projet=
{$smarty.post.id_gep_projet}&id_parent={$smarty.post.id_pe_parent}');
Modalbox.hide(); ATF.adjustContainer(); } });"}
{include file="button.tpl.htm" text="retour"
icone="back" onclick="Modalbox.hide();"}
</div>
</td>
</tr>
</tfoot>
<tbody>
{foreach from=$current_class->colonnes.quick_insert
key=key item=item}
<tr>
{if ATF::$html->template_exists("attr-{$key}-
update.tpl.htm")} {* Afin de pouvoir gérer un template particulier
pour un champ ! *}
{include file="attr-{$key}-update.tpl.htm" key=
$key item=$item}
{else}
{include file="generic_field.tpl.htm" key=$key
item=$item}
{/if}
</tr>
{foreachelse}
Aucun champs elmt->colonnes.primary
{/foreach}
</tbody>
</table>
</form>