{# Fields of a key sign-in, shared by a sync's Account step and the service builder's Test account tab, so the two can't drift. Their explanations are info hovers. server_address_field: a self-hosted service's address, with the http confirmation that only shows while the address starts with http:// (sync.js: initServerAddress). Rendered visible, so without the script the box is there when it's needed. #} {% macro server_address_field(id, value='') %} {% set help = _("Your server's address, like photos.example.com. Yaffo uses https unless you type http://, which is only allowed for a server on your home network. Yaffo talks only to this server for this account.") %}
{% endmacro %} {# api_key_field: the key, with where to find it (the service's own words) and what Yaffo does with it in one hover. #} {% macro api_key_field(id, label, key_help='') %} {% set help = ((key_help ~ ' ') if key_help else '') ~ _("Yaffo checks the key, then keeps it in your system's keychain. It's never shown again.") %}
{% endmacro %}