X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=templates%2Ftable-editor.tpl;h=ad792bff2137533c46d04ef7fab1c5c824337240;hb=504647c51aac2a34a4c3f11f33cc4fa6eecdb64f;hp=0bd0a41aaaa933cc18f3079396f0a890a17a6e7e;hpb=3ecd0a882aebbb539b4b0e507a360e961cd51c63;p=platal.git diff --git a/templates/table-editor.tpl b/templates/table-editor.tpl index 0bd0a41..ad792bf 100644 --- a/templates/table-editor.tpl +++ b/templates/table-editor.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2009 Polytechnique.org *} +{* Copyright (C) 2003-2010 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -60,6 +60,9 @@ {if $myfield eq $t->idfield} {assign var="idval" value=$myrow.$myfield} {/if} + {if $t->idfield2 && $myfield eq $t->idfield2} + {assign var="idval2" value=$myrow.$myfield} + {/if} {if $myval.Type eq 'timestamp'} {$myrow.$myfield|date_format:"%x %X"} {elseif $myval.Type eq 'checkbox'} @@ -77,7 +80,7 @@ {icon name=page_edit title='éditer'} {/if} {if !$readonly} - {icon name=delete title='supprimer'} + {icon name=delete title='supprimer'} {/if} {/if} @@ -106,8 +109,8 @@
- {if $id} - modification de l'entrée + {if $id !== null} + modification de l'entrée {else} nouvelle entrée {/if}