{% import "partials/macros.html" as ui %} {# Phone access, shared by Settings and setup's last screen. Import with context: access (security.Access), phone (addresses), suggested_password. #} {# Where the phone can open the page: a code to scan, and the addresses to type. #} {% macro addresses(phone) -%}

Scan this with your phone's camera while it's on the same Wi-Fi as this computer.

Or type {% for address in phone %}{{ address }}{% if not loop.last %} or {% endif %}{% endfor %} into your phone's browser. It asks for the password once.

{%- endmacro %} {# The switch's two dialogs: letting devices in (with a password if there is none) and keeping the page to this computer again. #} {% macro dialogs(access, suggested_password) -%}
{%- endmacro %}