Adjust the usage of WarningPopup to its new implementation
This commit is contained in:
parent
1c9c6b275e
commit
2d8fd3734b
|
|
@ -181,38 +181,37 @@ class EditTournamentForm extends React.Component {
|
|||
onChange={this.handlePublicInput.bind(this)}/>
|
||||
<label htmlFor="isPublic" className="custom-control-label">Das Turnier öffentlich anzeigen</label>
|
||||
</div>
|
||||
<FormGroup>
|
||||
<Label for="playoff-teams-amount">Anzahl Teams in der Playoff-Stage</Label>
|
||||
<Col xs="3" className="pl-0">
|
||||
<NumericInput value={this.state.playoffTeamsAmount}
|
||||
incrementText="×2" incrementCallback={this.increasePlayoffTeamsAmount}
|
||||
decrementText="÷2" decrementCallback={this.decreasePlayoffTeamsAmount}/>
|
||||
</Col>
|
||||
</FormGroup>
|
||||
<FormGroup>
|
||||
<Label for="instant-finalists-amount">
|
||||
Anzahl Teams, die direkt in die Playoff-Stage weiter kommen</Label>
|
||||
<Col xs="3" className="pl-0">
|
||||
<NumericInput value={this.state.instantFinalistAmount}
|
||||
incrementText="+1" incrementCallback={this.increaseInstantFinalistsAmount}
|
||||
decrementText="-1" decrementCallback={this.decreaseInstantFinalistsAmount}/>
|
||||
</Col>
|
||||
</FormGroup>
|
||||
<FormGroup>
|
||||
<Label for="intermediate-round-participants">
|
||||
Anzahl Teams, die in einer Zwischenrunde um die Playoff-Stage spielen müssen</Label>
|
||||
<Col xs="3" className="pl-0">
|
||||
<NumericInput value={this.state.intermediateRoundParticipants}
|
||||
incrementText="+1" incrementCallback={this.increaseIntermediateRoundParticipants}
|
||||
decrementText="-1" decrementCallback={this.decreaseIntermediateRoundParticipants}/>
|
||||
</Col>
|
||||
</FormGroup>
|
||||
<WarningPopup
|
||||
text="Die Anzahl der Teams im Playoff muss der Anzahl an Teams, die direkt im Playoff sind
|
||||
plus der Hälfte der Anzahl an Teams in der Zwischenrunde entsprechen."
|
||||
shown={this.state.playoffTeamsAmount !== this.state.instantFinalistAmount +
|
||||
(this.state.intermediateRoundParticipants / 2)}>
|
||||
<FormGroup>
|
||||
<Label for="playoff-teams-amount">Anzahl Teams in der Playoff-Stage</Label>
|
||||
<Col xs="3" className="pl-0">
|
||||
<NumericInput value={this.state.playoffTeamsAmount}
|
||||
incrementText="×2" incrementCallback={this.increasePlayoffTeamsAmount}
|
||||
decrementText="÷2" decrementCallback={this.decreasePlayoffTeamsAmount}/>
|
||||
</Col>
|
||||
</FormGroup>
|
||||
<FormGroup>
|
||||
<Label for="instant-finalists-amount">
|
||||
Anzahl Teams, die direkt in die Playoff-Stage weiter kommen</Label>
|
||||
<Col xs="3" className="pl-0">
|
||||
<NumericInput value={this.state.instantFinalistAmount}
|
||||
incrementText="+1" incrementCallback={this.increaseInstantFinalistsAmount}
|
||||
decrementText="-1" decrementCallback={this.decreaseInstantFinalistsAmount}/>
|
||||
</Col>
|
||||
</FormGroup>
|
||||
<FormGroup>
|
||||
<Label for="intermediate-round-participants">
|
||||
Anzahl Teams, die in einer Zwischenrunde um die Playoff-Stage spielen müssen</Label>
|
||||
<Col xs="3" className="pl-0">
|
||||
<NumericInput value={this.state.intermediateRoundParticipants}
|
||||
incrementText="+1" incrementCallback={this.increaseIntermediateRoundParticipants}
|
||||
decrementText="-1" decrementCallback={this.decreaseIntermediateRoundParticipants}/>
|
||||
</Col>
|
||||
</FormGroup>
|
||||
</WarningPopup>
|
||||
(this.state.intermediateRoundParticipants / 2)}/>
|
||||
<div className="form-group">
|
||||
<div className="input-group">
|
||||
<Button color="success" className="px-5" id="edittournament-button"
|
||||
|
|
|
|||
Loading…
Reference in New Issue