{# Shared type-specific monitor form fields. Every field is rendered; a tiny script (mtoggle) shows only the ones relevant to the selected type. #} {% macro type_fields(config={}) %} {% set inp = "width:100%;padding:0.4rem 0.65rem;background:var(--bg);border:1px solid var(--border-mid);border-radius:4px;color:var(--text);font-size:0.88rem;" %} {% set lbl = "font-size:0.75rem;color:var(--text-muted);display:block;margin-bottom:0.2rem;" %} {# tcp #}
{# dns #}
{# http #}
{% endmacro %} {# Show only the fields whose data-types matches the active monitor type. #} {% macro toggle_script() %} {% endmacro %}