From: Pierre Habouzit (MadCoder Date: Mon, 2 May 2005 12:16:31 +0000 (+0000) Subject: diogenes update backport X-Git-Tag: xorg/old~142 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=328150f751c068171193a116b99ab758a283382d;p=platal.git diogenes update backport Patches applied: * opensource@polytechnique.org--2005/platal--release--0.9.5--patch-14 Jeremy, next time you do this, i'll beat you ;p git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-620 --- diff --git a/templates/table-editor.tpl b/templates/table-editor.tpl index 8ee2fc9..2b800e8 100644 --- a/templates/table-editor.tpl +++ b/templates/table-editor.tpl @@ -72,9 +72,9 @@ {/if} -{foreach from=$rows item=myrow}{assign var="myarr" value=$myrow[2]} +{foreach from=$rows item=myrow}{assign var="myarr" value=$myrow[1]} - {if $idsum}{$myrow[1]}{/if} + {if $idsum}{$myrow[0]}{/if} {foreach from=$vars key=mykey item=myval} {if $myval.sum} @@ -93,19 +93,25 @@ {if !$hideactions} {if !$readonly} - edit - delete + edit + delete {/if} - {foreach from=$myrow[3] item=myaction} + {foreach from=$myrow[2] item=myaction} {a lnk=$myaction} {/foreach} {/if} {/foreach} - +{if ($p_prev > -1) || ($p_next > -1)} + +{/if} + {else}
@@ -128,6 +134,7 @@ {if $myval.type=="password"}
(blank=no change){/if} + {if $myval.edit} {if $myval.type=="textarea"} {elseif $myval.type=="set"} @@ -145,6 +152,9 @@ {else} {/if} + {else} + {$myval.value|escape} + {/if} {/foreach}