{% extends "base.html" %} {% from "_ui.html" import page_head, role_pill %} {% block title %}Settings{% endblock %} {% block content %} {{ page_head('settings', 'Settings', 'Your account' if user.role != 'admin' else 'Password, sign-in options and the welcome email.') }} {% if user.role == 'admin' %}

{{ icon('key') }} Change password

{{ icon('lock') }}
{{ icon('key') }}

{{ icon('shield') }} Sign-in options

Codes go to the registered email, work once and expire in 10 minutes. This needs email sending to be set up below.{% if not mail_ready %} Email is not set up yet.{% endif %}

{{ icon('mail') }} Welcome email template

Sent automatically when you add a new Lead or User. The body is HTML.

{% if mail_ready %}{{ icon('check-circle') }} Email sending is set up. Sent from {{ mail_from }}. {% else %}{{ icon('alert') }} Email sending is not set up yet. Emails will not be sent until it is (see README).{% endif %}

{{ icon('type') }}
Click to insert: {% for v in template_vars %}{% endfor %}

The preview uses sample values. Scripts are removed when saved, and each placeholder is filled with the person's own details when the email is sent.

{{ icon('mail') }}
Uses the template as typed above, even if not saved yet.
{% else %}

{{ icon('user') }} Your account

Name{{ user.name or user.username }}
Email{{ icon('mail') }}{{ user.email }}
Role{{ role_pill(user.role) }}

You sign in with your email (Google or an emailed code), so there is no portal password to change.

{% endif %} {% endblock %}