summaryrefslogtreecommitdiff
path: root/components/index.html
blob: 7c4cb822b054c371ac2ce1091c4bd118b7a1963c (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html>
    <head>
        <title>Action Points Journal</title>
        <meta charset="utf-8" name="viewport" content="width=device-width,initial-scale=1"/>
        <link rel="stylesheet" type="text/css" href="/assets/style.css" />
        <link rel="icon" sizes="64x64" href="/assets/favicon/wolfhead_negated.ico" />
    </head>
    <body>
        <div id="ancestor">
            <hr />
            <div>
                HELLO {{.ID}}
                <br />
                You have {{len .Actions}} actions.
                <br />
                Your current score: {{.Score}}
                <br />
                {{ range .Actions }}
                    Action Name: {{.Name}}
                    <br />
                    Action Magnitude: {{.Magnitude}}
                    <br />
                    Action Type: {{.Type}}
                    <br />
                    Repeatable: {{.Repeatable}}
                    <br />
                {{end}}
            </div>

            <div>
                <h1>Add action</h1>
                <form method="POST">
                    <label>Name:</label><br />
                    <input type="text" name="name"><br />
                    <label>Magnitude:</label><br />
                    <input type="number" default="1" name="magnitude"><br />
                    <label>Repeatable:</label><br />
                    <input type="checkbox" name="repeatable"></input><br />
                    <input type="radio" name="act_type" value="plus" checked>
                    <label for="plus">Plus</label>
                    <input type="radio" name="act_type" value="minus">
                    <label for="minus">Minus</label><br>
                    <input type="submit">
                </form>
            </div>
        </div>
    </body>
</html>