base.hbs 5.3 KB
Newer Older
1
2
3
4
5
<!DOCTYPE html>
<html lang="en" style="background-color: #fafafa;">
  <head>
    <meta charset="utf-8">
    <title>Jugendwettbewerb Informatik: Programmieren – einfacher als du denkst!</title>
6
    <link rel="stylesheet" href="/static/lib/bulma/medal-bulma-0.7.5.css">
7
    <link rel="icon" href="/static/images/favicon.png" type="image/png">
8
9
10
11
    <style>
       ::placeholder {
          color: #888 !important;
       }
12
13
14
15
       .blogin {
          padding: 0px;
          margin: -20px;
       }
16
    </style>
17
18
19
20
21
22
  </head>
  <body style="background-color: white;">
    <div class="container">
      <div class="columns">
        <div class="column is-two-thirds">
          <p>&nbsp;<p>
23
          {{#if firstlogin }}
24
            <img style="float:left; margin-right: 10px;" src="/static/images/klein.png">
25
26
27
28
29
          {{else}}    
            <a href="/">
              <img style="float:left; margin-right: 10px;" src="/static/images/klein.png">
            </a>
          {{/if}}
30
31
32
33
34
35
          <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}}
36
            {{#if firstlogin }}{{else}}
37
            <div class="columns alogin">
38
              <div class="column is-three-fifths">
39
40
41
42
43
44
45
46
47
48
                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}}
49
                  <a href="/group/" class="button is-warning is-small">&nbsp; Gruppenverwaltung</a>
50
51
52
53
54
55
56
                {{/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>
57
            {{/if}}
58
          {{else}}
Schuster's avatar
Schuster committed
59
            <!-- form action="/login" method="post">
60
              <div class="columns blogin">
61
                <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>
62
63
                <div class="column"><input class="button is-small is-success" type="submit" value="↪ &nbsp; Login" onclick="login();"></div>
              </div>
64
            </form -->
65
66
            <form action="/clogin" method="post" autocomplete="off" class="columns blogin">
              <!-- <div class=> -->
67
                <div class="column is-three-fifths"><input class="input is-small" type="text" name="code" placeholder="Gruppencode oder Logincode" autofocus></div>
68
                <div class="column"><input class="button is-small is-success" type="submit" value="↪ &nbsp; Login"></div>
69
              <!-- </div> -->
70
71
72
73
            </form>
            {{#if self_url}}
              {{#each oauth_links}}
                <div class="columns blogin">
74
                  <div class="column is-two-fifth"></div>
75
                    <div class="column">
76
                    <a class="button is-small is-info" href="{{ this.2 }}{{ ../self_url }}/oauth/{{ this.0 }}">{{ this.1 }}</a>
77
78
79
                  </div>
                </div>
              {{/each}}
80
            {{/if}}
81
82
83
          {{/if}}
        </div>
      </div>
84

85
      {{#if firstlogin }}{{else}}
86
87
88
89
90
91
92
93
      <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>
94
      {{/if}}
95
96
97
        
      {{~> page}}
    </div>
98
    <div style="margin-bottom:50px;"> &nbsp; </div>
99
100
101
    <footer class="footer">
      <div class="content has-text-centered">
        <p>
102
103
104
105
106
107
          <img src="/static/images/dachmarke_72.png" style="width:119px; height:72px; vertical-align: middle; margin-right:20px;"> Der <strong>Jugendwettbewerb Informatik</strong> ist ein Angebot der
          {{#if firstlogin }}
            Bundesweiten Informatikwettbewerbe.
          {{else}}
            <a href="https://bwinf.de">Bundesweiten Informatikwettbewerbe</a>.
          {{/if}}
108
        </p>
109
110
111
112
113
114
        <p>
           <a href="mailto:jwinf@bwinf.de">jwinf@bwinf.de</a>
           &nbsp;  &nbsp;  ·  &nbsp;  &nbsp;
           <a href="https://bwinf.de/jugendwettbewerb/datenschutz/">Datenschutz</a>
           &nbsp;  &nbsp;  ·  &nbsp;  &nbsp;
           <a href="https://bwinf.de/impressum/">Impressum</a>
115
116
117
118
           {{#if teacher}}
           &nbsp;  &nbsp;  ·  &nbsp;  &nbsp;        
           0228 9762 6999
           {{/if}}
119
120
        </p>
        <!--  <p>Diese Wettbewerbsplattform ist freie Software.</p> -->
121
122
123
124
      </div>
    </footer>
  </body>
</html>