Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/deleteperson'
Browse files Browse the repository at this point in the history
Conflicts:
	docs/bugs.org
  • Loading branch information
sylvainbarbot committed Sep 13, 2016
2 parents 2669260 + 8836e54 commit 8c420d9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
6 changes: 5 additions & 1 deletion docs/bugs.org
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@

[ ] Impossible d'ajouter une image sur un subevent en production (Sitti) => Pas reproduit en attente de voir avec Sitti.
[ ] avec le wysiwyg sur les addsv qui s'active au clic c'est chiant, tu es obligé de cliquer deux fois dans la zone description

[ ] Je me dis participant d'un evénénement => on me dit que j'été invité par moi même et on me demande de confirmer ma participation ????
[ ] Bras Panon => à san franciso ?
[ ] Erreur sur les projets de Fabienne

>>>>>>> origin/deleteperson
** Bugs relevés pas le ND : https://www.communecter.org/#comment.index.type.actionRooms.id.57c847ac40bb4ebd0efb8257
[ ] Dans son profil>editer : on peut changer d'email, si on change d'email, ca change le login, sans activation, du coup si on se trompe en tapant le nouvel email, et bien plus possible de retrouver son mot de passe, en cas d'oubli.
[ ] Le partage de lien n'est pas efficace : quand on met un lien il ne prend pas la vignette, le titre, et la description de la page ciblée, et le lien n'est pas cliquable
Expand Down
19 changes: 9 additions & 10 deletions views/default/directoryTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,20 +133,19 @@ function buildDirectoryLine( $e, $collection, $type, $icon, $moduleId, &$tags, &

$actions .= '<li><a href="javascript:;" data-id="'.$id.'" class="margin-right-5 switch2UserThisBtn"><span class="fa-stack"><i class="fa fa-user fa-stack-1x"></i><i class="fa fa-eye fa-stack-1x stack-right-bottom text-danger"></i></span> Switch to this user</a> </li>';

$actions .= '<li><a href="javascript:;" data-id="'.$id.'" data-type="'.$type.'" class="margin-right-5 deleteThisBtn"><i class="fa fa-times text-red"></i>Delete</a> </li>';
//TODO
$actions .= '<li><a href="javascript:;" data-id="'.$id.'" data-type="'.$type.'" class="margin-right-5 banThisBtn"><i class="fa fa-times text-red"></i> TODO : Ban</a> </li>';
$actions .= '<li><a href="javascript:;" data-id="'.$id.'" data-type="'.$type.'" class="margin-right-5 deleteThisBtn"><i class="fa fa-times text-red"></i> TODO : Delete</a> </li>';
} else if( $type == Organization::CONTROLLER )
{

} else if( $type == Organization::CONTROLLER ) {

}
$actions .= '<li><a href="javascript:;" data-id="'.$id.'" data-type="'.$type.'" class="margin-right-5 deleteThisBtn"><i class="fa fa-times text-red"></i>Delete</a> </li>';
}

/* **************************************
* TYPE + ICON
***************************************** */
$strHTML = '<tr id="'.$collection.(string)$id.'">'.
$strHTML = '<tr id="'.$type.(string)$id.'">'.
'<td class="'.$collection.'Line '.$classes.'">'.
'<a href="'.Yii::app()->createUrl('/'.$moduleId.'/'.$type.'/dashboard/id/'.$id).'">';
if ($e && isset($e["imagePath"])){
Expand Down Expand Up @@ -447,7 +446,7 @@ function(result)
{
if ( data && data.result ) {
toastr.info("Switched user!!");
window.location.href = baseUrl+"/"+moduleId;
//window.location.href = baseUrl+"/"+moduleId;
} else {
toastr.error("something went wrong!! please try again.");
}
Expand Down Expand Up @@ -478,11 +477,11 @@ function(result)
url: urlToSend,
dataType : "json"
})
.done(function (data)
{
.done(function (data) {
if ( data && data.result ) {
toastr.info("Switched user!!");
window.location.href = baseUrl+"/"+moduleId+"/person/dashboard";
toastr.info("User has been deleted");
$("#"+type+id).remove();
//window.location.href = "";
} else {
toastr.error("something went wrong!! please try again.");
}
Expand Down

0 comments on commit 8c420d9

Please sign in to comment.