Follow_Up : other card, change presentation, use a button

instead of displaying a lot of cells , one per card, the button
calls a dialog box with the list of other cards
This commit is contained in:
sparkyx 2020-11-10 10:54:25 +01:00
parent 91a8347a30
commit fb1ade420a
12 changed files with 474 additions and 86 deletions

View file

@ -480,7 +480,7 @@ class HtmlInput
$id=uniqid("xx");
}
$r="";
$r.='<a id="'.$id.'" class="'.$p_class.'" onclick="'.$javascript.'">'.$p_symbole.h($action).'</a>';
$r.='<a id="'.$id.'" href="javascript:void(0)" class="'.$p_class.'" onclick="'.$javascript.'">'.$p_symbole.h($action).'</a>';
return $r;
}
@ -1137,16 +1137,7 @@ class HtmlInput
return $js;
}
static function button_action_add_concerned_card($p_agid)
{
$dossier=Dossier::id();
$javascript=<<<EOF
obj={dossier:$dossier,ag_id:$p_agid};action_concerned_search_card(obj);
EOF;
$js=HtmlInput::button_action(_('Ajout autres'), $javascript, 'xx',
'smallbutton');
return $js;
}
static function button_action_add()
{