X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Ftable-editor.tpl;h=7a0cbafdeb8bb685825d6cad049b96b9a58429e8;hb=852e6400e7b7dbc0c0d4c8b4e72ca009954056cb;hp=0bd0a41aaaa933cc18f3079396f0a890a17a6e7e;hpb=e8ddc3f28701273de2b5c0f822146ab2a39dea91;p=platal.git diff --git a/templates/table-editor.tpl b/templates/table-editor.tpl index 0bd0a41..7a0cbaf 100644 --- a/templates/table-editor.tpl +++ b/templates/table-editor.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2009 Polytechnique.org *} +{* Copyright (C) 2003-2011 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}