forked from tr4ck3ur/jm2l
Ensure we don't overwrite staff profile, then remove wifi password awaiting valid one
This commit is contained in:
@@ -4,15 +4,21 @@
|
||||
|
||||
##<form id="ProfilForm" action="javascript:DoPost('/2015/modal/Place/${form.place_id.data}');">
|
||||
% if uprofil!=request.user and request.user.uid==1:
|
||||
<form id="ProfilForm" action="/MesJM2L?user=${uprofil.uid}" method="POST">
|
||||
<form id="ProfilForm" action="#" method="POST">
|
||||
% else:
|
||||
<form id="ProfilForm" action="/MesJM2L" method="POST">
|
||||
% endif
|
||||
|
||||
<div class="row-fluid">
|
||||
<div class="span8">
|
||||
% if uprofil!=request.user and request.user.Staff==1:
|
||||
<a href="/sign/jm2l/${uprofil.my_hash}">Se connecter "en tant que" ${uprofil.nom} ${uprofil.prenom}</a> -
|
||||
<a href="/user/${uprofil.slug}">Son profil public</a><br>
|
||||
% else:
|
||||
<a href="/sign/jm2l/${uprofil.my_hash}">Mon lien de connection</a> -
|
||||
<a href="/user/${request.user.slug}">Mon profil public</a><br>
|
||||
% endif
|
||||
|
||||
<h3>${profil_form.prenom.data} ${profil_form.nom.data}</h3>
|
||||
<%
|
||||
DicFormA = {
|
||||
@@ -69,10 +75,14 @@ DicForm2 = {
|
||||
<dl>
|
||||
<dt>SSID</dt>
|
||||
<dd>Unice-HotSpot</dd>
|
||||
<dt>Votre utilisateur:</dt>
|
||||
<!--
|
||||
<dt>Votre utilisateur:</dt>
|
||||
<dd>${uprofil.wifi_user}</dd>
|
||||
<dt>Le mot de passe:</dt>
|
||||
<dd>${uprofil.wifi_pass}</dd>
|
||||
-->
|
||||
<dt>Vos identifiants:</dt>
|
||||
<dd>Nous n'avons pas encore l'information</dd>
|
||||
</dl>
|
||||
<a href="https://wifi.unice.fr/">Plus de détails ...</a>
|
||||
</div>
|
||||
@@ -158,7 +168,9 @@ ${helpers.DisplayRespForm(profil_form, DicFormB)}
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="5" style="text-align:center;line-height: 3em;">
|
||||
<span class="add btn btn-mini btn-primary"><i class="icon-plus-sign icon-white"></i> Je fais partie de ...</span>
|
||||
% if uprofil==request.user:
|
||||
<span class="add btn btn-mini btn-primary"><i class="icon-plus-sign icon-white"></i> Je fais partie de ...</span>
|
||||
% endif
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
@@ -167,7 +179,14 @@ ${helpers.DisplayRespForm(profil_form, DicFormB)}
|
||||
</fieldset>
|
||||
|
||||
<div class="span2 offset5">
|
||||
% if uprofil!=request.user and request.user.Staff==1:
|
||||
En tant que Staff des JM2L, <br />
|
||||
Je me connecte "en tant que" <br />
|
||||
<a href="/sign/jm2l/${uprofil.my_hash}"> ${uprofil.nom} ${uprofil.prenom}</a><br />
|
||||
pour modifier sa fiche ...
|
||||
% else:
|
||||
<input class="btn btn-primary" type="submit" value="Enregistrer !" />
|
||||
% endif
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user