Ext.define('WISA.configpanels.WebOuders',{ extend: 'WISA.BaseConfigPanel', constructor : function(options) { options.buttons = options.buttons || []; options.items = options.items || []; options.defaults = options.defaults || {}; options.height = 100; options.defaults.width = 300; options.labelWidth = 250; options.title = 'Website ouders'; options.items.push( { xtype : 'textfield', name: 'InstellingsCodes', fieldLabel: 'Codes instellingen' }, { xtype : 'textfield', name: 'HoofdGroepen', fieldLabel: 'Codes Hoofdgroepen' }, { xtype : 'textfield', name: 'SchoolImage', fieldLabel: 'Logo school' }, { xtype : 'textfield', name: 'SchoolWWW', fieldLabel: 'Website school' }, { xtype : 'textfield', name: 'SchoolNaam', fieldLabel: 'Naam school' }, { xtype : 'textfield', name: 'SchoolStraat', fieldLabel: 'School adres (straat+nr)'}, { xtype : 'textfield', name: 'SchoolGemeente', fieldLabel: 'School adres (postcode+gemeente)'}, { xtype : 'textfield', name: 'SchoolTelefoon', fieldLabel: 'School telefoon'}, { xtype : 'textfield', name: 'SchoolFax', fieldLabel: 'School fax'}, { xtype : 'textfield', name: 'SchoolEmail', fieldLabel: 'School email'}, { xtype : 'textfield', name: 'LessenRoosterDir', fieldLabel: 'Map met lessenroosters' }, { xtype : 'textfield', name: 'LessenRoosterExt', fieldLabel: 'Extensie lessenrooster bestand' }, { xtype : 'textfield', name: 'OuderRol', fieldLabel: 'LVS Rol ouders' }, { xtype : 'checkbox', name: 'ToonPersonalData', fieldLabel: 'Persoonsgegevens tonen' }, { xtype : 'checkbox', name: 'ToonGezinData', fieldLabel: 'Gezinsgegevens tonen' }, { xtype : 'checkbox', name: 'ToonRapporten', fieldLabel: 'Rapporten tonen' }, { xtype : 'checkbox', name: 'ToonBegeleiding', fieldLabel: 'Begeleidingen tonen' }, { xtype : 'checkbox', name: 'ToonInterventie', fieldLabel: 'Interventies tonen' }, { xtype : 'checkbox', name: 'ToonMedischeFiche', fieldLabel: 'Medische fiche tonen' }, { xtype : 'checkbox', name: 'ToonAfwezig', fieldLabel: 'Afwezigheden tonen' }, { xtype : 'checkbox', name: 'ToonKalender', fieldLabel: 'Klas kalender tonen' }, { xtype : 'checkbox', name: 'ToonExtraAdressen', fieldLabel: 'Extra adressen tonen' }, { xtype : 'checkbox', name: 'ToonLoopbaan', fieldLabel: 'Loopbaangegevens tonen' }, { xtype : 'checkbox', name: 'ToonLoopbaanAndereScholen', fieldLabel: 'Loopbaan andere scholen tonen' }, { xtype : 'checkbox', name: 'ToonFacturen', fieldLabel: 'Facturen tonen' }, { xtype : 'htmleditor', name: 'Motd', fieldLabel: 'Welkomstbericht', width: 600 } ); /* Inherited */ this.callParent(arguments); } }); Application = new WISA.Application({ submenu : { visible : true, config : { id : 'submenu-kinderen', title: 'Mijn kinderen', layout: 'accordion', iconCls : 'menu-icon-kinderen', width: 300, // DEVart : changed width from 200 to 300 collapsed: false, border: false, split: true, cls:'wisa-panel-menu', margins: '5 0 2 5', cmargins: '5 5 2 5' } }, mainmenu : { config : { xtype: 'toolbar', region: 'north', cls: 'wisa-top-toolbar', height: 185, // DEVart changed height from 30 to 185 margins: '0 0 0 0', items: [ { id : 'wisa-school-logo', // DEVart added id xtype: 'panel', border: false, width: 300, // DEVart changed width from 203 to 300 height: 140, // DEVart changed height from 40 to 140 cls: 'wisa-panel-logo', margins : '0 0 0 5', // DEVart added padding padding: '0 0 0 3', autoLoad: { url: function () { return Application.getUrlApplication()+'/HTML/Logo'; } } }, '->', /* DEVart : add item for selected child */ { xtype: 'tbtext', text: '', cls: 'wisa-child', id: 'wisa-child-title' }, { xtype: 'tbtext', text: 'Gebruikersgegevens', cls: 'wisa-profile', iconCls: 'profile', tooltip: 'Mijn gebruikersgegevens beheren', single: true, listeners: { render: function(txtItem) { txtItem.el.on('click', function() { Ext.getCmp("wisa-child-title").addClass('wisa-child-hidden'); // DEVart added class // DEVart collapse all items Ext.getCmp("submenu-kinderen").items.each(function(treenode){ if (!treenode.collapsed) { treenode.collapse(false); } }); // DEVart : end Application.ShowForm({form:'myprofile'}); }); }, beforerender: function (b) { b.setText(Application.getUserName()); } } }, { xtype: 'tbtext', text: 'Afmelden', cls: 'wisa-logout', single: true, listeners: { render: function(txtItem) { txtItem.el.on('click', function() { return Application.DoLogout(); } ); } } } ] } }, // DEVart added bottomPanelConfig bottomPanelConfig : { id :'wisa-bottom', // DEVart : add id height : 50, // DEVart : add height region: 'south', collapsible: false, items : [{ id : 'wisa-copyright', autoLoad: { url: function () { return Application.getUrlApplication()+'/HTML/Footer'; } }, //html : '