login.tpl 6.55 KB
Newer Older
1
2
<TMPL_INCLUDE NAME="header.tpl">

Yadd's avatar
Yadd committed
3
<div id="logincontent">
Clément OUDOT's avatar
Clément OUDOT committed
4

5
  <TMPL_IF NAME="AUTH_ERROR">
Yadd's avatar
Yadd committed
6
  <div class="message <TMPL_VAR NAME="AUTH_ERROR_TYPE">"><ul><li><TMPL_VAR NAME="AUTH_ERROR"></li></ul></div>
7
  </TMPL_IF>
Yadd's avatar
Yadd committed
8
  <div class="loginlogo"></div>
9

Yadd's avatar
Yadd committed
10
  <TMPL_IF AUTH_LOOP>
11

Yadd's avatar
Yadd committed
12
    <!-- Authentication loop -->
13

Yadd's avatar
Yadd committed
14
15
16
17
18
19
20
    <!-- Choice tabs -->
    <div id="authMenu">
      <ul>
        <TMPL_LOOP NAME="AUTH_LOOP">
          <li title="<TMPL_VAR NAME="key">"><a href="#<TMPL_VAR NAME="key">"><TMPL_VAR NAME="name"></a></li>
        </TMPL_LOOP>
      </ul>
21

Yadd's avatar
Yadd committed
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
      <!-- Forms -->
      <TMPL_LOOP NAME="AUTH_LOOP">

        <div id="<TMPL_VAR NAME="key">">

          <form action="<TMPL_VAR NAME="url">" method="post" class="login <TMPL_VAR NAME="module">">

            <!-- Hidden fields -->
            <TMPL_VAR NAME="HIDDEN_INPUTS">
            <input type="hidden" name="url" value="<TMPL_VAR NAME="AUTH_URL">" />
            <input type="hidden" name="timezone" />
            <input type="hidden" id="authKey" name="<TMPL_VAR NAME="CHOICE_PARAM">" value="<TMPL_VAR NAME="key">" />

            <TMPL_IF NAME="standardform">
              <TMPL_INCLUDE NAME="standardform.tpl">
            </TMPL_IF>

            <TMPL_IF NAME="openidform">
              <TMPL_INCLUDE NAME="openidform.tpl">
            </TMPL_IF>

            <TMPL_IF NAME="yubikeyform">
              <TMPL_INCLUDE NAME="yubikeyform.tpl">
            </TMPL_IF>

            <TMPL_IF NAME="logo">

              <h3><lang en="Please enter your credentials" fr="Merci de vous authentifier"/></h3>

              <table>
52
                <TMPL_IF NAME="logoFile">
Yadd's avatar
Yadd committed
53
                  <tr class="authLogo"><td>
54
                  <img src="<TMPL_VAR NAME="SKIN_PATH">/common/<TMPL_VAR NAME="logoFile">" alt="<TMPL_VAR NAME="module">" />
Yadd's avatar
Yadd committed
55
56
57
58
59
60
61
                  </td></tr>
                </TMPL_IF>

                <TMPL_IF NAME="CHECK_LOGINS">
                  <tr><td colspan="2"><div class="buttons">
                    <label for="checkLogins">
                      <input type="checkbox" id="checkLogins" name="checkLogins" <TMPL_IF NAME="ASK_LOGINS">checked</TMPL_IF>/>
62
                      <lang en="Check my last logins" fr="Voir mes derni&egrave;res connexions"/>
Yadd's avatar
Yadd committed
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
                    </label>
                  </div></td></tr>
                </TMPL_IF>

                <tr><td>
                  <div class="buttons">
                    <button type="reset" class="negative" tabindex="4">
                      <img src="<TMPL_VAR NAME="SKIN_PATH">/common/cancel.png" alt="" />
                      <lang en="Cancel" fr="Annuler" />
                    </button>
                    <button type="submit" class="positive" tabindex="3">
                      <img src="<TMPL_VAR NAME="SKIN_PATH">/common/accept.png" alt="" />
                      <lang en="Connect" fr="Se connecter" />
                    </button>
                  </div>
                </td></tr>
79

Yadd's avatar
Yadd committed
80
              </table>
81

Yadd's avatar
Yadd committed
82
            </TMPL_IF>
83

Yadd's avatar
Yadd committed
84
85
86
87
          </form>
        </div>
      </TMPL_LOOP>
    </div> <!-- end authMenu -->
Yadd's avatar
Yadd committed
88
  </TMPL_IF>
89

Yadd's avatar
Yadd committed
90
  <TMPL_IF NAME="DISPLAY_FORM">
91

Yadd's avatar
Yadd committed
92
93
94
95
96
97
98
    <form action="#" method="post" class="login">
      <!-- Hidden fields -->
      <TMPL_VAR NAME="HIDDEN_INPUTS">
      <input type="hidden" name="url" value="<TMPL_VAR NAME="AUTH_URL">" />
      <input type="hidden" name="timezone" />
      <TMPL_INCLUDE NAME="standardform.tpl">
    </form>
99

Yadd's avatar
Yadd committed
100
  </TMPL_IF>
101

Yadd's avatar
Yadd committed
102
  <TMPL_IF NAME="DISPLAY_OPENID_FORM">
103

Yadd's avatar
Yadd committed
104
105
106
107
108
109
110
    <form action="#" method="post" class="login">
      <!-- Hidden fields -->
      <TMPL_VAR NAME="HIDDEN_INPUTS">
      <input type="hidden" name="url" value="<TMPL_VAR NAME="AUTH_URL">" />
      <input type="hidden" name="timezone" />
      <TMPL_INCLUDE NAME="openidform.tpl">
    </form>
111

Yadd's avatar
Yadd committed
112
  </TMPL_IF>
113

Yadd's avatar
Yadd committed
114
  <TMPL_IF NAME="DISPLAY_YUBIKEY_FORM">
115

Yadd's avatar
Yadd committed
116
117
118
119
120
121
122
    <form action="#" method="post" class="login">
      <!-- Hidden fields -->
      <TMPL_VAR NAME="HIDDEN_INPUTS">
      <input type="hidden" name="url" value="<TMPL_VAR NAME="AUTH_URL">" />
      <input type="hidden" name="timezone" />
      <TMPL_INCLUDE NAME="yubikeyform.tpl">
    </form>
123

Yadd's avatar
Yadd committed
124
  </TMPL_IF>
125

Yadd's avatar
Yadd committed
126
  <TMPL_IF NAME="DISPLAY_LOGO_FORM">
127

Yadd's avatar
Yadd committed
128
129
130
131
132
    <form action="#" method="post" class="login <TMPL_VAR NAME="module">">
      <!-- Hidden fields -->
      <TMPL_VAR NAME="HIDDEN_INPUTS">
      <input type="hidden" name="url" value="<TMPL_VAR NAME="AUTH_URL">" />
      <input type="hidden" name="timezone" />
Clément OUDOT's avatar
Clément OUDOT committed
133

Yadd's avatar
Yadd committed
134
      <h3><lang en="Please enter your credentials" fr="Merci de vous authentifier"/></h3>
Clément OUDOT's avatar
Clément OUDOT committed
135

Yadd's avatar
Yadd committed
136
137
138
      <table>
        <TMPL_IF NAME="module">
          <tr class="authLogo"><td>
139
            <img src="<TMPL_VAR NAME="SKIN_PATH">/common/<TMPL_VAR NAME="module">.png" alt="<TMPL_VAR NAME="module">" />
Yadd's avatar
Yadd committed
140
          </td></tr>
Clément OUDOT's avatar
Clément OUDOT committed
141
142
        </TMPL_IF>

Yadd's avatar
Yadd committed
143
144
145
146
        <TMPL_IF NAME="CHECK_LOGINS">
          <tr><td colspan="2"><div class="buttons">
            <label for="checkLogins">
              <input type="checkbox" id="checkLogins" name="checkLogins" <TMPL_IF NAME="ASK_LOGINS">checked</TMPL_IF>/>
147
              <lang en="Check my last logins" fr="Voir mes derni&egrave;res connexions"/>
Yadd's avatar
Yadd committed
148
149
            </label>
          </div></td></tr>
150
151
        </TMPL_IF>

Yadd's avatar
Yadd committed
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
        <tr><td>
          <div class="buttons">
            <button type="reset" class="negative" tabindex="4">
              <img src="<TMPL_VAR NAME="SKIN_PATH">/common/cancel.png" alt="" />
              <lang en="Cancel" fr="Annuler" />
            </button>
            <button type="submit" class="positive" tabindex="3">
              <img src="<TMPL_VAR NAME="SKIN_PATH">/common/accept.png" alt="" />
              <lang en="Connect" fr="Se connecter" />
            </button>
          </div>
        </td></tr>
      </table>
    </form>
  </TMPL_IF>

  <TMPL_IF NAME="DISPLAY_PASSWORD">
    <TMPL_INCLUDE NAME="password.tpl">
  </TMPL_IF>

  <TMPL_IF NAME="LOGIN_INFO">
    <div class="login_info">
      <TMPL_VAR NAME="LOGIN_INFO">
    </div>
  </TMPL_IF>

  <TMPL_IF NAME="PORTAL_URL">
    <div id="logout">
      <TMPL_IF NAME="MSG"><TMPL_VAR NAME="MSG"></TMPL_IF>
      <div class="buttons">
        <a href="<TMPL_VAR NAME="PORTAL_URL">" class="positive">
          <img src="<TMPL_VAR NAME="SKIN_PATH">/common/accept.png" alt="" />
          <lang en="Go to portal" fr="Aller au portail" />
        </a>
      </div>
    </div>
  </TMPL_IF>

  <TMPL_IF NAME="LOGOUT_URL">
    <div id="logout">
      <div class="buttons">
        <a href="<TMPL_VAR NAME="LOGOUT_URL">" class="negative">
          <img src="<TMPL_VAR NAME="SKIN_PATH">/common/cancel.png" alt="" />
          <lang en="Logout" fr="Se d&eacute;connecter"/>
        </a>
      </div>
    </div>
  </TMPL_IF>

  </div>
Clément OUDOT's avatar
Clément OUDOT committed
202

203
<TMPL_INCLUDE NAME="footer.tpl">