From 2e36559821df9e7ab8207e41aa611fbee5dd4f40 Mon Sep 17 00:00:00 2001 From: 3eef8a28f26fb2bcc514e6f1938929a1f931762 <116031952+3eef8a28f26fb2bcc514e6f1938929a1f931762@users.noreply.github.com> Date: Fri, 10 Feb 2023 15:53:47 -0500 Subject: [PATCH] Begin working on search --- src/GenerateHtml.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/GenerateHtml.cpp b/src/GenerateHtml.cpp index c7dbf78..fe71925 100644 --- a/src/GenerateHtml.cpp +++ b/src/GenerateHtml.cpp @@ -201,7 +201,9 @@ void generate_course_page(const std::string& course_id, tag(os,TAG::BEGIN,R"(body class="search_plugin_added")"); tag(os,TAG::BEGIN,R"(div id="qlog-header")"); tag(os,TAG::INLINE) << R"()" << '\n'; - tag(os,TAG::INLINE) << R"R()R" << '\n'; + tag(os,TAG::BEGIN,R"R(form onsubmit="search_helper()")R"; + tag(os,TAG::INLINE) << R"()" << '\n'; + tag(os,TAG::END,"form"); tag(os,TAG::END,"div"); tag(os,TAG::BEGIN,R"(div id="cd-flex")"); tag(os,TAG::BEGIN,R"(div id="course-info-container")"); @@ -248,7 +250,7 @@ void generate_years_table(const Json::Value& terms_offered, const Json::Value& cross_listings, const quatalog_data_t& qlog, std::ostream& os) { - tag(os,TAG::BEGIN,"table"); + tag(os,TAG::BEGIN,R"(table id="years-table")"); tag(os,TAG::BEGIN,"thead"); tag(os,TAG::BEGIN,"tr");