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
Hotfix: onboarding wrapper stylings added back
Ronald A. Richardsond7f8f87315a2
diff --git a/console/app/components/onboarding/form.hbs b/console/app/components/onboarding/form.hbsindex 2f10fa3f..f5089666 100644--- a/console/app/components/onboarding/form.hbs+++ b/console/app/components/onboarding/form.hbs@@ -1,42 +1,61 @@-<div class="bg-white dark:bg-gray-800 py-5 px-4 shadow rounded-lg w-full">- <div class="mb-4">- <Image src={{@brand.logo_url}} @fallbackSrc="/images/fleetbase-logo-svg.svg" alt={{t "app.name"}} height="56" class="h-10 object-contain mx-auto" />- <div class="mt-2">- <h2 class="text-center text-lg font-extrabold text-gray-900 dark:text-white truncate">- {{t "onboard.index.title"}}- </h2>- </div>- </div>+<div class="flex items-center justify-center h-screen min-h-screen px-4 py-12 bg-gray-50 dark:bg-gray-900 sm:px-6 lg:px-8 overflow-y-scroll">+ <div class="w-full max-w-md h-screen flex items-center justify-center py-4">+ <div class="bg-white dark:bg-gray-800 py-5 px-4 shadow rounded-lg w-full">+ <div class="mb-4">+ <Image src={{@brand.logo_url}} @fallbackSrc="/images/fleetbase-logo-svg.svg" alt={{t "app.name"}} height="56" class="h-10 object-contain mx-auto" />+ <div class="mt-2">+ <h2 class="text-center text-lg font-extrabold text-gray-900 dark:text-white truncate">+ {{t "onboard.index.title"}}+ </h2>+ </div>+ </div>- <div class="flex px-3 py-2 mb-4 rounded-md shadow-sm bg-blue-200">- <div>- <FaIcon @icon="hand-spock" @size="lg" class="text-blue-900 mr-4" />- </div>- <p class="flex-1 text-sm text-blue-900 dark:text-blue-900">- {{t "onboard.index.welcome-title" htmlSafe=true companyName=(t "app.name")}}- {{t "onboard.index.welcome-text"}}- </p>- </div>+ <div class="flex px-3 py-2 mb-4 rounded-md shadow-sm bg-blue-200">+ <div>+ <FaIcon @icon="hand-spock" @size="lg" class="text-blue-900 mr-4" />+ </div>+ <p class="flex-1 text-sm text-blue-900 dark:text-blue-900">+ {{t "onboard.index.welcome-title" htmlSafe=true companyName=(t "app.name")}}+ {{t "onboard.index.welcome-text"}}+ </p>+ </div>- <form {{on "submit" (perform this.onboard)}}>- {{#if this.error}}- <InfoBlock @icon="exclamation-triangle" @text={{this.error}} class="mb-6 px-3 py-2 bg-red-300 text-red-900" @textClass="text-red-900" />- {{/if}}- <InputGroup @name={{t "onboard.index.full-name"}} @value={{this.name}} @helpText={{t "onboard.index.full-name-help-text"}} @inputClass="input-lg" />- <InputGroup @name={{t "onboard.index.your-email"}} @type="email" @value={{this.email}} @helpText={{t "onboard.index.your-email-help-text"}} @inputClass="input-lg" />- <InputGroup @name={{t "onboard.index.phone"}} @helpText={{t "onboard.index.phone-help-text"}}>- <PhoneInput @onInput={{fn (mut this.phone)}} class="form-input input-lg w-full" />- </InputGroup>- <InputGroup @name={{t "onboard.index.organization-name"}} @value={{this.organization_name}} @helpText={{t "onboard.index.organization-help-text"}} @inputClass="input-lg" />- <InputGroup @name={{t "onboard.index.password"}} @value={{this.password}} @type="password" @helpText={{t "onboard.index.password-help-text"}} @inputClass="input-lg" />- <InputGroup @name={{t "onboard.index.confirm-password"}} @value={{this.password_confirmation}} @type="password" @helpText={{t "onboard.index.confirm-password-help-text"}} @inputClass="input-lg" />+ <form {{on "submit" (perform this.onboard)}}>+ {{#if this.error}}+ <InfoBlock @icon="exclamation-triangle" @text={{this.error}} class="mb-6 px-3 py-2 bg-red-300 text-red-900" @textClass="text-red-900" />+ {{/if}}+ <InputGroup @name={{t "onboard.index.full-name"}} @value={{this.name}} @helpText={{t "onboard.index.full-name-help-text"}} @inputClass="input-lg" />+ <InputGroup @name={{t "onboard.index.your-email"}} @type="email" @value={{this.email}} @helpText={{t "onboard.index.your-email-help-text"}} @inputClass="input-lg" />+ <InputGroup @name={{t "onboard.index.phone"}} @helpText={{t "onboard.index.phone-help-text"}}>+ <PhoneInput @onInput={{fn (mut this.phone)}} class="form-input input-lg w-full" />+ </InputGroup>+ <InputGroup @name={{t "onboard.index.organization-name"}} @value={{this.organization_name}} @helpText={{t "onboard.index.organization-help-text"}} @inputClass="input-lg" />+ <InputGroup @name={{t "onboard.index.password"}} @value={{this.password}} @type="password" @helpText={{t "onboard.index.password-help-text"}} @inputClass="input-lg" />+ <InputGroup+ @name={{t "onboard.index.confirm-password"}}+ @value={{this.password_confirmation}}+ @type="password"+ @helpText={{t "onboard.index.confirm-password-help-text"}}+ @inputClass="input-lg"+ />- <div class="flex items-center justify-end mt-5">- <Button @buttonType="submit" @icon="check" @iconPrefix="fas" @type="primary" @size="lg" @text={{t "onboard.index.continue-button-text"}} @isLoading={{this.onboard.isRunning}} @disabled={{not this.filled}} />- </div>- </form>+ <div class="flex items-center justify-end mt-5">+ <Button+ @buttonType="submit"+ @icon="check"+ @iconPrefix="fas"+ @type="primary"+ @size="lg"+ @text={{t "onboard.index.continue-button-text"}}+ @isLoading={{this.onboard.isRunning}}+ @disabled={{not this.filled}}+ />+ </div>+ </form>- <RegistryYield @registry="onboard" as |YieldedComponent ctx|>- <YieldedComponent @context={{ctx}} />- </RegistryYield>+ <RegistryYield @registry="onboard" as |YieldedComponent ctx|>+ <YieldedComponent @context={{ctx}} />+ </RegistryYield>+ </div>+ </div></div>\ No newline at end of filediff --git a/console/app/components/onboarding/verify-email.hbs b/console/app/components/onboarding/verify-email.hbsindex 92017938..d2d2ee23 100644--- a/console/app/components/onboarding/verify-email.hbs+++ b/console/app/components/onboarding/verify-email.hbs@@ -1,78 +1,82 @@{{page-title (t "onboard.verify-email.header-title")}}-{{#if this.initialized}}- <div class="bg-white dark:bg-gray-800 py-8 px-4 shadow rounded-lg w-full">- <div class="mb-6">- <LinkTo @route="console" class="flex items-center justify-center">- <LogoIcon @size="12" class="rounded-md" />- </LinkTo>- <h2 class="mt-6 text-center text-lg font-extrabold text-gray-900 dark:text-white truncate">- {{t "onboard.verify-email.title"}}- </h2>- </div>-- <InfoBlock @type="info" @icon="shield-halved" @iconSize="lg">- {{t "onboard.verify-email.message-text" htmlSafe=true}}- </InfoBlock>+<div class="flex items-center justify-center h-screen min-h-screen px-4 py-12 bg-gray-50 dark:bg-gray-900 sm:px-6 lg:px-8 overflow-y-scroll">+ <div class="w-full max-w-md h-screen flex items-center justify-center py-4">+ {{#if this.initialized}}+ <div class="bg-white dark:bg-gray-800 py-8 px-4 shadow rounded-lg w-full">+ <div class="mb-6">+ <LinkTo @route="console" class="flex items-center justify-center">+ <LogoIcon @size="12" class="rounded-md" />+ </LinkTo>+ <h2 class="mt-6 text-center text-lg font-extrabold text-gray-900 dark:text-white truncate">+ {{t "onboard.verify-email.title"}}+ </h2>+ </div>- <form class="mt-8 space-y-6" {{on "submit" (perform this.verify)}}>- <InputGroup- @type="tel"- @name={{t "onboard.verify-email.verification-input-label"}}- @value={{this.code}}- @helpText={{t "onboard.verify-email.verification-code-text"}}- @inputClass="input-lg"- {{on "input" this.verification.validateInput}}- {{did-insert this.verification.validateInput}}- />+ <InfoBlock @type="info" @icon="shield-halved" @iconSize="lg">+ {{t "onboard.verify-email.message-text" htmlSafe=true}}+ </InfoBlock>- <div class="flex flex-row items-center space-x-4">- <Button- @icon="check"- @iconPrefix="fas"- @buttonType="submit"- @type="primary"- @size="lg"- @text="Verify & Continue"- @isLoading={{this.verify.isRunning}}- @disabled={{not this.verification.ready}}- />- <a href="#" {{on "click" this.verification.didntReceiveCode}} class="text-sm text-blue-400 hover:text-blue-300">{{t "onboard.verify-email.didnt-receive-a-code"}}</a>- </div>+ <form class="mt-8 space-y-6" {{on "submit" (perform this.verify)}}>+ <InputGroup+ @type="tel"+ @name={{t "onboard.verify-email.verification-input-label"}}+ @value={{this.code}}+ @helpText={{t "onboard.verify-email.verification-code-text"}}+ @inputClass="input-lg"+ {{on "input" this.verification.validateInput}}+ {{did-insert this.verification.validateInput}}+ />- {{#if this.verification.waiting}}- <div class="flex flex-col flex-grow-0 flex-shrink-0 text-sm bg-yellow-800 border border-yellow-600 px-2 py-2 rounded-md text-yellow-100 my-4 transition-all">- <div class="flex flex-row items-start mb-2">- <div class="w-8 flex-grow-0 flex-shrink-0">- <FaIcon @icon="triangle-exclamation" @size="xl" class="pt-1" />- </div>- <div class="flex-1">- <div class="flex-1 text-sm text-yellow-100">- <div>{{t "auth.verification.didnt-receive-a-code" htmlSafe=true}}</div>- <div>{{t "auth.verification.not-sent.alternative-choice" htmlSafe=true}}</div>- </div>- </div>- </div>- <div class="flex items-center space-x-2">+ <div class="flex flex-row items-center space-x-4"><Button- @text={{t "auth.verification.not-sent.resend-email"}}- @buttonType="button"- @type="link"- class="text-yellow-100"- @wrapperClass="px-4 py-2 bg-gray-900 bg-opacity-25 hover:opacity-50"- @onClick={{this.verification.resendEmail}}- />- <Button- @text={{t "auth.verification.not-sent.send-by-sms"}}- @buttonType="button"- @type="link"- class="text-yellow-100"- @wrapperClass="px-4 py-2 bg-gray-900 bg-opacity-25 hover:opacity-50"- @onClick={{this.verification.resendBySms}}+ @icon="check"+ @iconPrefix="fas"+ @buttonType="submit"+ @type="primary"+ @size="lg"+ @text="Verify & Continue"+ @isLoading={{this.verify.isRunning}}+ @disabled={{not this.verification.ready}}/>+ <a href="#" {{on "click" this.verification.didntReceiveCode}} class="text-sm text-blue-400 hover:text-blue-300">{{t "onboard.verify-email.didnt-receive-a-code"}}</a></div>- </div>- {{/if}}- </form>++ {{#if this.verification.waiting}}+ <div class="flex flex-col flex-grow-0 flex-shrink-0 text-sm bg-yellow-800 border border-yellow-600 px-2 py-2 rounded-md text-yellow-100 my-4 transition-all">+ <div class="flex flex-row items-start mb-2">+ <div class="w-8 flex-grow-0 flex-shrink-0">+ <FaIcon @icon="triangle-exclamation" @size="xl" class="pt-1" />+ </div>+ <div class="flex-1">+ <div class="flex-1 text-sm text-yellow-100">+ <div>{{t "auth.verification.didnt-receive-a-code" htmlSafe=true}}</div>+ <div>{{t "auth.verification.not-sent.alternative-choice" htmlSafe=true}}</div>+ </div>+ </div>+ </div>+ <div class="flex items-center space-x-2">+ <Button+ @text={{t "auth.verification.not-sent.resend-email"}}+ @buttonType="button"+ @type="link"+ class="text-yellow-100"+ @wrapperClass="px-4 py-2 bg-gray-900 bg-opacity-25 hover:opacity-50"+ @onClick={{this.verification.resendEmail}}+ />+ <Button+ @text={{t "auth.verification.not-sent.send-by-sms"}}+ @buttonType="button"+ @type="link"+ class="text-yellow-100"+ @wrapperClass="px-4 py-2 bg-gray-900 bg-opacity-25 hover:opacity-50"+ @onClick={{this.verification.resendBySms}}+ />+ </div>+ </div>+ {{/if}}+ </form>+ </div>+ {{/if}}</div>-{{/if}}\ No newline at end of file+</div>\ No newline at end of file