From f62550528ecd87936e706e94993b918158bfb205 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Fri, 3 Jun 2022 18:47:19 +0200 Subject: [PATCH] ubuntu-pro: show "token" + help instead of "contract token" Signed-off-by: Olivier Gayot --- subiquity/ui/views/ubuntu_pro.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/subiquity/ui/views/ubuntu_pro.py b/subiquity/ui/views/ubuntu_pro.py index 8d718e6d..56309a72 100644 --- a/subiquity/ui/views/ubuntu_pro.py +++ b/subiquity/ui/views/ubuntu_pro.py @@ -93,12 +93,14 @@ class UATokenEditor(StringEditor, WantsToKnowFormField): class UbuntuProTokenForm(SubForm): """ Represents a sub-form requesting Ubuntu Pro token. +---------------------------------------------------------+ - | Contract token: C123456789ABCDEF | + | Token: C123456789ABCDEF | + | This is your Ubuntu Pro token | +---------------------------------------------------------+ """ UATokenField = simple_field(UATokenEditor) - token = UATokenField(_("Contract token:"), help=NO_HELP) + token = UATokenField(_("Token:"), + help=_("This is your Ubuntu Pro token")) class UbuntuProForm(Form): @@ -107,7 +109,8 @@ class UbuntuProForm(Form): +---------------------------------------------------------+ | (X) Enable now with my contract token | | | - | Contract token: C123456789ABCDEF | + | Token: C123456789ABCDEF | + | This is your Ubuntu Pro token | | | | ( ) Skip Ubuntu Pro for now | | | @@ -183,7 +186,8 @@ class UbuntuProView(BaseView): | | | (X) Enable now with my contract token | | | - | Contract token: C123456789ABCDEF | + | Token: C123456789ABCDEF | + | This is your Ubuntu Pro token | | | | ( ) Skip Ubuntu Pro for now | | |