comparison web/views/set.tpl @ 291:f7261dd970da

- replace ssl client certs with cookies - remove unused ssh code - add /set?fake=1 test mode
author Matt Johnston <matt@ucc.asn.au>
date Sat, 06 Jul 2019 16:32:16 +0800
parents 6b9be5dec572
children ef407d48cbe5
comparison
equal deleted inserted replaced
290:35ae717d48f0 291:f7261dd970da
19 19
20 body { 20 body {
21 font-family: sans-serif; 21 font-family: sans-serif;
22 } 22 }
23 23
24 a {
25 color: #000;
26 }
27
24 input { 28 input {
25 border: 2px solid transparent; 29 border: 2px solid transparent;
26 border-radius: 4px; 30 border-radius: 4px;
27 background-color: white; 31 background-color: white;
28 border-color: black; 32 border-color: black;
78 margin-top: 10pt; 82 margin-top: 10pt;
79 } 83 }
80 84
81 span.inputrow { 85 span.inputrow {
82 //vertical-align: center; 86 //vertical-align: center;
87 }
88
89 #mailauth {
90 display: none;
83 } 91 }
84 92
85 </style> 93 </style>
86 <title>Set templog</title> 94 <title>Set templog</title>
87 </head> 95 </head>
232 }) 240 })
233 241
234 if (!allowed) { 242 if (!allowed) {
235 $("#savebutton").attr("disabled", true); 243 $("#savebutton").attr("disabled", true);
236 $('#status').text("No cert") 244 $('#status').text("No cert")
245 $('#mailauth').show();
237 } 246 }
238 247
239 $("#savebutton").click(function() { 248 $("#savebutton").click(function() {
240 setter.save(); 249 setter.save();
241 }) 250 })
317 </section> 326 </section>
318 327
319 <span id="savebox"> 328 <span id="savebox">
320 <input type="button" id="savebutton" value="Save"/> 329 <input type="button" id="savebutton" value="Save"/>
321 <span id="status"></span> 330 <span id="status"></span>
331 <span id="mailauth"> <a href="mailto:{{email}}?Subject=Allow%20Templog&body=Hash%20is%20{{cookie_hash}}">Email</a>
322 </span> 332 </span>
333 </span>
323 334
324 335
325 </body> 336 </body>
326 337
327 </html> 338 </html>