From: Aymeric Augustin Date: Sun, 9 Nov 2008 13:52:29 +0000 (+0100) Subject: Add a 'deleteonly' flag to pltableeditor X-Git-Tag: core/1.0.0~6 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=7b64cc7438eba834c765eef056628e2f1e6ea823;p=platal.git Add a 'deleteonly' flag to pltableeditor --- diff --git a/templates/table-editor.tpl b/templates/table-editor.tpl index e16826e..3915794 100644 --- a/templates/table-editor.tpl +++ b/templates/table-editor.tpl @@ -40,7 +40,7 @@ action {/if} -{if !$readonly} +{if !$readonly and !$deleteonly} @@ -73,8 +73,10 @@ {/if}{/foreach} {if !$hideactions} - {if !$readonly} + {if !$readonly and !$deleteonly} {icon name=page_edit title='éditer'} + {/if} + {if !$readonly} {icon name=delete title='supprimer'} {/if}