forked from stripe/stripe-connect-rocketrides
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve styles related to Express for Business
- Loading branch information
1 parent
3ef60a1
commit fff6ea8
Showing
5 changed files
with
63 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Small script to handle selection of the pilot legal entity. | ||
|
||
document.body.addEventListener('change', function(e) { | ||
if (e.target.name !== 'pilot-type') { | ||
return; | ||
} | ||
|
||
// Show the correct header for the select legal entity. | ||
var headerPrefix = (e.target.value === 'individual') ? 'Personal' : 'Company'; | ||
document.querySelector('.pilot-header').innerText = `${headerPrefix} Information`; | ||
|
||
// Show any fields that apply to the new pilot type. | ||
var pilotInfoRows = document.querySelectorAll('.pilot-info'); | ||
pilotInfoRows.forEach(function(row) { | ||
row.classList.toggle('hidden', !row.classList.contains(e.target.value)); | ||
}); | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,4 +31,4 @@ html | |
footer | ||
block footer | ||
|
||
script(src='/scripts/onboarding.js') | ||
script(src='/javascripts/onboarding.js') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters