Skip to content
Snippets Groups Projects
Commit 198f4670 authored by Hidde Leistra's avatar Hidde Leistra
Browse files

Move feedback options in exam view inside panel-block

parent ff5d7c59
No related branches found
No related tags found
3 merge requests!26Premade feedback merge,!24Master->develop (this MR contains no useful information),!23WIP: Highlight feedback
Pipeline #18104 passed
This commit is part of merge request !24. Comments created here will be created in the context of that merge request.
...@@ -347,19 +347,24 @@ class Exams extends React.Component { ...@@ -347,19 +347,24 @@ class Exams extends React.Component {
props.saveProblemName(e.target.value) props.saveProblemName(e.target.value)
}} /> }} />
</div> </div>
<br />
{!this.state.editActive && <label className='label'>Feedback options</label>}
</React.Fragment> </React.Fragment>
)} )}
</div> </div>
</div> </div>
{this.isProblemWidget(selectedWidgetId) && (this.state.editActive {this.isProblemWidget(selectedWidgetId) &&
? <EditPanel problemID={props.problem.id} feedback={this.state.feedbackToEdit} <React.Fragment>
goBack={this.backToFeedback} updateCallback={this.updateFeedback} /> <div className='panel-block'>
: <FeedbackPanel examID={this.props.examID} problem={props.problem} {!this.state.editActive && <label className='label'>Feedback options</label>}
editFeedback={this.editFeedback} showTooltips={this.state.showTooltips} </div>
grading={false} {this.state.editActive
/>)} ? <EditPanel problemID={props.problem.id} feedback={this.state.feedbackToEdit}
goBack={this.backToFeedback} updateCallback={this.updateFeedback} />
: <FeedbackPanel examID={this.props.examID} problem={props.problem}
editFeedback={this.editFeedback} showTooltips={this.state.showTooltips}
grading={false}
/>}
</React.Fragment>
}
<div className='panel-block'> <div className='panel-block'>
<button <button
disabled={props.disabledDelete} disabled={props.disabledDelete}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment