{% from 'include/input_macros.html' import copy_to_clipboard %}
{%- macro generate_opt_options(id, provider, param_section, params, name='', required='', first='', class='', selected='', disabled='true', optgroup=true) -%}
{% if name == '' %}
{% set name = id %}
{% endif %}
{% if disabled == 'true' %}
{% set disabled = 'disabled' %}
{% else %}
{% set disabled = '' %}
{% endif %}
{% set section = namespace(section='') %}
{%- endmacro %}
{%- macro get_nice_name(id, value, provider, section, params) -%}
{% for p in params %}
{% if p.section == section and p.provider == provider and p.param == value %}
{{ copy_to_clipboard(id=id, value=p.param, show=p.name) }}
{% endif %}
{% endfor %}
{%- endmacro %}