diff --git a/Client/WebServer/css/governance.css b/Client/WebServer/css/governance.css
index 24af73dad..5d6898106 100644
--- a/Client/WebServer/css/governance.css
+++ b/Client/WebServer/css/governance.css
@@ -793,7 +793,7 @@
vertical-align: middle;
}
- .governance-search-input {
+ .governance-filter-input {
width: 95%;
height: 45px;
margin: 0 20px;
diff --git a/Projects/Governance/UI/Spaces/Reports-Space/Assets.js b/Projects/Governance/UI/Spaces/Reports-Space/Assets.js
index 7e2ab44d1..8898162c6 100644
--- a/Projects/Governance/UI/Spaces/Reports-Space/Assets.js
+++ b/Projects/Governance/UI/Spaces/Reports-Space/Assets.js
@@ -15,12 +15,13 @@ function newGovernanceReportsAssets() {
}
- function addHTML(tabIndex) {
+ function addHTML(tabIndex, filters) {
return UI.projects.governance.utilities.commonTables.addHTML(
'assets',
'Asset',
'Assets',
- tabIndex
+ tabIndex,
+ filters
)
}
}
\ No newline at end of file
diff --git a/Projects/Governance/UI/Spaces/Reports-Space/Features.js b/Projects/Governance/UI/Spaces/Reports-Space/Features.js
index 080b2e12c..c79e5a6d4 100644
--- a/Projects/Governance/UI/Spaces/Reports-Space/Features.js
+++ b/Projects/Governance/UI/Spaces/Reports-Space/Features.js
@@ -15,12 +15,13 @@ function newGovernanceReportsFeatures() {
}
- function addHTML(tabIndex) {
+ function addHTML(tabIndex, filters) {
return UI.projects.governance.utilities.commonTables.addHTML(
'features',
'Feature',
'Features',
- tabIndex
+ tabIndex,
+ filters
)
}
}
\ No newline at end of file
diff --git a/Projects/Governance/UI/Spaces/Reports-Space/FiltersHeader.js b/Projects/Governance/UI/Spaces/Reports-Space/FiltersHeader.js
new file mode 100644
index 000000000..965e2ed32
--- /dev/null
+++ b/Projects/Governance/UI/Spaces/Reports-Space/FiltersHeader.js
@@ -0,0 +1,71 @@
+function newGovernanceReportsFiltersHeader() {
+ let thisObject = {
+ addFilterHeader: addFilterHeader,
+ detectEnterOnFiltersBox: detectEnterOnFiltersBox,
+ setFocusOnFiltersBox: setFocusOnFiltersBox,
+ render: render,
+ initialize: initialize,
+ finalize: finalize
+ }
+
+ let lastFilters = ''
+
+ return thisObject
+
+ function initialize() {
+
+ }
+
+ function finalize() {
+
+ }
+
+ function render() {
+ let HTML = ''
+ HTML = HTML + '
'
+ HTML = HTML + '

'
+ HTML = HTML + '
'
+ HTML = HTML + '
'
+ let docsContentDiv = document.getElementById('governance-content-div')
+ docsContentDiv.innerHTML = HTML + UI.projects.education.spaces.docsSpace.footer.addFooter()
+
+ UI.projects.governance.spaces.reportsSpace.filtersHeader.detectEnterOnFiltersBox()
+ UI.projects.governance.spaces.reportsSpace.filtersHeader.setFocusOnFiltersBox()
+ }
+
+ function addFilterHeader() {
+ let HTML = ''
+ // Logo & Search Box
+ HTML = HTML + ''
+
+ return HTML
+ }
+
+ function detectEnterOnFiltersBox() {
+ const element = document.getElementsByClassName("governance-filter-input")[0]
+ if (UI.projects.education.spaces.docsSpace.commandInterface.command !== undefined) {
+ element.value = UI.projects.education.spaces.docsSpace.commandInterface.command
+ }
+ element.addEventListener("keyup", function (event) {
+ if (event.key === "Enter" || event.keyCode === 13) {
+ lastFilters = element.value.trim()
+ UI.projects.governance.spaces.reportsSpace.reportsPage.render(undefined, lastFilters)
+ /*
+ UI.projects.education.spaces.docsSpace.commandInterface.command = element.value.trim()
+ UI.projects.education.spaces.docsSpace.commandInterface.detectCommands()
+ */
+ }
+ });
+ }
+
+ function setFocusOnFiltersBox() {
+ const element = document.getElementsByClassName("governance-filter-input")[0]
+ element.value = lastFilters
+ element.focus()
+ }
+}
\ No newline at end of file
diff --git a/Projects/Governance/UI/Spaces/Reports-Space/Mentors.js b/Projects/Governance/UI/Spaces/Reports-Space/Mentors.js
index 597fac80c..3574d46db 100644
--- a/Projects/Governance/UI/Spaces/Reports-Space/Mentors.js
+++ b/Projects/Governance/UI/Spaces/Reports-Space/Mentors.js
@@ -15,12 +15,13 @@ function newGovernanceReportsMentors() {
}
- function addHTML(tabIndex) {
+ function addHTML(tabIndex, filters) {
return UI.projects.governance.utilities.decendentTables.addHTML(
'mentors',
'Mentorship Program',
'mentorshipProgram',
- tabIndex
+ tabIndex,
+ filters
)
}
}
\ No newline at end of file
diff --git a/Projects/Governance/UI/Spaces/Reports-Space/Pools.js b/Projects/Governance/UI/Spaces/Reports-Space/Pools.js
index 3a5e09306..1d1fc7683 100644
--- a/Projects/Governance/UI/Spaces/Reports-Space/Pools.js
+++ b/Projects/Governance/UI/Spaces/Reports-Space/Pools.js
@@ -15,12 +15,13 @@ function newGovernanceReportsPools() {
}
- function addHTML(tabIndex) {
+ function addHTML(tabIndex, filters) {
return UI.projects.governance.utilities.commonTables.addHTML(
'pools',
'Pool',
'Pools',
- tabIndex
+ tabIndex,
+ filters
)
}
}
\ No newline at end of file
diff --git a/Projects/Governance/UI/Spaces/Reports-Space/Positions.js b/Projects/Governance/UI/Spaces/Reports-Space/Positions.js
index bf9f50262..d85df0e4f 100644
--- a/Projects/Governance/UI/Spaces/Reports-Space/Positions.js
+++ b/Projects/Governance/UI/Spaces/Reports-Space/Positions.js
@@ -15,12 +15,13 @@ function newGovernanceReportsPositions() {
}
- function addHTML(tabIndex) {
+ function addHTML(tabIndex, filters) {
return UI.projects.governance.utilities.commonTables.addHTML(
'positions',
'Position',
'Positions',
- tabIndex
+ tabIndex,
+ filters
)
}
}
\ No newline at end of file
diff --git a/Projects/Governance/UI/Spaces/Reports-Space/Referrals.js b/Projects/Governance/UI/Spaces/Reports-Space/Referrals.js
index f54e6ff2a..324f1282c 100644
--- a/Projects/Governance/UI/Spaces/Reports-Space/Referrals.js
+++ b/Projects/Governance/UI/Spaces/Reports-Space/Referrals.js
@@ -15,12 +15,13 @@ function newGovernanceReportsReferrals() {
}
- function addHTML(tabIndex) {
+ function addHTML(tabIndex, filters) {
return UI.projects.governance.utilities.decendentTables.addHTML(
'referrals',
'Referral Program',
'referralProgram',
- tabIndex
+ tabIndex,
+ filters
)
}
}
\ No newline at end of file
diff --git a/Projects/Governance/UI/Spaces/Reports-Space/ReportsPage.js b/Projects/Governance/UI/Spaces/Reports-Space/ReportsPage.js
index 79d0fffb8..d4b2d608c 100644
--- a/Projects/Governance/UI/Spaces/Reports-Space/ReportsPage.js
+++ b/Projects/Governance/UI/Spaces/Reports-Space/ReportsPage.js
@@ -5,6 +5,7 @@ function newGovernanceReportsReportsPage() {
finalize: finalize
}
+ let lastTabIndex
return thisObject
function initialize() {
@@ -15,8 +16,15 @@ function newGovernanceReportsReportsPage() {
}
- function render(tabIndex) {
-
+ function render(tabIndex, filters) {
+
+ /* Setup tabIndex */
+ if (tabIndex === undefined) {
+ tabIndex = lastTabIndex
+ } else {
+ lastTabIndex = tabIndex
+ }
+
let resultsArary = []
let initialTime = new Date()
buildHTML()
@@ -25,7 +33,7 @@ function newGovernanceReportsReportsPage() {
const tabs = ['Profiles', 'Referrals', 'Supporters', 'Mentors', 'Pools', 'Assets', 'Features', 'Positions']
let HTML = ''
HTML = HTML + ''
- HTML = HTML + UI.projects.education.spaces.docsSpace.mainSearchPage.addSearchHeader()
+ HTML = HTML + UI.projects.governance.spaces.reportsSpace.filtersHeader.addFilterHeader()
// Tabs
HTML = HTML + '