{% macro input(name,label,value='',max_length=500,type='text') %}
{% endmacro %} {% macro input_hidden(name, value, id='') %} {% endmacro %} {% macro flash(type, message) %} {% if type == false %} {% elif type == true %} {% endif %} {% endmacro %} {% macro alert_message(alertID) %} {% endmacro %} {% macro input_row(name, label, value='', type='text',label_block_cnt = 4,input_block_cnt = 8) %}
{% endmacro %} {% macro label(label, h=5, name='', title='', hl='') %} {% endmacro %} {% macro sub_label(label, name='', title='', hl='') %} {% endmacro %} {% macro single_selectbox(name, label,items, selected,label_block_cnt = 1,selectbox_block_cnt = 11, is_required=false) %}
{% if label != '' %} {% set col = selectbox_block_cnt %} {% else %} {% set col = selectbox_block_cnt + label_block_cnt %} {% endif %}
{% endmacro %} {% macro datepick(name, label='', date_value='',with_time=False,time_value='',id='') %}
{% if label != '' %} {% set col = 11 %} {% else %} {% set col = 12 %} {% endif %}
{% if id == '' %} {% else %} {% endif %}
{% endmacro %} {% macro datetime_range_picker(name, label='', id='', noCoverDiv=False, isShowTimePicker=True, isSetDefaultValue=True, dtClassName='', isShowRecentDates=True) %} {% if noCoverDiv == False %}
{% endif %} {% if label != '' %} {% set col = 11 %} {% else %} {% set col = 12 %} {% endif %} {% if noCoverDiv == False %}
{% endif %} {% if noCoverDiv == False %}
{% endif %} {% endmacro %} {% macro start_proc(procs, selected, traceData=false, title='', width=2, showAutoUpdate=true) %}
{{ label(_('Target period'), title=title) }} {{ paste_btn() }}
{{ start_proc_interval(showAutoUpdate) }}
{% endmacro %} {% macro heatmap_target_period() %}
{{ label(_('Target period'), title='') }} {{ paste_btn() }}
{{ start_proc_interval(showAutoUpdate=false) }} {{ heatmap_cycle() }}
{% endmacro %} {% macro heatmap_cycle() %}
{{ _('Cycle') }}
{{ _('Step') }}
{% endmacro %} {% macro end_proc(procs, selected, label_i18n_key='Show value', title='', width=2, multiple_proc=true, traceData=false, dom_prefix='', showStartProc=false) %}
{{ label(_(label_i18n_key), title=title) }} {{ paste_btn() }}
{% if traceData or showStartProc %}
{% if traceData %}
{% endif %} {{ start_proc_select(procs) }}
{% endif %}
{% if multiple_proc == true %} {% endif %}
{% endmacro %} {% macro end_proc_cate(title='', label_i18n_key='Category value', width=2, is_optional=false) %}
{{ label(_(label_i18n_key), title=title) }} {{ paste_btn() }}
{% endmacro %} {% macro heatmap_end_proc(title='', width=2) %}
{{ label(_('Show value'), title=title) }} {{ paste_btn() }}
{{ sub_label(_('Real(Float)'), hl=' pb-0') }} {{ sub_label(_('Cat.'), hl=' pb-0') }}
{% endmacro %} {% macro cond_proc(procs, selected, prefix='', title='', width=2, pysm=4, is_optional=false) %}
{{ label(_('Filter'), title=title) }} {{ paste_btn() }}
{% endmacro %} {% macro check_db_connection_message(dbType, html, btnID, msgID) %} {% endmacro %} {% macro import_status(db_id, status) %} {% set st = { 'DONE': { 'title': 'Finished Importing', 'class': 'check green' }, 'FAILED': { 'title': 'Failed Importing', 'class': 'exclamation-triangle yellow' }, 'PROCESSING': { 'title': 'Importing', 'class': 'spinner fa-spin' }, 'KILLED': { 'title': 'Killed', 'class': 'exclamation-triangle yellow' }, 'PENDING': { 'title': 'Pending', 'class': 'exclamation-triangle yellow' } } %}
{% endmacro %} {% macro import_progress(db_id, status, percentage) %} {% set progress = { 'DONE': { 'class': 'bg-success', }, 'FAILED': { 'class': 'bg-warning', }, 'KILLED': { 'class': 'bg-warning', }, 'PROCESSING': { 'class': 'progress-bar-animated', }, 'PENDING': { 'class': 'progress-bar-animated', }, } %}
{{ percentage }}%
{% endmacro %} {% macro scatter_end_proc(procs, selected,start_date,start_tm,end_date,end_tm, title='', width=2, multiple_proc=true, isShowMinMax=true) %}
{{ label(_('Show value'), title=title) }} {{ paste_btn() }}
{% if isShowMinMax %} {% endif %}
{{ start_proc_select(procs) }}
{% endmacro %} {% macro end_proc_paracords_real(procs, title='', width=2) %}
{{ label(_('Show value'), title=title) }} {{ paste_btn() }}
{{ start_proc_select(procs) }}
{% endmacro %} {% macro end_proc_paracords_cate(procs, title='', width=2) %}
{{ label(_('Show value (Category)'), title=title) }} {{ paste_btn() }}
{% endmacro %} {% macro page_title(title='', hint='', hasAction=false, key='') %}
{% if hint %}

{% if key %} {{ key }} {% endif %} {{ title }}

{% else %}

{{ title }}

{% endif %} {% if hasAction == true %}
{% endif %}
{% endmacro %} {% macro paste_btn() %} {% endmacro %} {% macro exception_est(checkId='isValidateData') %}
{% endmacro%} {% macro y_scale_option(name='yScaleGroup', className='') %}
{{ _('Range of Y axis')}}
{% endmacro %} {% macro cat_label_filter_modal(scp=false) %} {% endmacro %} {% macro index_order_modal(modalId='xAxisModal', tableId='serialTable', addBtnId='btnAddSerial', okBtnId='btnXAxisModalOK', cancelBtnId='btnXAxisModalCancel') %} {% endmacro %} {% macro start_proc_interval(showAutoUpdate=true, prefix='', disableLatest=false, name='traceTime', commonClass='') %}
{{ datetime_range_picker('DATETIME_RANGE_PICKER','',id='datetimeRangePicker' + prefix,noCoverDiv=True, dtClassName=commonClass) }}
{% endmacro %} {% macro x_index() %}
{{_('X axis')}}
{{ _('Index Ordering Setting') }}
{{ _("Priority") }} {{ _("Process") }} {{ _("Column") }} {{ _("Order") }}
1 Process 1 Index Key 昇順
1 Process 1 Index Key 昇順
{% endmacro %} {% macro start_proc_select(procs=[]) %}
{{ sub_label(_('Start point'), title=_('If you do not select start process, the process of the first target variable will be start process.'), hl=' pb-1') }} {{ single_selectbox('start_proc','', procs,) }}
{% endmacro %} {% macro multiple_target_period(rlp=False, dataNumber=false, scp=false, DivisionNumberHover='', WindowLengthHover=_('Window length Hover'), IntervalHover=_('Interval Hover')) %}
{{ _('Datetime Range') }}
{{start_proc_interval(name='varTraceTime1', commonClass='to-update-time-range')}}
{% if dataNumber %} {% endif %}
{% endmacro %} {% macro remove_outlier(id='hmRemoveOutlier', name='remove_outlier', cl='', showHintText=true) %}
{{ sub_label(_('Remove outlier'), title=_('The targets of removing outlier are Max, Mean Min, σ, and Range.') if showHintText else '', hl=' pb-0 mr-3') }}
{% endmacro %}