-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
general: Place dialog form labels on top of their fields #1804
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -207,7 +207,7 @@ const AdditionalOptions = ({ cacheMode, device, idPrefix, onValueChanged, busTyp | |
return ( | ||
<ExpandableSection toggleText={ expanded ? _("Hide additional options") : _("Show additional options")} | ||
onToggle={() => setExpanded(!expanded)} isExpanded={expanded} className="pf-v5-u-pt-lg"> | ||
<Form onSubmit={e => e.preventDefault()} isHorizontal> | ||
<Form onSubmit={e => e.preventDefault()}> | ||
<Grid hasGutter md={6}> | ||
<FormGroup fieldId='cache-mode' label={_("Cache")}> | ||
<FormSelect id='cache-mode' | ||
|
@@ -584,7 +584,7 @@ export const AddDiskModalBody = ({ disk, idPrefix, isMediaInsertion, vm, vms, su | |
); | ||
} else if (isMediaInsertion) { | ||
defaultBody = ( | ||
<Form onSubmit={e => e.preventDefault()} isHorizontal> | ||
<Form onSubmit={e => e.preventDefault()}> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This added line is not executed by any test. |
||
<FormGroup fieldId={`${idPrefix}-source`} | ||
id={`${idPrefix}-source-group`} | ||
label={_("Source")} isInline hasNoPaddingTop> | ||
|
@@ -620,7 +620,7 @@ export const AddDiskModalBody = ({ disk, idPrefix, isMediaInsertion, vm, vms, su | |
} else { | ||
defaultBody = ( | ||
<> | ||
<Form onSubmit={e => e.preventDefault()} isHorizontal> | ||
<Form onSubmit={e => e.preventDefault()}> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This added line is not executed by any test. |
||
<FormGroup fieldId={`${idPrefix}-source`} | ||
id={`${idPrefix}-source-group`} | ||
label={_("Source")} isInline hasNoPaddingTop> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -179,7 +179,7 @@ export class AddNIC extends React.Component { | |
const { idPrefix, vm } = this.props; | ||
|
||
const defaultBody = ( | ||
<Form onSubmit={e => e.preventDefault()} isHorizontal> | ||
<Form onSubmit={e => e.preventDefault()}> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This added line is not executed by any test. |
||
<NetworkTypeAndSourceRow idPrefix={idPrefix} | ||
dialogValues={{ ...this.state, availableSources: this.props.availableSources }} | ||
onValueChanged={this.onValueChanged} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -154,7 +154,7 @@ export class EditNICModal extends React.Component { | |
const { idPrefix, vm, network } = this.props; | ||
|
||
const defaultBody = ( | ||
<Form onSubmit={e => e.preventDefault()} isHorizontal> | ||
<Form onSubmit={e => e.preventDefault()}> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This added line is not executed by any test. |
||
<NetworkTypeAndSourceRow idPrefix={idPrefix} | ||
dialogValues={{ ...this.state, availableSources: this.props.availableSources }} | ||
onValueChanged={this.onValueChanged} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -154,7 +154,7 @@ export const VsockModal = ({ vm, vms, vmVsockNormalized, isVsockAttached, idPref | |
const vsockUsage = getVsockUsageMessage(vm.name, vm.connectionName, vms, auto, address); | ||
|
||
const body = ( | ||
<Form onSubmit={e => e.preventDefault()} isHorizontal> | ||
<Form onSubmit={e => e.preventDefault()}> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This added line is not executed by any test. |
||
<FormGroup fieldId="vsock-cid" | ||
label={_("Custom identifier")} | ||
isInline> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -197,7 +197,7 @@ export const WatchdogModal = ({ vm, isWatchdogAttached, isRemovable, idPrefix }) | |
}> | ||
{needsShutdown()} | ||
<WatchdogModalAlert dialogError={dialogError} /> | ||
<Form onSubmit={e => e.preventDefault()} isHorizontal> | ||
<Form onSubmit={e => e.preventDefault()}> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This added line is not executed by any test. |
||
<FormGroup role="radiogroup" | ||
label={_("Action")} | ||
fieldId="watchdog-action" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -182,7 +182,7 @@ export class CreateSnapshotModal extends React.Component { | |
const validationError = this.onValidate(); | ||
|
||
const body = ( | ||
<Form onSubmit={e => e.preventDefault()} isHorizontal> | ||
<Form onSubmit={e => e.preventDefault()}> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This added line is not executed by any test. |
||
<NameRow name={name} validationError={validationError.name} onValueChanged={this.onValueChanged} /> | ||
<DescriptionRow description={description} onValueChanged={this.onValueChanged} /> | ||
{isExternal && vm.state === 'running' && | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -167,7 +167,7 @@ export const MigrateDialog = ({ vm, connectionName }) => { | |
} | ||
|
||
const body = ( | ||
<Form onSubmit={e => e.preventDefault()} isHorizontal> | ||
<Form onSubmit={e => e.preventDefault()}> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This added line is not executed by any test. |
||
<DestUriRow destUri={destUri} | ||
setDestUri={setDestUri} | ||
validationFailed={validationFailed} /> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This added line is not executed by any test.