Commit 617423df108b71e776b0443bf433e9847fabc235

Authored by Cédric RICARD
1 parent baaacc62

Added new version of progress bar

Showing 1 changed file with 19 additions and 0 deletions   Show diff stats
calexium_lib/web/CXM_dojo.anubis
@@ -730,6 +730,25 @@ public define HTML_Off_Form @@ -730,6 +730,25 @@ public define HTML_Off_Form
730 div([id(html_id.id), class("progress_bar"), attr("indeterminate", "true"), attr("dojoType", "dijit.ProgressBar") . attributes], literal("")) 730 div([id(html_id.id), class("progress_bar"), attr("indeterminate", "true"), attr("dojoType", "dijit.ProgressBar") . attributes], literal(""))
731 ]). 731 ]).
732 732
  733 +public define HTML_Off_Form
  734 + dojo_progressBar
  735 + (
  736 + List(CoreAttrs) attributes,
  737 + List(Text_Option) attributes_text,
  738 + HtmlId html_id,
  739 + String label,
  740 + Int progress,
  741 + Int maximum
  742 + )=
  743 + sequence([
  744 + text([id("text_" + html_id.id), class("progress_bar") . attributes_text], label),
  745 + div([id(html_id.id),
  746 + class("progress_bar"),
  747 + attr("maximum", abs_to_decimal(maximum)),
  748 + attr("progress", abs_to_decimal(progress)),
  749 + attr("dojoType", "dijit.ProgressBar") . attributes], literal(""))
  750 + ]).
  751 +
733 define Maybe(Int) 752 define Maybe(Int)
734 string_to_month 753 string_to_month
735 ( 754 (