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 : Manuellement • Depuis un CSV
+ Nouvelles entrées : Manuellement • Depuis 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}