From 691f0c350badbcda362ba33c5443855c49bb31ce Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Thu, 26 Sep 2019 10:39:08 -0600 Subject: [PATCH] Make search options interactive --- app/views/search/controller.js | 3 ++ app/views/search/index.js | 71 ++++++++++++++++++++++++++++++---- 2 files changed, 67 insertions(+), 7 deletions(-) diff --git a/app/views/search/controller.js b/app/views/search/controller.js index dde4203..5e830b2 100644 --- a/app/views/search/controller.js +++ b/app/views/search/controller.js @@ -6,6 +6,9 @@ export class SearchController extends ViewController { // which stores state in this.appState and the view controller's state to this.state super(state, i18n, 'search', { lastSearch: '', + expandSearchOptions: false, + searchSource: 'inventaire', + searchBy: 'title', done: true, results: { humans: [], diff --git a/app/views/search/index.js b/app/views/search/index.js index a3b0ebd..44b6928 100644 --- a/app/views/search/index.js +++ b/app/views/search/index.js @@ -2,6 +2,7 @@ import html from 'choo/html'; import { SearchController } from './controller'; // The controller for this view, where processing should happen. import { resultDetails } from './resultDetails'; +import { modal } from '../partials/modal'; // This is the view function that is exported and used in the view manager. export const searchView = (state, emit, i18n) => { @@ -42,32 +43,88 @@ export const searchView = (state, emit, i18n) => { `, + // Search Options Section html`
-
+

Search Options

- +
-