Commit ba2680fc authored by Bas Lijnse's avatar Bas Lijnse

Replaced the "home" tab with a static html page. This page needs some content and pretty layout.

git-svn-id: https://svn.cs.ru.nl/repos/iTask-system/branches/fancyTasks@316 63da3aa8-80fd-4f01-9db8-e6ea747a3da2
parent 20d11f1a
......@@ -8,10 +8,9 @@ itasks.HomeTabPanel = Ext.extend(Ext.Panel, {
initComponent: function () {
Ext.apply(this, {
title: 'Home',
closable: false,
html: 'This panel will show a dashboard style homepage',
bodyStyle: 'padding: 5px;'
title: 'Welcome',
closable: true,
autoLoad: 'welcome.html'
});
itasks.HomeTabPanel.superclass.initComponent.apply(this, arguments);
......
......@@ -27,9 +27,11 @@ itasks.WorkTabsPanel = Ext.extend(Ext.TabPanel, {
tab = new itasks.WorkTabPanel({id: taskid, taskinfo: taskinfo});
//Add new tab
this.add(tab);
this.activate(tab);
this.doLayout();
}
this.activate(tab);
//Return a reference to the new tab
return tab;
},
......
<style type="text/css">
#welcome-content {
margin: 10px;
}
#welcome-content h1 {
font-size: 32px;
font-weight: bold;
color: #ccc;
}
</style>
<div id="welcome-content">
<h1>Welcome to iTasks!</h1>
</div>
\ No newline at end of file
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