diff options
Diffstat (limited to 'views/partials/search.ejs')
-rw-r--r-- | views/partials/search.ejs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/views/partials/search.ejs b/views/partials/search.ejs new file mode 100644 index 0000000..f838b4c --- /dev/null +++ b/views/partials/search.ejs @@ -0,0 +1,18 @@ +<div class='searchbox'> + <h2>Search Recipes</h2> + <form id='searchForm'> + <% if(page === 'search') { %> + <input id='srchInpt' type="text" value='<%= query %>'> + <button id='srchBtn' type='submit'> + <i class='fas fa-search'></i> + </button> + <% } else {%> + <input id='srchInpt' type="text"> + <button id='srchBtn' type='submit'> + <i class='fas fa-search'></i> + </button> + <% } %> + </form> +</div> + +<script type='text/javascript' src="/libs/search.js"></script>
\ No newline at end of file |