Commit 6a91e585 authored by Bas Lijnse's avatar Bas Lijnse

Reversed instruction and context layout in instruction tasks

git-svn-id: https://svn.cs.ru.nl/repos/iTask-system/trunk@949 63da3aa8-80fd-4f01-9db8-e6ea747a3da2
parent 3e917342
......@@ -17,6 +17,7 @@ itasks.ttc.InstructionContainer = Ext.extend(Ext.Panel,{
, unstyled: true
, html: this.instruction
, cls: 'InstructionContainer-Text'
/*
, buttons: [
{ xtype: 'button'
, name: 'action'
......@@ -27,20 +28,29 @@ itasks.ttc.InstructionContainer = Ext.extend(Ext.Panel,{
, iconCls: 'icon-ok'
}
]
*/
}
]});
itasks.ttc.InstructionContainer.superclass.initComponent.apply(this,arguments);
if(this.context != null){
this.insert(1,{
this.items[2] = {
xtype: 'panel',
//html: '<div class="task-description">Context Information:</div>'+this.context,
html: this.context,
unstyled: true,
cls: 'InstructionContainer-Context'
});
};
}
Ext.apply(this.items[this.items.length - 1],{
buttons: [{ xtype: 'button'
, name: 'action'
, id: 'tf-'+this.taskId+'-action-0'
, text: 'Done'
, value: 1
, disabled: false
, iconCls: 'icon-ok'
}]
});
itasks.ttc.InstructionContainer.superclass.initComponent.apply(this,arguments);
},
afterRender: function(){
......
......@@ -182,7 +182,7 @@
background-image : url('img/ttc-icons/TTCBackground80.png') !important;
padding: 4px;
border-left: 1px solid #99BBE8;
border-bottom: 1px solid #99BBE8;
border-bottom: 1px solid #D6DEE8;
border-right: 1px solid #99BBE8;
width: 700px;
margin: 0px 0px 0px 10px;
......@@ -194,7 +194,7 @@
background-image : url('img/ttc-icons/TTCBackground90.png') !important;
padding: 4px;
border-left: 1px solid #99BBE8;
border-bottom: 1px solid #D6DEE8;
border-bottom: 1px solid #99BBE8;
border-right: 1px solid #99BBE8;
width: 700px;
margin: 0px 0px 0px 10px;
......
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