aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/views/navbar.ejs
blob: c339acce9a9ef9fa7beced2763b863629f3cdffa (plain) (blame)
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
    <!-- Navbar
    ================================================== -->
    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="navbar-inner" id="top-navbar">
            <div class="container">
                <% if (!loggedin) { %>
                <div class="row-fluid collapse login-collapse">
                    <div class="span7">
                        <!--<img src="/img/logo_white.png">-->
                    </div>
                    <div class="span5">
                        <form action="/login" method="post" id="login-form" class="form-horizontal">
                            <div class="control-group">
                                <div class="input-prepend">
                                    <span class="add-on"><i class="icon-envelope icon-white"></i></span>
                                    <input type="email" name="user" id="user-tf" placeholder="E-post" required>
                                </div>
                            </div>
                            <div class="control-group">
                                <div class="input-prepend">
                                    <span class="add-on"><i class="icon-lock icon-white"></i></span>
                                    <input type="password" id="pass-tf" placeholder="Passord" required>
                                    </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span7">
                                    <label class="checkbox">
                                        <input type="checkbox"> Remember me
                                    </label>
                                </div>
                                <div class="span5">
                                    <button type="submit" class="btn btn-inverse btn-small">Logg inn</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <% } %>
                <div class="row">
                    <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target="nav-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="brand" href="#">Divid</a>
                    <div class="nav-collapse collapse">
                        <ul class="nav">
                            <li><a href="#signup">signup</a></li>
                            <li><a href="#dashboard">Dashboard</a></li>
                        </ul>
                    </div>
                    <% if(!loggedin) { %><a class="brand login" data-toggle="collapse" data-target=".login-collapse" href="#login">Logg inn</a>
                    <% } else { %><a class="brand login">Logg ut</a>
                    <% } %>
                </div>
            </div>
        </div>
    </div>