luci-app-nlbwmon: adjused the display export page

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert 2021-06-17 12:50:40 +02:00
parent d6443a6293
commit 04c4499be7

View file

@ -945,30 +945,42 @@ return view.extend({
]),
E('div', { 'class': 'cbi-section', 'data-tab': 'export', 'data-tab-title': _('Export') }, [
E('ul', [
E('li', [
E('a', {
'href': '#',
E('div', { 'class': 'cbi-section-node cbi-sction-node-tabbed' }, [
E('div', { 'class': 'cbi-value' }, [
E('label', { 'class': 'cbi-value-title' }, _('Grouped by MAC (CSV)')),
E('div', { 'class': 'cbi-value-field' }, [
E('button', {
'class': 'cbi-button',
'click': ui.createHandlerFn(this, 'handleDownload', 'csv', 'mac', '-rx,-tx')
}, [ _('CSV, grouped by MAC') ])
}, [ _('Export') ])
])
]),
E('li', [
E('a', {
'href': '#',
E('div', { 'class': 'cbi-value' }, [
E('label', { 'class': 'cbi-value-title' }, _('Grouped by IP (CSV)')),
E('div', { 'class': 'cbi-value-field' }, [
E('button', {
'class': 'cbi-button',
'click': ui.createHandlerFn(this, 'handleDownload', 'csv', 'ip', '-rx,-tx')
}, [ _('CSV, grouped by IP') ])
}, [ _('Export') ])
])
]),
E('li', [
E('a', {
'href': '#',
E('div', { 'class': 'cbi-value' }, [
E('label', { 'class': 'cbi-value-title' }, _('Grouped by protocol (CSV)')),
E('div', { 'class': 'cbi-value-field' }, [
E('button', {
'class': 'cbi-button',
'click': ui.createHandlerFn(this, 'handleDownload', 'csv', 'layer7', '-rx,-tx')
}, [ _('CSV, grouped by protocol') ])
}, [ _('Export') ])
])
]),
E('li', [
E('a', {
'href': '#',
E('div', { 'class': 'cbi-value' }, [
E('label', { 'class': 'cbi-value-title' }, _('Dump (JSON)')),
E('div', { 'class': 'cbi-value-field' }, [
E('button', {
'class': 'cbi-button',
'click': ui.createHandlerFn(this, 'handleDownload', 'json', null, null)
}, [ _('JSON dump') ])
}, [ _('Export') ])
])
])
])
])