base.hbs 4.13 KB
Newer Older
1
2
3
4
5
6
7
<!DOCTYPE html>
<html lang="en" style="background-color: #fafafa;">
  <head>
    <meta charset="utf-8">
    <title>Jugendwettbewerb Informatik: Programmieren – einfacher als du denkst!</title>
    <link rel="stylesheet" href="/static/lib/bulma/bulma-0.7.5.css">
    <link rel="icon" href="/static/images/favicon.png" type="image/png">
8
9
10
11
12
    <style>
       ::placeholder {
          color: #888 !important;
       }
    </style>
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
  </head>
  <body style="background-color: white;">
    <div class="container">
      <div class="columns">
        <div class="column is-two-thirds">
          <p>&nbsp;<p>
          <a href="/">
            <img style="float:left; margin-right: 10px;" src="/static/images/klein.png">
          </a>
          <h1 class="title">Jugendwettbewerb Informatik</h1>
          <h2 class="subtitle">Programmieren – einfacher als du denkst!</h2>
        </div>
        <div class="column is-one-third">
          &nbsp;
          {{#if logged_in}}
            <div class="columns alogin">
              <div class="column is-four-fifths">
                Eingeloggt als <em>{{ username }}</em>
                {{#if firstname}}{{#if lastname}}
                  ({{firstname}} {{lastname}})
                {{/if}}{{/if}}
                {{#if teacher}}
                   [Lehrer]
                {{/if}}
                <br>
                <a href="/profile" class="button is-info is-small">👤 &nbsp; Profil</a>
                {{#if teacher}}
                  <a href="/group/" class="button is-info is-small">&nbsp; Gruppenverwaltung</a>
                {{/if}}
              </div>
              <div class="column"><a href="/logout" class="button is-small is-danger" type="submit">&nbsp; Logout</a></div>
            </div>
            <div class="columns alogin">
              <div class="column"></div>
            </div>
          {{else}}
49
            <!-- form action="login" method="post">
50
              <div class="columns blogin">
51
                <div class="column is-three-fifths"><input class="input is-small" type="text" name="username" autofocus placeholder="Benutzername" style="width:50%"><input class="input is-small" type="password" name="password" placeholder="Passwort" style="width:50%"></div>
52
53
                <div class="column"><input class="button is-small is-success" type="submit" value="↪ &nbsp; Login" onclick="login();"></div>
              </div>
54
            </form -->
55
            <form action="clogin" method="post" autocomplete="off">
56
              <div class="columns blogin">
57
                <div class="column is-three-fifths"><input class="input is-small" type="text" name="code" placeholder="Gruppencode oder Logincode" autofocus></div>
58
59
60
61
62
63
                <div class="column"><input class="button is-small is-success" type="submit" value="↪ &nbsp; Login"></div>
              </div>
            </form>
            {{#if self_url}}
              {{#each oauth_links}}
                <div class="columns blogin">
64
                  <div class="column is-two-fifth"></div>
65
                    <div class="column">
66
                    <a class="button is-small is-info" href="{{ this.2 }}{{ ../self_url }}/oauth/{{ this.0 }}">{{ this.1 }}</a>
67
68
69
70
71
72
73
                  </div>
                </div>
              {{/each}}
            {{/if}}  
          {{/if}}
        </div>
      </div>
74
75
76
77
78
79
80
81
82

      <div class="columns alogin">
        <div class="column is-8 is-offset-2">
          <div class="notification is-danger">
            <h3 class="title is-5">Achtung Testplattform!</h3>
            <p>Diese Wettbewerbsplattform ist noch in der Erprobungsphase. Bitten benutzen Sie für die Teilnahme am Jugendwettbewerb Informatik 2020 <a href="https://wettbewerb.jwinf.de">die aktuelle Wettbewerbsplattform</a> unter <a href="https://wettbewerb.jwinf.de">wettbewerb.jwinf.de</a>.</p>
          </div>
        </div>
      </div>
83
84
85
86
87
88
89
90
91
92
93
94
95
        
      {{~> page}}
    </div>
    &nbsp;
    <footer class="footer">
      <div class="content has-text-centered">
        <p>
          Der <strong>Jugendwettbewerb Informatik</strong> ist ein Angebot der <a href="https://bwinf.de">Bundesweiten Informatikwettbewerbe</a>.
        </p>
      </div>
    </footer>
  </body>
</html>