return (
<div className="display-flex-start">
<form
+ className="width-50"
onSubmit={(e: React.SyntheticEvent<HTMLFormElement>) => {
e.preventDefault();
const value = new FormData(e.currentTarget).get('personal_access_token') as string;
</p>
<ValidationInput
- error={isInvalid ? translate('onboarding.create_project.pat_incorrect') : undefined}
+ error={isInvalid ? translate('onboarding.create_project.pat_incorrect', alm) : undefined}
id="personal_access_token"
isInvalid={isInvalid}
isValid={false}
<DeferredSpinner className="spacer-left" loading={submitting} />
</form>
- <Alert className="big-spacer-left big-spacer-top" display="block" variant="info">
+ <Alert className="big-spacer-left huge-spacer-top width-50" display="block" variant="info">
<h3>{translate('onboarding.create_project.pat_help.title')}</h3>
<p className="big-spacer-top big-spacer-bottom">
className="display-flex-start"
>
<form
+ className="width-50"
onSubmit={[Function]}
>
<h2
/>
</form>
<Alert
- className="big-spacer-left big-spacer-top"
+ className="big-spacer-left huge-spacer-top width-50"
display="block"
variant="info"
>
className="display-flex-start"
>
<form
+ className="width-50"
onSubmit={[Function]}
>
<h2
/>
</form>
<Alert
- className="big-spacer-left big-spacer-top"
+ className="big-spacer-left huge-spacer-top width-50"
display="block"
variant="info"
>
className="display-flex-start"
>
<form
+ className="width-50"
onSubmit={[Function]}
>
<h2
/>
</form>
<Alert
- className="big-spacer-left big-spacer-top"
+ className="big-spacer-left huge-spacer-top width-50"
display="block"
variant="info"
>
className="display-flex-start"
>
<form
+ className="width-50"
onSubmit={[Function]}
>
<h2
/>
</form>
<Alert
- className="big-spacer-left big-spacer-top"
+ className="big-spacer-left huge-spacer-top width-50"
display="block"
variant="info"
>
className="display-flex-start"
>
<form
+ className="width-50"
onSubmit={[Function]}
>
<h2
onboarding.create_project.pat_form.help.bitbucket
</p>
<ValidationInput
- error="onboarding.create_project.pat_incorrect"
+ error="onboarding.create_project.pat_incorrect.bitbucket"
id="personal_access_token"
isInvalid={true}
isValid={false}
/>
</form>
<Alert
- className="big-spacer-left big-spacer-top"
+ className="big-spacer-left huge-spacer-top width-50"
display="block"
variant="info"
>
onboarding.create_project.wrong_binding_count=You must have exactly 1 {alm} instance configured in order to use this method, but none were found. Either create the project manually, or contact your system administrator.
onboarding.create_project.wrong_binding_count.admin=You must have exactly 1 {alm} instance configured in order to use this method. You can configure instances under {url}.
onboarding.create_project.enter_pat=Enter personal access token
-onboarding.create_project.pat_incorrect=Your personal access token failed to validate.
+onboarding.create_project.pat_incorrect.bitbucket=Your personal access token failed to validate.
+onboarding.create_project.pat_incorrect.gitlab=Your personal access token failed to validate. Please make sure it has the right scope and that it is not expired.
onboarding.create_project.pat_help.title=How to create a personal access token?
onboarding.create_project.pat_help.instructions=Click the following link to generate a token in {alm}, and copy-paste it into the personal access token field.