summaryrefslogtreecommitdiff
path: root/root.template
blob: 2cfbbcf45d870d06ead5bb15fded81a9034a8279 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<html>
    <head>
        <title>Noteman</title>
        <style>
        .box {
            padding: 10px;
            border: 1px solid black;
        }
        #name {
            width: 300px;
        }
        td {
            padding: 0 15px
        }

        .help {
            display: none;
        }

        :checked + .help {
            display: block;
        }
        </style>
    </head>
    <body>
        <div class="box">
            <label for="dohelp">Vis hjælp</label>
            <input type="checkbox" id="dohelp">
            <div class="help">
                <h4>Navn format</h4>

                <pre>$DATE/$COURSE/$MODULE/$SECTION/$PART</pre>

                <table>
                    <tr>
                        <td>$DATE:</td>
                        <td>ISO Dato</td>
                    </tr>
                    <tr>
                        <td>$COURSE:</td>
                        <td>Kursus eller emne felt</td>
                    </tr>
                    <tr>
                        <td>$MODULE:</td>
                        <td>Del af kursus såsom enkelt lektion</td>
                    </tr>
                    <tr>
                        <td>$SECTION:</td>
                        <td>Del af lektion, såsom lektier eller noter</td>
                    </tr>
                    <tr>
                        <td>$PART:</td>
                        <td>Et section kan have flere sider</td>
                    </tr>
                </table><br>

                <p>Eksempler:</p>
                <pre>2020-09-09/sig/mm1/noter/1
    2020-09-09/sig/mm1/noter/2
    2020-09-09/sig/mm1/opg/1</pre>
                <table>
                    <tr>
                        <th>Lokations format</th>
                    </tr>
                    <tr>
                        <td>Papir</td>
                        <td>P</td>
                    </tr>
                    <tr>
                        <td>Bog</td>
                        <td>B[id]S[page]</td>
                    </tr>
                    <tr>
                        <td>Noter git repository</td>
                        <td>G</td>
                    </tr>
                </table><br><br>
            </div>
            <form method="POST">
                <label for="name">Name</label>
                <input id="name" name="name" type="text">
                <label for="location">Location</label>
                <input id="location" name="location" type="text">
                <input type="submit" value="go">
            </form>
        </div><br><br>
        <table>
            <tr>
                <th>Ref</th>
                <th>Navn</th>
            </tr>
            {{ range .Notes }}
            <tr>
                <td style="font-family: monospace;">#{{ .Hash }}/{{ .Location }}</td>
                <td>{{ .Name }}</td>
            </tr>
            {{ end }}
        </table>
    </body>
</html>