Testing the 3T administration interface
We now need to add our new components to our Application.js
file:
models:[ 'Company', 'Project', 'Task', 'User', 'TaskLog' ], controllers: [ 'MainController', 'UserController', 'AdminController', 'TaskLogController' ], stores: [ 'Company', 'CompanyTree', 'Project', 'Task', 'User', 'TaskLog' ]
We also need to add the ManageTasks
view to our MainCards
:
Ext.define('TTT.view.MainCards', {
extend: 'Ext.container.Container',
xtype: 'maincards',
requires: ['Ext.layout.container.Card', 'TTT.view.Welcome', 'TTT.view.user.ManageUsers', 'TTT.view.tasklog.ManageTaskLogs', 'TTT.view.admin.ManageTasks'],
layout: 'card',
initComponent: function() {
var me = this;
Ext.applyIf(me, {
items: [{
xtype: 'welcome',
itemId: 'welcomCard'
}, {
xtype: 'manageusers',
itemId: 'manageUsersCard'
}, {
...