projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge commit 'origin/fusionax' into account
[platal.git]
/
templates
/
xnetlists
/
alias-admin.tpl
diff --git
a/templates/xnetlists/alias-admin.tpl
b/templates/xnetlists/alias-admin.tpl
index
1ffef2b
..
2110f76
100644
(file)
--- a/
templates/xnetlists/alias-admin.tpl
+++ b/
templates/xnetlists/alias-admin.tpl
@@
-1,6
+1,6
@@
{**************************************************************************}
{* *}
{**************************************************************************}
{* *}
-{* Copyright (C) 2003-200
7
Polytechnique.org *}
+{* Copyright (C) 2003-200
9
Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
@@
-20,41
+20,41
@@
{* *}
{**************************************************************************}
{* *}
{**************************************************************************}
-<p>[<a href='{$platal->ns}lists'>retour
à
la page des listes</a>]</p>
+<p>[<a href='{$platal->ns}lists'>retour
à
la page des listes</a>]</p>
<h1>Membres de {$platal->argv[1]}</h1>
<table class='tinybicol'>
<h1>Membres de {$platal->argv[1]}</h1>
<table class='tinybicol'>
- {if $mem
->total()
}
- {
iterate
from=$mem item=m}
+ {if $mem
|@count
}
+ {
foreach
from=$mem item=m}
<tr>
<td>
<tr>
<td>
- {if $m.
nom
}
+ {if $m.
user
}
{if $m.admin}<strong>{/if}
{if $m.admin}<strong>{/if}
- {if $m.alias}<a href="https://www.polytechnique.org/profile/{$m.alias}" class="popup2">{/if}
- {$m.prenom} {$m.nom}
- {if $m.alias}</a>{/if}
+ <a href="https://www.polytechnique.org/profile/{$m.user->login()}" class="popup2">{$m.user->fullName()}</a>
{if $m.admin}</strong>{/if}
{else}
{if $m.admin}</strong>{/if}
{else}
- {$m.
redirect
}
+ {$m.
email
}
{/if}
</td>
<td class="right">
{/if}
</td>
<td class="right">
+ {if $m.user}
{if $m.admin}<strong>{/if}
{if $m.admin}<strong>{/if}
- {$m.
promo
}
+ {$m.
user->promo()
}
{if $m.admin}</strong>{/if}
{if $m.admin}</strong>{/if}
+ {/if}
</td>
<td class="center">
</td>
<td class="center">
- <a href='{$platal->ns}alias/admin/{$platal->argv[1]}?del_member={$m.
redirect|urlencode
}'>
+ <a href='{$platal->ns}alias/admin/{$platal->argv[1]}?del_member={$m.
email|urlencode}&token={xsrf_token
}'>
{icon name=delete title='retirer membre'}
</a>
</td>
</tr>
{icon name=delete title='retirer membre'}
</a>
</td>
</tr>
- {/
iterate
}
+ {/
foreach
}
{else}
<tr>
<td colspan="3">
{else}
<tr>
<td colspan="3">
- <em>aucun membre
s ...</
em>
+ <em>aucun membre
…<
em>
</td>
</tr>
{/if}
</td>
</tr>
{/if}
@@
-64,6
+64,7
@@
<tr>
<td colspan="3" class="center">
<form method="post" action="{$platal->ns}alias/admin/{$platal->argv[1]}">
<tr>
<td colspan="3" class="center">
<form method="post" action="{$platal->ns}alias/admin/{$platal->argv[1]}">
+ {xsrf_token_field}
<div>
<input type='text' name='add_member' />
<div>
<input type='text' name='add_member' />
@@
-74,4
+75,4
@@
</tr>
</table>
</tr>
</table>
-{* vim:set et sw=2 sts=2 sws=2: *}
+{* vim:set et sw=2 sts=2 sws=2
enc=utf-8
: *}