Skip to content

Commit

Permalink
edited new account form
Browse files Browse the repository at this point in the history
  • Loading branch information
bprize15 committed Nov 8, 2023
1 parent 5195d72 commit 200ee6b
Showing 1 changed file with 31 additions and 28 deletions.
59 changes: 31 additions & 28 deletions src/main/webapp/app/components/newAccountForm/NewAccountForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,37 @@ export class NewAccountForm extends React.Component<INewAccountForm> {
</Col>
</Row>
)}
{!this.isCommercialLicense && (
<Row className={getSectionClassName()}>
<Col md="3">
<h5>API Access</h5>
</Col>
<Col md="9">
<p>
Would you like programmatic access to the OncoKB database
via our API? API access allows a user to simultaneously
annotate multiple tumor mutations with OncoKB data and
provides a text file output. OncoKB API access may also
enable the user to use it to speak to other platform APIs
such as that of cBioPortal.
</p>
<p>
Should you request API access, you must provide
justification as to your academic needs for such access.
Additional time for that access to be granted will be also
be necessary as we will require additional user screening to
grant access.
</p>
<AvCheckboxGroup
name={FormKey.REQUEST_API_ACCESS}
key={FormKey.REQUEST_API_ACCESS}
errorMessage={'You have to accept the term'}
>
<AvCheckbox label={'Request API Access'} value={true} />
</AvCheckboxGroup>
</Col>
</Row>
)}
{this.selectedLicense === LicenseType.ACADEMIC &&
!this.props.byAdmin ? (
<>
Expand Down Expand Up @@ -769,34 +800,6 @@ export class NewAccountForm extends React.Component<INewAccountForm> {
</Col>
</Row>
) : null}
{!this.isCommercialLicense && (
<Row className={getSectionClassName()}>
<Col md="3">
<h5>API Access</h5>
</Col>
<Col md="9">
<p>
Would you like programmatic access to the OncoKB database
via our API? API access allows a user to simultaneously
annotate multiple tumor mutations with OncoKB data and
provides a text file output. OncoKB API access may also be
enable the user to use it to speak to other platform APIs
such as that of cBioPortal. Should you request API access,
you must provide justification as to your academic needs for
such access. Additional time for that access to be granted
will be also be necessary as we will require additional user
screening to grant access.
</p>
<AvCheckboxGroup
name={FormKey.REQUEST_API_ACCESS}
key={FormKey.REQUEST_API_ACCESS}
errorMessage={'You have to accept the term'}
>
<AvCheckbox label={'Request API Access'} value={true} />
</AvCheckboxGroup>
</Col>
</Row>
)}
<Row>
<Col md={9} className={'ml-auto'}>
<Button id="register-submit" variant="primary" type="submit">
Expand Down

0 comments on commit 200ee6b

Please sign in to comment.