]> code.communitydata.science - coldcallbot-discord.git/blob - templates/cold_caller.html
Adding public vs. private interface
[coldcallbot-discord.git] / templates / cold_caller.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4     <title>Random Student Picker</title>
5     <link rel="stylesheet" href='/static/main.css' />
6     <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
7   <script src="{{ url_for('static', filename='process_button.js') }}"></script>
8 </head>
9 <body>
10 <h3>
11 The next student is:
12 </h3>
13
14 <h2 id='studentName' name='studentName'>{{student}}</h2>
15
16
17 {% if student != '' %}
18
19
20   {% if public is none %}
21 <button class='assessment' id="goodButton" value="G">Good</button>
22 <button class='assessment' id="badButton" value="B">Bad</button>
23 <button class='assessment' id="neutralButton" value="M">Neutral</button>
24 <button class='assessment' id="absentButton" value="absent">Absent</button>
25 <button class='assessment' id="nextButton" value="get_next">Skip</button>
26
27
28   {% else %}
29 <button class='assessment' id="neutralButton" value="?">Next Student</button>
30 <button class='assessment' id="absentButton" value="absent">Absent</button>
31   {% endif %}
32
33 {% else %}
34 <form method="post" id="todo-form">
35         <button class='rand-button' type="submit">Get random student</button>
36
37 </form>
38 {% endif %}
39
40 </body>
41 </html>

Community Data Science Collective || Want to submit a patch?