|
Template:MindTouch > Reports > Controls > SearchAnalyticsTermSearch
SearchAnalyticsTermSearchTable of contentsNo headers/** * Search Analytics Term Search Box */ var uri = $uri; var preserve = $params; var searchQuery = $query; var searchTerm = $term; <form class="mt-search-input" method="get" action=(uri)> foreach (var paramName:paramValue in preserve where paramName != "term") { <input type="hidden" name=(paramName) value=(paramValue) /> } // we're in search query view mode if (searchQuery) { <input type="hidden" name="query" value=(searchQuery) /> // user is on the detailed view, provide a back link <span class="back"> <a href=(uri & preserve & {term: searchTerm})> wiki.localize("MindTouch.SearchAnalytics.detail.back"); </a> </span> } else { <label for=(@query)>wiki.localize("MindTouch.SearchAnalytics.search.filter-term")</label> <input id=(@query) class="term" type="text" name="term" value=(searchTerm) /> } <input class="search" type="submit" value=(wiki.localize("MindTouch.SearchAnalytics.search.term.button")) /> </form> |