base.hbs 5.26 KB
Newer Older
1
2
3
4
<!DOCTYPE html>
<html lang="en" style="background-color: #fafafa;">
  <head>
    <meta charset="utf-8">
5
    <title>Jugendwettbewerb Informatik: Programmieren – leichter, 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
  </head>
18
  <body style="background-color: {{#if server_message}}#fbebeb{{else}}white{{/if}};">
19
20
21
22
    <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
          <h1 class="title">Jugendwettbewerb Informatik</h1>
31
          <h2 class="subtitle">Programmieren – leichter, als du denkst!</h2>
32
33
34
35
        </div>
        <div class="column is-one-third">
          &nbsp;
          {{#if logged_in}}
36
            {{#if firstlogin }}{{else}}
37
            <div class="columns alogin" style="margin-bottom: 0px;">
38
              <div class="column is-three-fifths">
39
40
41
42
43
44
                Eingeloggt als <em>{{ username }}</em>
                {{#if firstname}}{{#if lastname}}
                  ({{firstname}} {{lastname}})
                {{/if}}{{/if}}
                {{#if teacher}}
                   [Lehrer]
45
46
47
48
49
50
                {{/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">
51
52
                <a href="/profile" class="button is-info is-small">👤 &nbsp; Profil</a>
                {{#if teacher}}
53
                  <a href="/group/" class="button is-warning is-small">&nbsp; Gruppenverwaltung</a>
54
                  <a href="/teacher" class="button is-primary is-small">👨‍🏫 &nbsp; Lehrer-Informationen</a>
55
56
57
                {{/if}}
              </div>
            </div>
58
            {{/if}}
59
          {{else}}
Schuster's avatar
Schuster committed
60
            <!-- form action="/login" method="post">
61
              <div class="columns blogin">
62
                <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>
63
64
                <div class="column"><input class="button is-small is-success" type="submit" value="↪ &nbsp; Login" onclick="login();"></div>
              </div>
65
            </form -->
66
67
            <form action="/clogin" method="post" autocomplete="off" class="columns blogin">
              <!-- <div class=> -->
68
                <div class="column is-three-fifths"><input class="input is-small" type="text" name="code" placeholder="Gruppencode oder Logincode" autofocus></div>
69
                <div class="column"><input class="button is-small is-success" type="submit" value="↪ &nbsp; Login" style="font-weight:bold;"></div>
70
              <!-- </div> -->
71
72
73
74
            </form>
            {{#if self_url}}
              {{#each oauth_links}}
                <div class="columns blogin">
75
76
                  <div class="column is-offset-half">
                     <a class="button is-small is-info"  style="font-weight:bold;" 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
86
87
88
89
90
91
92
      {{#if server_message}}
        {{#if firstlogin }}{{else}}
          <div class="columns alogin">
            <div class="column is-8 is-offset-2">
              <div class="notification is-danger">
                {{{ server_message }}}
              </div>
            </div>
93
          </div>
94
        {{/if}}
95
      {{/if}}
96
97
98
        
      {{~> page}}
    </div>
99
    <div style="margin-bottom:50px;"> &nbsp; </div>
100
101
102
    <footer class="footer">
      <div class="content has-text-centered">
        <p>
103
104
105
106
107
108
          <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}}
109
        </p>
110
111
112
113
114
115
        <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>
116
117
118
119
           {{#if teacher}}
           &nbsp;  &nbsp;  ·  &nbsp;  &nbsp;        
           0228 9762 6999
           {{/if}}
120
121
        </p>
        <!--  <p>Diese Wettbewerbsplattform ist freie Software.</p> -->
122
123
124
125
      </div>
    </footer>
  </body>
</html>