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
Branches test/add-api-tests
No related tags found
3 merge requests!26Premade feedback merge,!24Master->develop (this MR contains no useful information),!23WIP: Highlight feedback
Pipeline #18104 passed
......@@ -347,19 +347,24 @@ class Exams extends React.Component {
props.saveProblemName(e.target.value)
}} />
</div>
<br />
{!this.state.editActive && <label className='label'>Feedback options</label>}
</React.Fragment>
)}
</div>
</div>
{this.isProblemWidget(selectedWidgetId) && (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}
/>)}
{this.isProblemWidget(selectedWidgetId) &&
<React.Fragment>
<div className='panel-block'>
{!this.state.editActive && <label className='label'>Feedback options</label>}
</div>
{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'>
<button
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