aboutsummaryrefslogtreecommitdiff
path: root/central/src/main/resources/admin/sudo.ftlh
blob: 65db5176ee2b80750274cffa93aa527d01a4e1f8 (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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <#include "../style.ftlh">
    <title>sudo | Admin</title>
</head>
<body class="markdown-body">
<h1>sudo</h1>
<p>You are logged in as: ${asn}.</p>
<p>Set a cookie that allows you to sudo as another ASN.</p>
<p>The target ASN will not be created if it does not exist.</p>
<p>The target ASN may not exist in the WHOIS database.</p>
<#if errors??>
<div>
    <p style="color:red">Errors in the previous form:</p>
    <ul>
        <#list errors as error>
        <li>${error}</li>
    </#list>
    </ul>
</div>
</#if>
<form action="/admin/sudo" method="post">
    <label for="asn">Target ASN:</label><br />
    <input type="text" id="asn" name="asn"
           placeholder="${asn}"
           value="${(target_asn)!}"><br />
    <br />
    <input type="submit">
</form>
</body>
</html>