summaryrefslogtreecommitdiff
path: root/website/templates/canned_responses.html
blob: d5d206d0290fd69aea226c693c2895ba684b90e8 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<html>
  <head>
    <style>
      blockquote {
      margin: 1em;
      padding: 1ex;
      background-color: #EEE;
      }

      ul#list {
      list-style-type: none;
      padding: 0;
      margin: 0;
      }

      ul#list li {
      }
    </style>
    <script src="jquery-2.2.3.min.js"></script>
    <script src="canned_responses.js"></script>
  </head>
  <body>

    <form id="evalform">
      Submitter's name:
      <input type="text" name="submitter_name" id="submitter_name"><br/>

      Project Name:
      <input type="text" name="projname" id="projname"><br/>

      Savannah Request Number:
      <input type="text" name="regnum" id="regnum"><br/>

      <br/>
      <ul id="list">
      </ul>
    </form>

    <script>
      $(document).ready(function(){

        var ol = $("#list");

        gnu_sv_eval_canned_responses.forEach(function(x){
      var html = "<li><label>" +
                 '<input type="checkbox" name="cb_' + x.id + '" id="cb_' + x.id + '">' +
                 x.short +
                 '</label></li>';

          ol.append(html);
        });

      });

    </script>
  </body>
</html>