X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fadmin%2Fvalidation.tpl;h=d0135a74133714e71d88c0b4062ebc1350336858;hb=e86e920ff705fa80cc293df02be9e8e26a50884e;hp=6f4f8330bb05bc7fb26f02a648def55add2e3e58;hpb=3379baa5612d8cd0ecf12a6e7859ac6217d627da;p=platal.git diff --git a/templates/admin/validation.tpl b/templates/admin/validation.tpl index 6f4f833..d0135a7 100644 --- a/templates/admin/validation.tpl +++ b/templates/admin/validation.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2010 Polytechnique.org *} +{* Copyright (C) 2003-2011 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -37,7 +37,7 @@ function toggleField(name, id, obj) { {iterate item=valid from=$vit} {assign var=type value=$valid->type} -{if !$hide_requests[$type]} +{if !t($hide_requests[$type]) && !($valid->requireAdmin && !$isAdmin)}
@@ -46,12 +46,17 @@ function toggleField(name, id, obj) { - {if $valid->profile && !$valid->userIsProfileOwner} + {if t($valid->profile) && !$valid->userIsProfileOwner}
Demandeur : - - {$valid->user->fullName()} ({$valid->user->promo()}) + {if $valid->user->hasProfile()} + {assign var="profile" value=$valid->user->profile()} + + {/if} + {$valid->user->fullName("promo")} + {if $valid->user->hasProfile()} + {/if}
Profil concerné : @@ -189,7 +194,7 @@ function toggleField(name, id, obj) {
{foreach from=$categories item=type} -
+
{/foreach}