X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Ftable-editor.tpl;h=85e28f926b4f4e621288033807ced477ec941f81;hb=7da01959a76d86cfe55e2062351f46f58aa02418;hp=c4b376db9f6788830263a6d6bce110ebdf8e2f7a;hpb=2ce6d1a63b8a0943937aac9ee21a71ccb35b7c96;p=platal.git
diff --git a/templates/table-editor.tpl b/templates/table-editor.tpl
index c4b376d..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,11 +40,15 @@
action |
{/if}
-{if !$readonly}
+{if !$readonly and !$deleteonly}
- nouvelle entrée |
-
- créer{icon name=add title='nouvelle entrée'}
+ |
+
+ Nouvelles entrées : Manuellement • Depuis un CSV
+
+ |
+
+ {icon name=add title='nouvelle entrée'}
|
{/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 !$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}
@@ -82,16 +92,24 @@
{/if}
+{elseif $massadd}
+{include core=csv-importer.tpl}
+
+
+back
+
+
{else}