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