#!{{ python_executable }} import cgitb cgitb.enable() print "<html><head>" print """ <script type="text/javascript" src="static/jquery-1.10.2.min.js"></script> <link rel="stylesheet" href="static/pure-min.css"> <link rel="stylesheet" href="static/style.css">""" print "</head><body>" print "<h1>This is the monitoring interface</h1>" print "<h2>Please set your password for later access</h2>" print """ <form action="/index.cgi" method="post" class="pure-form-aligned"> <div class="pure-control-group"> <label for="password">Password*:</label> <input placeholder="Set your password" type="password" name="password" id="password"></br> </div><div class="pure-control-group"> <label for="password">Verify Password*:</label> <input placeholder="Verify password" type="password" name="password_2" id="password_2"></br> </div><p id="validate-status" style="color:red"></p> <div class="pure-controls"> <button id="register-button" type="submit" class="pure-button pure-button-primary" disabled>Access</button></div> </form> <script type="text/javascript" src="static/monitor-register.js"></script> </body></html> """