X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Ftable-editor.tpl;h=bcdb6dbbef9a3e8ee38dfcdc8a3bb59eadb5891d;hb=faeb823b5ddb8e2613cfef9fd15b86a5d9a37890;hp=df4100fcba63703d20b409bc33b7ec489545612d;hpb=de61dbcf4475d1182220ae6ac1759d6a5bf7acbd;p=platal.git diff --git a/templates/table-editor.tpl b/templates/table-editor.tpl index df4100f..bcdb6db 100644 --- a/templates/table-editor.tpl +++ b/templates/table-editor.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2006 Polytechnique.org *} +{* Copyright (C) 2003-2010 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -34,17 +34,21 @@ {foreach from=$t->vars item=myval key=myvar}{if $myval.display} - + {/if}{/foreach} {if !$hideactions} {/if} -{if !$readonly} +{if !$readonly and !$deleteonly} - - + {/if} @@ -58,6 +62,10 @@ {/if} {if $myval.Type eq 'timestamp'} {$myrow.$myfield|date_format:"%x %X"} + {elseif $myval.Type eq 'checkbox'} + + {elseif $myval.Type eq 'ip_address'} + {$myrow.$myfield|uint_to_ip} {else} {$myrow.$myfield} {/if} @@ -65,9 +73,11 @@ {/if}{/foreach} {if !$hideactions} {/if} @@ -82,16 +92,24 @@

{/if} +{elseif $massadd} +{include core=csv-importer.tpl} + +

+back +

+ {else} + {xsrf_token_field}
{$myval.desc}{$myval.desc}{if $t->sortfield eq $myvar}{if $t->sortdesc}{icon name="bullet_arrow_down"}{else}{icon name="bullet_arrow_up"}{/if}{/if}action
nouvelle entrée - créer{icon name=add title='nouvelle entrée'} + + + Nouvelles entrées : ManuellementDepuis un CSV + + + {icon name=add title='nouvelle entrée'}
+ {if !$readonly and !$deleteonly} + {icon name=page_edit title='éditer'} + {/if} {if !$readonly} - {icon name=page_edit title='éditer'} - {icon name=delete title='supprimer'} + {icon name=delete title='supprimer'} {/if}
@@ -115,6 +133,8 @@ {elseif ($myval.Type eq 'textarea') or ($myval.Type eq 'varchar200')} + {elseif ($myval.Type eq 'checkbox')} + {else} {if $myval.Type eq 'timestamp'}jj/mm/aaaa hh:mm:ss{/if} @@ -139,4 +159,4 @@ {/if} -{* vim:set et sw=2 sts=2 sws=2: *} +{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}
{if $id} - modification de l'entrée + modification de l'entrée {else} - nouvelle entrée + nouvelle entrée {/if}