From 8fc8123cea66502f261e1db65c7743b035bbabd3 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Mon, 9 Nov 2015 22:18:13 +0100 Subject: [PATCH] =?UTF-8?q?Task=20#1221=20-=20Bouton=20Fermer=20dans=20les?= =?UTF-8?q?=20bo=C3=AEtes=20de=20dialogues=20#1221=20:=20add=20hide=20/=20?= =?UTF-8?q?close=20button?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/ajax/ajax_calendar_zoom.php | 5 +++++ include/class/class_calendar.php | 6 +++++- include/class/class_pre_operation.php | 3 +++ include/lib/ac_common.php | 3 +++ include/lib/class_html_input.php | 15 +++++++++++++++ include/template/action_display_short.php | 9 +++++++++ include/template/dashboard.php | 6 ++++++ include/template/todo_list_display.php | 9 ++++++++- 8 files changed, 54 insertions(+), 2 deletions(-) diff --git a/include/ajax/ajax_calendar_zoom.php b/include/ajax/ajax_calendar_zoom.php index f30e0f60c..a95198ba5 100644 --- a/include/ajax/ajax_calendar_zoom.php +++ b/include/ajax/ajax_calendar_zoom.php @@ -29,6 +29,11 @@ if ( $in == "") { } $cal->set_periode($in); echo $cal->zoom($distype,$notitle); +if ( $notitle== 0 ) { + echo '

'; + echo HtmlInput::button_close("calendar_zoom_div"); + echo '

'; +} $response= ob_get_clean(); $html=escape_xml($response); diff --git a/include/class/class_calendar.php b/include/class/class_calendar.php index a36fac77a..a68537280 100644 --- a/include/class/class_calendar.php +++ b/include/class/class_calendar.php @@ -91,7 +91,11 @@ class Calendar { $this->action_div[$day].='
  • '.HtmlInput::detail_action($aAction[$i], $this->title[$day][$i]).'
  • '; } - $this->action_div[$day].=''; + $this->action_div[$day].=''; + $this->action_div[$day].='

    '; + $this->action_div[$day].=HtmlInput::button_hide('tsk'.$day); + $this->action_div[$day].='

    '; + $this->action_div[$day].=''; } } else if ( $p_style == "long") diff --git a/include/class/class_pre_operation.php b/include/class/class_pre_operation.php index 8d8fc8290..b0192fcbf 100644 --- a/include/class/class_pre_operation.php +++ b/include/class/class_pre_operation.php @@ -251,6 +251,9 @@ class Pre_operation_detail $r.=$hid->input("action","use_opd"); $r.=$hid->input("jrn_type",$this->get("ledger_type")); $r.= $this->show_button($p_url); + $r.='

    '. + HtmlInput::button_hide('modele_op_div'). + '

    '; $r.=''; return $r; diff --git a/include/lib/ac_common.php b/include/lib/ac_common.php index d23f18394..9c17bc4c7 100644 --- a/include/lib/ac_common.php +++ b/include/lib/ac_common.php @@ -1182,6 +1182,9 @@ function display_dashboard_operation($p_array,$p_title,$p_div) endfor; ?> +

    + +

    label=_("Fermer"); + $a->javascript="$('".$div_name."').hide()"; + $html=$a->input(); + + return $html; + } /** * Return a html string with an anchor which close the inside popup. (top-right corner) diff --git a/include/template/action_display_short.php b/include/template/action_display_short.php index f9dc76bc0..abe0b49fc 100644 --- a/include/template/action_display_short.php +++ b/include/template/action_display_short.php @@ -119,6 +119,15 @@ echo HtmlInput::hidden('gDossier',Dossier::id()); echo HtmlInput::hidden('op','action_save'); ?>

    +

      +
    1. +
    2. +
    3. + +
    4. + +
    +

    diff --git a/include/template/dashboard.php b/include/template/dashboard.php index a81bb1a84..392495642 100644 --- a/include/template/dashboard.php +++ b/include/template/dashboard.php @@ -219,6 +219,9 @@ endif;

    +

    + +

    diff --git a/include/template/todo_list_display.php b/include/template/todo_list_display.php index 1970411e1..38eb21436 100644 --- a/include/template/todo_list_display.php +++ b/include/template/todo_list_display.php @@ -100,7 +100,14 @@ echo HtmlInput::title_box("Note","todo_list_div".$this->tl_id,'close',$close_sha tl_id) ?> use_login == $_SESSION['g_user']) : ?>

    - +

      +
    1. + +
    2. +
    3. + tl_id);?> +
    4. +

    \ No newline at end of file