neon_arch commited on
Commit
7a92345
1 Parent(s): 4d74b81

✨ feat: provide seperate search bars for the home & search pages (#185)

Browse files
public/templates/search_bar.html CHANGED
@@ -1,25 +1,2 @@
1
- <div class="search_bar">
2
- <input
3
- type="search"
4
- name="search-box"
5
- value="{{this.pageQuery}}"
6
- placeholder="Type to search"
7
- />
8
- <button type="submit" onclick="searchWeb()">search</button>
9
- <div class="error_box">
10
- <button onclick="toggleErrorBox()" class="error_box_dropdown">
11
- <img src="./images/info.svg" alt="Info icon for error box" />
12
- </button>
13
- {{#each engineErrorsInfo}}
14
- <div class="error_item">
15
- <span class="engine_name">{{{this.engine}}}</span>
16
- <span class="engine_name">{{{this.error}}}</span>
17
- <span
18
- class="severity_color"
19
- style="background: {{{this.severity_color}}}; width: 400px; height: 400px"
20
- >lsl</span
21
- >
22
- </div>
23
- {{/each}}
24
- </div>
25
  </div>
 
1
+ {{>bar this}}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  </div>
public/templates/search_page_search_bar.html ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {{>bar this}}
2
+ <div class="error_box">
3
+ {{#if engineErrorsInfo}}
4
+ <button onclick="toggleErrorBox()" class="error_box_toggle_button">
5
+ <img src="./images/warning.svg" alt="Info icon for error box" />
6
+ </button>
7
+ <div class="dropdown_error_box">
8
+ {{#each engineErrorsInfo}}
9
+ <div class="error_item">
10
+ <span class="engine_name">{{{this.engine}}}</span>
11
+ <span class="engine_name">{{{this.error}}}</span>
12
+ <span class="severity_color" style="background: {{{this.severity_color}}};"></span>
13
+ </div>
14
+ {{/each}}
15
+ </div>
16
+ {{else}}
17
+ <button onclick="toggleErrorBox()" class="error_box_toggle_button">
18
+ <img src="./images/info.svg" alt="Warning icon for error box" />
19
+ </button>
20
+ <div class="dropdown_error_box">
21
+ <div class="no_errors">
22
+ Everything looks good 🙂!!
23
+ </div>
24
+ </div>
25
+ {{/if}}
26
+ </div>
27
+ </div>