Modular logistics and supply chain operating system (LSOS)
JavaScript driver-appfleet-managementfreight-managementinfrastructureinventory-managementlast-mile-deliverylogisticsondemandopen-sourceorder-managementroute-optimizationsupply-chain-managementtracking-and-monitoringtransport-management-systemtransportationwarehouse-management
updated translation file, added translation key for forgot password route
Ronald A. Richardson092ebf0589d4
diff --git a/console/app/templates/auth/forgot-password.hbs b/console/app/templates/auth/forgot-password.hbsindex 08000eab..0ed35fbc 100644--- a/console/app/templates/auth/forgot-password.hbs+++ b/console/app/templates/auth/forgot-password.hbs@@ -2,7 +2,7 @@<div class="mb-4"><Image src={{@model.logo_url}} @fallbackSrc="/images/fleetbase-logo-svg.svg" alt={{t "app.name"}} width="160" height="56" class="w-40 h-14 mx-auto" /><h2 class="text-center text-lg font-extrabold text-gray-900 dark:text-white truncate">- {{if this.isSent "Almost done!" "Forgot your password?"}}+ {{if this.isSent (t "auth.forgot-password.is-sent.title") (t "auth.forgot-password.not-sent.title")}}</h2></div>@@ -12,7 +12,7 @@<FaIcon @icon="check-circle" @size="lg" class="text-green-900 mr-4" /></div><p class="flex-1 text-sm text-green-900 dark:text-green-900">- <strong>Check your email!</strong><br> We've sent you a magic link to your email which will allow you to reset your password. The link expires in 15 minutes.+ {{t "auth.forgot-password.is-sent.message" htmlSafe=true}}</p></div>{{else}}@@ -21,23 +21,23 @@<FaIcon @icon="info-circle" @size="lg" class="text-blue-900 mr-4" /></div><p class="flex-1 text-sm text-blue-900 dark:text-blue-900">- <strong>Don't worry, we've got your back.</strong><br> Enter the email you use to login to {{t "app.name"}} and we will send you a secure link to reset your password.+ {{t "auth.forgot-password.is-sent.message" htmlSafe=true appName=(t "app.name")}}</p></div><form class="space-y-6" {{on "submit" this.sendSecureLink}}><div><label for="email" class="block text-sm font-medium text-gray-700 dark:text-gray-50">- Your email address+ {{t "auth.forgot-password.form.email-label"}}</label><div class="mt-2">- <Input @value={{this.email}} @type="email" id="email" name="email" required class="form-input form-input-lg w-full" placeholder="Your email" />+ <Input @value={{this.email}} @type="email" id="email" name="email" required class="form-input form-input-lg w-full" placeholder={{t "auth.forgot-password.form.email-label"}} /></div></div><div class="flex flex-row space-x-2">- <Button @icon="magic" @type="primary" @buttonType="submit" @text="OK, Send me a magic link!" @onClick={{this.sendSecureLink}} @isLoading={{this.isLoading}} />- <Button @buttonType="button" @text="Nevermind" @onClick={{fn (transition-to "auth.login")}} @disabled={{this.isLoading}} />+ <Button @icon="magic" @type="primary" @buttonType="submit" @text={{t "auth.forgot-password.form.submit-button"}} @onClick={{this.sendSecureLink}} @isLoading={{this.isLoading}} />+ <Button @buttonType="button" @text={{t "auth.forgot-password.form.nevermind-button"}} @onClick={{fn (transition-to "auth.login")}} @disabled={{this.isLoading}} /></div></form>{{/if}}diff --git a/console/translations/en-us.yaml b/console/translations/en-us.yamlindex 9ab375e9..7a68ac74 100644--- a/console/translations/en-us.yaml+++ b/console/translations/en-us.yaml@@ -1,6 +1,19 @@app:name: Fleetbase+auth:+ forgot-password:+ is-sent:+ title: Almost Done!+ message: <strong>Check your email!</strong><br> We've sent you a magic link to your email which will allow you to reset your password. The link expires in 15 minutes.+ not-sent:+ title: Forgot your password?+ message: <strong>Don't worry, we've got your back.</strong><br> Enter the email you use to login to {appName} and we will send you a secure link to reset your password.+ form:+ email-label: Your email address+ submit-button: OK, Send me a magic link!+ nevermind-button: Nevermind+layout:header:menus: