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
22159b5
..
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 *}
@@
-25,36
+25,36
@@
<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' />