Commit 00327a48 authored by Andreas Gärtner's avatar Andreas Gärtner
Browse files

Added question text to FreetextAnswerPanel and subject to titlebar.

Task #15614
parent 8de37e8f
......@@ -77,12 +77,27 @@ Ext.define('ARSnova.view.FreetextAnswerPanel', {
});
this.toolbar = Ext.create('Ext.Toolbar', {
title: Messages.STATISTIC,
cls: 'answerStatisticToolbar',
docked: 'top',
ui: 'light',
items: [this.backButton]
items: [this.backButton, {
xtype: 'spacer'
}, {
flex: 99,
xtype: 'title',
title: this.questionObj.subject
}, {
xtype: 'spacer'
}]
});
// Create standard panel with framework support
var questionPanel = Ext.create('ARSnova.view.MathJaxMarkDownPanel', {
cls: "roundedBox center"
});
questionPanel.setContent(this.questionObj.text, true, true);
this.noAnswersLabel = Ext.create('Ext.form.FormPanel', {
scrollable: null,
items: {
......@@ -144,7 +159,7 @@ Ext.define('ARSnova.view.FreetextAnswerPanel', {
width: '100%',
flex: 1,
scrollable: null,
items: [this.noAnswersLabel, this.freetextAnswerList]
items: [questionPanel, this.noAnswersLabel, this.freetextAnswerList]
}]);
this.on('activate', function () {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment