Aug 7 - Update: UI change - MT16
This commit is contained in:
@@ -55,6 +55,17 @@ class User(UserMixin, db.Model):
|
||||
created_at = db.Column(db.DateTime, default=now_eastern)
|
||||
active = db.Column(db.Boolean, default=True, nullable=False)
|
||||
|
||||
# ── Web portal design preference (MT-16) ──────────────────────────────
|
||||
# 'classic' = the original top-navbar design. 'modern' = the sidebar design.
|
||||
# Drives base.html's layout dispatch via the inject_ui_theme() context
|
||||
# processor. Persisted per user so the choice survives logout.
|
||||
#
|
||||
# Defaults to 'classic' so existing tenants see no change on deploy; the
|
||||
# effective fallback for accounts that never choose is config
|
||||
# DEFAULT_UI_THEME, which a tenant can be provisioned with as 'modern'.
|
||||
ui_theme = db.Column(db.String(16), nullable=False,
|
||||
server_default='classic', default='classic')
|
||||
|
||||
# ── Customer password-setup workflow ──────────────────────────────────
|
||||
# password_set: False for newly created customer accounts until they
|
||||
# complete the set-password flow via emailed link.
|
||||
|
||||
Reference in New Issue
Block a user