This commit is contained in:
sparkyx 2024-08-24 11:57:53 +02:00
parent ffa6cb848d
commit 4ab8698329
7 changed files with 13 additions and 11 deletions

View file

@ -4400,7 +4400,7 @@ Widget.prototype.manage = function () {
var y = calcy(200);
style = style + ' ;top : ' + y + 'px';
add_div({id: box, cssclass: 'inner_box', html: loading(), style: style,drag:true})
add_div({id: box, cssclass: 'inner_box', html: loading(), style: style,drag:false})
$(box).update(req.responseText);
}

View file

@ -76,7 +76,7 @@ if ( $action=="user_mgt" )
//----------------------------------------------------------------------
require_once NOALYSS_INCLUDE."/user.inc.php";
}
// action=user_mgt
if ( $action=="dossier_mgt")
{
//-----------------------------------------------------------------------

View file

@ -7,7 +7,7 @@ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
require_once NOALYSS_TEMPLATE.'/dashboard.php';
echo \HtmlInput::button_action(_('Elements du tableau de bord'), "widget.manage()");
echo \HtmlInput::button_action(_('Personnaliser le tableau de bord'), "widget.manage()");
?>

View file

@ -46,9 +46,9 @@ if ( ! isset ($_GET['verif']))
/*
* Let you change the exercice
*/
echo '<fieldset><legend>'._('Exercice').'</legend>';;
echo '<fieldset>';;
echo '<form method="GET" onsubmit="return waiting_box()">';
echo _('Choisissez un autre exercice');
echo _('Choisissez un exercice');
$ex=new Exercice($cn);
$wex=$ex->select('exercice',$exercice,' onchange="submit(this)"');
echo $wex->input();

View file

@ -92,9 +92,9 @@ echo '<div class="content">';
* Let you change the exercice
*/
echo '<form method="GET" onsubmit="waiting_box();return true;">';
echo '<fieldset><legend>' . _('Exercice') . '</legend>';
echo '<fieldset>' ;
;
echo _('Choisissez un autre exercice').' :';
echo _('Choisissez un exercice').' :';
$ex = new Exercice($cn);
$wex = $ex->select('exercice', $exercice, ' onchange="waiting_box();submit(this)"');
echo $wex->input();

View file

@ -217,11 +217,11 @@ $exercice=$http->get("exercice","number",$g_user->get_exercice());
/*
* Let you change the exercice
*/
echo '<fieldset><legend>'._('Exercice').'</legend>';;
echo '<fieldset>';;
echo '<form method="GET" ';
printf( ' onsubmit="waiting_box()">');
echo 'Choisissez un autre exercice :';
echo 'Choisissez un exercice :';
$ex=new Exercice($cn);
$wex=$ex->select('exercice',$exercice,
sprintf(' onchange="updatePeriode(\'%s\',\'exercice\',\'from_periode\',\'to_periode\',1)"',Dossier::id(),$exercice));

View file

@ -67,10 +67,12 @@ if ( $w != "widget") {
return;
}
}
/**************************************************************************
// action == manage , display a dialog box to add , remove or change parameter of widget
// if must possible to add several time the same widget , example mini-report
*************************************************************************/
if ( $action == 'widget.manage') {
echo \HtmlInput::title_box(_("Elements"), 'widget_box_id',p_mod: 'none');
echo \HtmlInput::title_box(_("Elements"), 'widget_box_id',p_mod: 'none',p_draggable: 'y');
echo '<div style="padding:0.3rem">';
echo span(_('Organiser les éléments en utilisant la souris (Drag & Drop) puis sauver'),'class="text-muted text-center"');
\Noalyss\Widget\Widget::display_available();
@ -115,7 +117,7 @@ if ($action == 'widget.refresh') {
return;
}
if ($action == "widget.input") {
echo \HtmlInput::title_box(_("Elements à ajouter"), 'widget_box_select_id');
echo \HtmlInput::title_box(_("Elements à ajouter"), 'widget_box_select_id',p_draggable: 'y');
echo '<div style="padding:0.3rem">';
\Noalyss\Widget\Widget::select_available();
echo '</div>';