X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Ftable-editor.tpl;h=0bd0a41aaaa933cc18f3079396f0a890a17a6e7e;hb=a7f778a593a0a7e168a7112ec28cb84d032adaf3;hp=0d49beb99b4548ef613ab6dc0a9779c5d45c1197;hpb=c072c7e848d9e4e7379df3a2b7326d49b9fdac0c;p=platal.git diff --git a/templates/table-editor.tpl b/templates/table-editor.tpl index 0d49beb..0bd0a41 100644 --- a/templates/table-editor.tpl +++ b/templates/table-editor.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2006 Polytechnique.org *} +{* Copyright (C) 2003-2009 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}{if $t->sortfield eq $myvar}{/if}{$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}