Commit 6a685425 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Redesign the HistoryFilter in order to use colapsible fieldset instead of accordion layout.

parent d32fded1
......@@ -35,14 +35,11 @@ Ext.define('Event.grid.HistoryFilter', {
people = [];
// the arcordeon layout
me.layout = {
multi: true,
titleCollapse: true,
type: 'accordion'
};
me.layout = "anchor";
me.defaults = {
frame: true
frame: true,
layout: "form"
};
// collect fields for each sub-panel
......@@ -86,31 +83,42 @@ Ext.define('Event.grid.HistoryFilter', {
// create the new item structure by adding sub-panel
me.items = [{
title: me.textMetadata,
collapsed: false,
items: metadata
title: me.textMetadata,
collapsible: true,
collapsed: false,
items: metadata,
xtype: "fieldset"
}, {
title: me.textPeople,
collapsible: true,
collapsed: true,
items: people
items: people,
xtype: "fieldset"
}, {
title: me.textObject,
collapsible: true,
collapsed: true,
items: object
items: object,
xtype: "fieldset"
}, {
title: me.textEventData,
collapsible: true,
collapsed: true,
layout: 'fit',
items: eventdata
items: eventdata,
layout: 'anchor',
xtype: "fieldset"
}, {
title: me.textPeriod,
collapsible: true,
collapsed: true,
items: period
items: period,
xtype: "fieldset"
}, {
title: me.textFunding,
collapsible: true,
collapsed: true,
layout: 'fit',
items: funding
items: funding,
xtype: "fieldset"
}];
// initialise the base class
......
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