upload.html 2.18 KB
Newer Older
Kiryuu Sakuya's avatar
Update  
Kiryuu Sakuya committed
1
2
3
4
5
6
7
8
9
<!DOCTYPE html>
<html lang="en">

<head>
    <module href="/components/head.html"></module>
    <title>Upload - Nekoshima</title>
</head>

<body>
Kiryuu Sakuya's avatar
Kiryuu Sakuya committed
10
11
12
13
14
    {{if .User.Username}}
    <module href="/components/navbar-login.html"></module>
    {{else if .Username}}
    <module href="/components/navbar-login.html"></module>
    {{else}}
Kiryuu Sakuya's avatar
Update  
Kiryuu Sakuya committed
15
    <module href="/components/navbar.html"></module>
Kiryuu Sakuya's avatar
Kiryuu Sakuya committed
16
17
    {{end}}

Kiryuu Sakuya's avatar
Update  
Kiryuu Sakuya committed
18
    <div class="container content top-padding">
Kiryuu Sakuya's avatar
Kiryuu Sakuya committed
19
        <form class="form-horizontal" enctype="multipart/form-data" action="/upload" method="post">
Kiryuu Sakuya's avatar
Update  
Kiryuu Sakuya committed
20
            <div class="account-info">
Kiryuu Sakuya's avatar
Kiryuu Sakuya committed
21
22
23
24
25
                <h4 class="h4 mb-3 font-weight-normal">Hi, {{.User.Username}}!</h4>
            </div>
            {{with .ErrorMessage}}
            <div class="alert alert-danger" role="alert">
                {{.}}
Kiryuu Sakuya's avatar
Update  
Kiryuu Sakuya committed
26
            </div>
Kiryuu Sakuya's avatar
Kiryuu Sakuya committed
27
            {{end}}
Kiryuu Sakuya's avatar
Update  
Kiryuu Sakuya committed
28
            <h1 class="h3 mb-3 font-weight-normal">Upload</h1>
Kiryuu Sakuya's avatar
Kiryuu Sakuya committed
29
30
31
32
33
34
35
36
37
38
39
40
            <div class="form-check form-check-inline">
                <input class="form-check-input" type="radio" name="uploadMethod" id="uploadMethodlocal" value="local">
                <label class="form-check-label" for="uploadMethodlocal">Upload to instance</label>
            </div>
            <div class="form-check form-check-inline">
                <input class="form-check-input" type="radio" name="uploadMethod" id="uploadMethodipfs" value="ipfs">
                <label class="form-check-label" for="uploadMethodipfs">Upload to IPFS</label>
            </div>
            <div class="form-check form-check-inline">
                <input class="form-check-input" type="radio" name="uploadMethod" id="uploadMethods3" value="s3" disabled>
                <label class="form-check-label" for="uploadMethods3">Upload to S3</label>
            </div>
Kiryuu Sakuya's avatar
Update  
Kiryuu Sakuya committed
41
            <div class="form-group">
Kiryuu Sakuya's avatar
Kiryuu Sakuya committed
42
43
                <label for="chooseFile">Please select your music.</label>
                <input type="file" name="uploadAudio" class="form-control-file" id="chooseFile">
Kiryuu Sakuya's avatar
Update  
Kiryuu Sakuya committed
44
            </div>
Kiryuu Sakuya's avatar
Kiryuu Sakuya committed
45
            <button class="btn btn-lg btn-primary btn-block" type="submit" value="upload">Upload</button>
Kiryuu Sakuya's avatar
Update  
Kiryuu Sakuya committed
46
47
48
49
50
51
52
53
54
        </form>
    </div>

    <script src="./bundle.js"></script>

    <module href="/components/footer.html"></module>
</body>

</html>