Permalink
Browse files

Rearrange PilotDetails form to be more compact

  • Loading branch information...
markerikson committed Dec 26, 2017
1 parent 6e1be79 commit 51377a707d0794e676b802ab1cfb95e3f6a50312
Showing with 52 additions and 48 deletions.
  1. +52 −48 src/features/pilots/PilotDetails/PilotDetails.jsx
@@ -146,57 +146,61 @@ export class PilotDetails extends Component {
control="input"
/>
</FormEditWrapper>
<Form.Field
name="rank"
label="Rank"
width={16}
control={Dropdown}
fluid
selection
options={RANKS}
value={rank}
onChange={this.onDropdownChanged}
disabled={!canStopEditing}
/>
<FormEditWrapper
singleValue={true}
value={ {age} }
onChange={this.onInputChanged}
passIsEditing={false}
>
<Form.Group>
<Form.Field
name="age"
width={6}
label="Age"
placeholder="Age"
control="input"
name="rank"
label="Rank"
width={10}
control={Dropdown}
fluid
selection
options={RANKS}
value={rank}
onChange={this.onDropdownChanged}
disabled={!canStopEditing}
/>
</FormEditWrapper>
<Form.Field
name="gunnery"
label="Gunnery"
width={6}
control={Dropdown}
fluid
selection
options={SKILL_VALUES}
value={gunnery}
onChange={this.onDropdownChanged}
disabled={!canStopEditing}
/>
<Form.Field
name="piloting"
label="Piloting"
width={6}
control={Dropdown}
fluid
selection
options={SKILL_VALUES}
value={piloting}
onChange={this.onDropdownChanged}
disabled={!canStopEditing}
/>
<FormEditWrapper
singleValue={true}
value={ {age} }
onChange={this.onInputChanged}
passIsEditing={false}
>
<Form.Field
name="age"
width={6}
label="Age"
placeholder="Age"
control="input"
disabled={!canStopEditing}
/>
</FormEditWrapper>
</Form.Group>
<Form.Group widths="equal">
<Form.Field
name="gunnery"
label="Gunnery"
control={Dropdown}
fluid
selection
options={SKILL_VALUES}
value={gunnery}
onChange={this.onDropdownChanged}
disabled={!canStopEditing}
/>
<Form.Field
name="piloting"
label="Piloting"
control={Dropdown}
fluid
selection
options={SKILL_VALUES}
value={piloting}
onChange={this.onDropdownChanged}
disabled={!canStopEditing}
/>
</Form.Group>
<Form.Field
name="mech"
label="Mech"

0 comments on commit 51377a7

Please sign in to comment.