{% macro protected_fields() %} {% set arr = [{"v": url, "n": "URL"}, {"v": suffix, "n": "Suffix"}, {"v": delete_at, "n": "Valid until:"}] %} {% if domain != None %} {% set _ = domain + ":{}/".format(port) + suffix if debug else domain + "/" + suffix %} {% set x = arr.append({"v": _, "n": "Shortened URL"}) %} {% endif %}
{% for i in arr %}
{% endfor %}
{% endmacro %} {% macro protected_fields_js() %} {% endmacro %} {% macro showProtectedFields() %} {{ protected_fields() }} {{ protected_fields_js() }} {% endmacro %}