login.tpl 5.8 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
<TMPL_INCLUDE NAME="header.tpl">


  <div id="logincontent" class="container">

  <TMPL_IF NAME="AUTH_ERROR">
  <div class="message message-<TMPL_VAR NAME="AUTH_ERROR_TYPE"> alert"><TMPL_VAR NAME="AUTH_ERROR"></div>
  </TMPL_IF>

  <TMPL_IF AUTH_LOOP>

12
13
    <div id="authMenu">

14
    <!-- Authentication loop -->
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
    <div class="nav navbar-default">

    <div class="navbar-header">

    <button class="navbar-toggle" data-target=".navbar-collapse" data-toggle="collapse" type="button">
        <span class="sr-only">
            Toggle navigation
        </span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
    </button>
    <a class="navbar-brand" href="#">
      <span class="glyphicon glyphicon-user"></span>
    </a>

    </div>
32
33

    <!-- Choice tabs -->
34
35
36
    <div class="navbar-collapse collapse">

      <ul class="nav navbar-nav">
37
38
39
40
41
        <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>

42
43
    </div>
 
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
      <!-- 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">

71
72
              <div class="form">

73
74
                <TMPL_IF NAME="logoFile">
                  <img src="<TMPL_VAR NAME="SKIN_PATH">/common/<TMPL_VAR NAME="logoFile">" alt="<TMPL_VAR NAME="module">" class="img-thumbnail" />
75
76
                </TMPL_IF>

77
                <TMPL_INCLUDE NAME="checklogins.tpl">
78

79
                <div class="buttons">
80
                  <button type="submit" class="btn btn-success">
81
82
83
                    <span class="glyphicon glyphicon-log-in"></span>
                    <lang en="Connect" fr="Se connecter" />
                  </button>
84
                </div>
85

86
87
              </div>

88
89
90
            </TMPL_IF>

          </form>
91

92
        </div>
93

94
      </TMPL_LOOP>
95
96
97

    </div>

98
    </div> <!-- end authMenu -->
99

100
101
102
103
  </TMPL_IF>

  <TMPL_IF NAME="DISPLAY_FORM">

104
    <div class="panel panel-default">
105
106
107
108
109
110
111
    <form action="#" method="post" class="login" role="form">
      <!-- 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>
112

113
    </div>
114
115
116
117
118

  </TMPL_IF>

  <TMPL_IF NAME="DISPLAY_OPENID_FORM">

119
120
    <div class="panel panel-default">
    <form action="#" method="post" class="login" role="form">
121
122
123
124
125
126
      <!-- 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>
127
    </div>
128
129
130
131
132

  </TMPL_IF>

  <TMPL_IF NAME="DISPLAY_YUBIKEY_FORM">

133
134
    <div class="panel panel-default">
    <form action="#" method="post" class="login" role="form">
135
136
137
138
139
140
      <!-- 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>
141
    </div>
142
143
144
145
146

  </TMPL_IF>

  <TMPL_IF NAME="DISPLAY_LOGO_FORM">

147
148
    <div class="panel panel-default">
    <form action="#" method="post" class="login <TMPL_VAR NAME="module">" role="form">
149
150
151
152
153
      <!-- Hidden fields -->
      <TMPL_VAR NAME="HIDDEN_INPUTS">
      <input type="hidden" name="url" value="<TMPL_VAR NAME="AUTH_URL">" />
      <input type="hidden" name="timezone" />

154
      <div class="form">
155
156
157
158
159
160
      <TMPL_IF NAME="module">
        <img src="<TMPL_VAR NAME="SKIN_PATH">/common/<TMPL_VAR NAME="module">.png" alt="<TMPL_VAR NAME="module">" class="img-thumbnail" />
      </TMPL_IF>

      <TMPL_INCLUDE NAME="checklogins.tpl">

161
      <div class="buttons">
162
      <button type="submit" class="btn btn-success">
163
        <span class="glyphicon glyphicon-log-in"></span>&nbsp;
164
165
        <lang en="Connect" fr="Se connecter" />
      </button>
166
      </div>
167
      </div>
168

169
    </form>
170
    </div>
171
172
173
  </TMPL_IF>

  <TMPL_IF NAME="DISPLAY_PASSWORD">
174
    <div id="password" class="panel panel-default">
175
    <TMPL_INCLUDE NAME="password.tpl">
176
    </div>
177
178
179
  </TMPL_IF>

  <TMPL_IF NAME="LOGIN_INFO">
180
    <div class="alert alert-info">
181
182
183
184
185
186
187
188
      <TMPL_VAR NAME="LOGIN_INFO">
    </div>
  </TMPL_IF>

  <TMPL_IF NAME="PORTAL_URL">
    <div id="logout">
      <div class="buttons">
      <TMPL_IF NAME="MSG"><TMPL_VAR NAME="MSG"></TMPL_IF>
189
        <a href="<TMPL_VAR NAME="PORTAL_URL">" class="btn btn-primary" role="button">
190
          <span class="glyphicon glyphicon-home"></span>&nbsp;
191
192
193
194
195
196
197
198
199
          <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">
200
        <a href="<TMPL_VAR NAME="LOGOUT_URL">" class="btn btn-danger" role="button">
201
          <span class="glyphicon glyphicon-log-out"></span>&nbps;
202
203
204
205
206
207
208
209
210
          <lang en="Logout" fr="Se d&eacute;connecter"/>
        </a>
      </div>
    </div>
  </TMPL_IF>

  </div>

<TMPL_INCLUDE NAME="footer.tpl">