X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Ftable-editor.tpl;h=85e28f926b4f4e621288033807ced477ec941f81;hb=cb22cf2a3b34e4f263dcfb6b51396111f8d6b785;hp=fed0d38cadeb9fad4d2170380a92c649f91f3ee6;hpb=a6613b2efb9256648907e6a7d0427b518d995ccc;p=platal.git diff --git a/templates/table-editor.tpl b/templates/table-editor.tpl index fed0d38..85e28f9 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 *} @@ -40,15 +40,15 @@ action {/if} -{if !$readonly} +{if !$readonly and !$deleteonly} - Nouvelles entrées : ManuellementDepuis un CSV + Nouvelles entrées : ManuellementDepuis un CSV - {icon name=add title='nouvelle entrée'} + {icon name=add title='nouvelle entrée'} {/if} @@ -64,6 +64,8 @@ {$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} @@ -71,9 +73,11 @@ {/if}{/foreach} {if !$hideactions} + {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} {/if} @@ -89,7 +93,7 @@ {/if} {elseif $massadd} -{include file="include/csv-importer.tpl"} +{include core=csv-importer.tpl}

back @@ -98,13 +102,14 @@ {else}

+ {xsrf_token_field} @@ -154,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 + {if $id !== null} + modification de l'entrée {else} - nouvelle entrée + nouvelle entrée {/if}