@@ -19,19 +19,6 @@ <h1>JFP Data</h1>
19
19
< div class ="metanav ">
20
20
< a href ="{{ url_for('logout') }} "> Log out</ a >
21
21
</ div >
22
- < div class ="console ">
23
- < form action ="{{ url_for('add_entry') }} " method ="post " class ="add-entry ">
24
- < ul style ="list-style: none ">
25
- < li > Printer:
26
- < li > < textarea name ="printer " rows ="1 " cols ="10 "> </ textarea >
27
- < li > Copies:
28
- < li > < textarea name ="copies " rows ="1 " cols ="10 "> </ textarea >
29
- < li > Success:
30
- < li > < textarea name ="success " rows ="1 " cols ="10 "> </ textarea >
31
- < li > < input type ="submit " value ="Add ">
32
- </ ul >
33
- </ form >
34
- </ div >
35
22
< div class ="table-stats ">
36
23
< h4 class ="stat "> Total requests: {{ numrequests }}</ h4 >
37
24
< h4 class ="stat "> Requests in the last 24 hours: {{ dayrequests }}</ h4 >
@@ -69,6 +56,29 @@ <h4 class="stat">Requests in the last 24 hours: {{ dayrequests }}</h4>
69
56
{% endfor %}
70
57
</ table >
71
58
</ div >
72
- {% endif %}
59
+ {% endif %}
60
+ < label style ="margin: 15px ">
61
+ < input class ="show-console " type ="checkbox ">
62
+ Show console
63
+ </ label >
64
+ < div class ="console ">
65
+ < form action ="{{ url_for('add_entry') }} " method ="post " class ="add-entry ">
66
+ < ul style ="list-style: none ">
67
+ < li > Printer:
68
+ < li > < textarea name ="printer " rows ="1 " cols ="10 "> </ textarea >
69
+ < li > Copies:
70
+ < li > < textarea name ="copies " rows ="1 " cols ="10 "> </ textarea >
71
+ < li > Success:
72
+ < li > < textarea name ="success " rows ="1 " cols ="10 "> </ textarea >
73
+ < li > < input type ="submit " value ="Add ">
74
+ </ ul >
75
+ </ form >
76
+ </ div >
73
77
{% endif %}
78
+ < script src ="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js "> </ script > < script >
79
+ $ ( ".console" ) . hide ( ) ;
80
+ $ ( ".show-console" ) . change ( function ( ) {
81
+ $ ( ".console" ) . toggle ( this . checked ) ;
82
+ } ) ;
83
+ </ script >
74
84
</ div >
0 commit comments