aboutsummaryrefslogtreecommitdiff
path: root/src/templates/search_results.html
blob: 9bac74f0ba12975191c237758596bebb6c2afbee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!doctype html>
<html lang="en">
  <head>
    <title>Solfege search results - {{original_query}}</title>
  </head>
  <body>
    <!--   Normalized: {{normalized_query}} -->
    <!-- Denormalized: {{denormalized_query}} -->

    <h1>Solfege search results</h1>
    <p>
      <form action="/search" method="get">
        <input type="text" name="q" value="{{original_query}}">
        <input type="submit" value="Search">
      </form>
    </p>

    <ol>
      {{#each results}}
      <li><b>{{title}} - {{artist_name}}</b></li>
      {{/each}}
    </ol>

    <h2>None of these right? Remebered the song?</h2>
    <p>Submit the song this phrase is from!</p>
    <p>
      <form action="/submit_song">
        <input type="hidden" name="phrase" value="{{denormalized_query}}">
        <input type="text" name="title" placeholder="Song title">
        <input type="submit" value="Improve the world">
      </form>
    </p>
  </body>
</html>