Add input for solution to assignment form
Relates to MS-928
This commit is contained in:
parent
8987a99d61
commit
b8f97b101b
|
|
@ -33,6 +33,7 @@
|
||||||
@switch-to-document="switchToDocument"
|
@switch-to-document="switchToDocument"
|
||||||
@assignment-change-title="changeAssignmentTitle"
|
@assignment-change-title="changeAssignmentTitle"
|
||||||
@assignment-change-assignment="changeAssignmentAssignment"
|
@assignment-change-assignment="changeAssignmentAssignment"
|
||||||
|
@assignment-change-solution="changeAssignmentSolution"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</content-form-section>
|
</content-form-section>
|
||||||
|
|
@ -254,6 +255,9 @@ export default {
|
||||||
changeAssignmentAssignment(value) {
|
changeAssignmentAssignment(value) {
|
||||||
this._updateProperty(value, 'assignment');
|
this._updateProperty(value, 'assignment');
|
||||||
},
|
},
|
||||||
|
changeAssignmentSolution(value) {
|
||||||
|
this._updateProperty(value, 'solution');
|
||||||
|
},
|
||||||
changeType({ type, convertToList }, value) {
|
changeType({ type, convertToList }, value) {
|
||||||
let el = {
|
let el = {
|
||||||
type: type,
|
type: type,
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,16 @@
|
||||||
/>
|
/>
|
||||||
<textarea
|
<textarea
|
||||||
:value="value.assignment"
|
:value="value.assignment"
|
||||||
class="assignment-form__exercise-text skillbox-textarea"
|
class="assignment-form__textarea skillbox-textarea"
|
||||||
placeholder="Aufgabe erfassen..."
|
placeholder="Aufgabe erfassen..."
|
||||||
@input="$emit('assignment-change-assignment', $event.target.value, index)"
|
@input="$emit('assignment-change-assignment', $event.target.value, index)"
|
||||||
/>
|
/>
|
||||||
|
<textarea
|
||||||
|
:value="value.solution"
|
||||||
|
class="assignment-form__textarea skillbox-textarea"
|
||||||
|
placeholder="Lösung erfassen..."
|
||||||
|
@input="$emit('assignment-change-solution', $event.target.value, index)"
|
||||||
|
/>
|
||||||
<info-icon class="assignment-form__help-icon help-text__icon" />
|
<info-icon class="assignment-form__help-icon help-text__icon" />
|
||||||
<p class="assignment-form__help-description help-text__description">
|
<p class="assignment-form__help-description help-text__description">
|
||||||
Ein Eingabefeld für die Antwort wird automatisch hinzugefügt.
|
Ein Eingabefeld für die Antwort wird automatisch hinzugefügt.
|
||||||
|
|
@ -47,7 +53,7 @@ export default {
|
||||||
grid-column: span 2;
|
grid-column: span 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__exercise-text {
|
&__textarea {
|
||||||
width: $modal-input-width;
|
width: $modal-input-width;
|
||||||
grid-column: span 2;
|
grid-column: span 2;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue