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

3
<main id="logincontent" class="container">
4

5 6
  <TMPL_INCLUDE NAME="customLoginHeader.tpl">

7
  <TMPL_IF NAME="AUTH_ERROR">
8
  <div class="message message-<TMPL_VAR NAME="AUTH_ERROR_TYPE"> alert"><span trmsg="<TMPL_VAR NAME="AUTH_ERROR">"></span></div>
9 10 11 12
  </TMPL_IF>

  <TMPL_IF AUTH_LOOP>

13
    <div id="authMenu" class="card">
14

15
    <!-- Authentication loop -->
16
    <nav class="navbar navbar-expand-lg navbar-light bg-light">
17

Christophe Maudoux's avatar
Christophe Maudoux committed
18
    <a class="navbar-brand" href="/"><i class="fa fa-user-circle"></i></a>
19 20
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <span class="navbar-toggler-icon"></span>
21
    </button>
22 23

    <!-- Choice tabs -->
24 25
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav mr-auto">
26
        <TMPL_LOOP NAME="AUTH_LOOP">
27
          <li class="nav-item" title="<TMPL_VAR NAME="key">"><a class="nav-link" href="#<TMPL_VAR NAME="key">"><TMPL_VAR NAME="name"></a></li>
28 29
        </TMPL_LOOP>
      </ul>
30
    </div>
31 32 33 34

    </nav>

    <div>
35 36 37 38 39
      <!-- Forms -->
      <TMPL_LOOP NAME="AUTH_LOOP">

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

40
          <form action="<TMPL_VAR NAME="url">" method="post" class="login <TMPL_VAR NAME="module">">
41 42 43 44 45

            <!-- Hidden fields -->
            <TMPL_VAR NAME="HIDDEN_INPUTS">
            <input type="hidden" name="url" value="<TMPL_VAR NAME="AUTH_URL">" />
            <input type="hidden" name="timezone" />
46
            <input type="hidden" name="<TMPL_VAR NAME="CHOICE_PARAM">" value="<TMPL_VAR NAME="key">" />
47
            <input type="hidden" name="skin" value="<TMPL_VAR NAME="SKIN">" />
48 49 50 51 52 53 54 55 56 57 58 59 60

            <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>

61 62 63 64
            <TMPL_IF NAME="sslform">
              <TMPL_INCLUDE NAME="sslform.tpl">
            </TMPL_IF>

65 66
            <TMPL_IF NAME="logo">

67 68
              <div class="form">

69
                <TMPL_IF NAME="logoFile">
70
                  <img src="<TMPL_VAR NAME="STATIC_PREFIX">common/modules/<TMPL_VAR NAME="logoFile">" alt="<TMPL_VAR NAME="module">" class="img-thumbnail mb-3" />
71
                </TMPL_IF>
72
                <TMPL_INCLUDE NAME="checklogins.tpl">
73

74
                <div class="buttons">
75
                  <button type="submit" class="btn btn-success">
76
                    <span class="fa fa-sign-in"></span>
77
                    <span trspan="connect">Connect</span>
78
                  </button>
79
                </div>
80

81 82
              </div>

83 84 85
            </TMPL_IF>

          </form>
86

87
        </div>
88

89
      </TMPL_LOOP>
90 91 92

    </div>

93
    </div> <!-- end authMenu -->
94

95 96
  </TMPL_IF>

97
  <TMPL_IF NAME="DISPLAY_FORM">
98
  <div class="card">
99
  <TMPL_IF NAME="module">
100
    <form id="lform" action="#" method="post" class="login <TMPL_VAR NAME="module">" role="form">
101
  <TMPL_ELSE>
102
    <form id="lform" action="#" method="post" class="login" role="form">
103
  </TMPL_IF>
104 105 106 107 108 109 110 111 112 113 114
    <!-- 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" name="skin" value="<TMPL_VAR NAME="SKIN">" />
    <TMPL_INCLUDE NAME="standardform.tpl">
    </form>
  </div>
  </TMPL_IF>

  <TMPL_IF NAME="DISPLAY_OPENID_FORM">
115
  <div class="card">
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
  <TMPL_IF NAME="module">
    <form id="lform" action="#" method="post" class="login <TMPL_VAR NAME="module">" role="form">
  <TMPL_ELSE>
    <form id="lform" action="#" method="post" class="login" role="form">
  </TMPL_IF>
    <!-- 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" name="skin" value="<TMPL_VAR NAME="SKIN">" />
    <TMPL_INCLUDE NAME="openidform.tpl">
    </form>
  </div>
  </TMPL_IF>

  <TMPL_IF NAME="DISPLAY_SSL_FORM">
132
  <div class="card">
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
  <TMPL_IF NAME="module">
    <form id="lform" action="#" method="post" class="login <TMPL_VAR NAME="module">" role="form">
  <TMPL_ELSE>
    <form id="lform" action="#" method="post" class="login" role="form">
  </TMPL_IF>
    <!-- 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" name="skin" value="<TMPL_VAR NAME="SKIN">" />
    <TMPL_INCLUDE NAME="sslform.tpl">
    </form>
  </div>
  </TMPL_IF>

  <TMPL_IF NAME="DISPLAY_YUBIKEY_FORM">
149
  <div class="card">
150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165
  <TMPL_IF NAME="module">
    <form id="lform" action="#" method="post" class="login <TMPL_VAR NAME="module">" role="form">
  <TMPL_ELSE>
    <form id="lform" action="#" method="post" class="login" role="form">
  </TMPL_IF>
    <!-- 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" name="skin" value="<TMPL_VAR NAME="SKIN">" />
    <TMPL_INCLUDE NAME="yubikeyform.tpl">
    </form>
  </div>
  </TMPL_IF>

  <TMPL_IF NAME="DISPLAY_LOGO_FORM">
166
  <div class="card">
167 168 169 170 171 172 173 174 175 176 177
  <TMPL_IF NAME="module">
    <form id="lform" action="#" method="post" class="login <TMPL_VAR NAME="module">" role="form">
  <TMPL_ELSE>
    <form id="lform" action="#" method="post" class="login" role="form">
  </TMPL_IF>
    <!-- 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" name="skin" value="<TMPL_VAR NAME="SKIN">" />
    <div class="form">
178
      <TMPL_IF NAME="module">
179
        <img src="<TMPL_VAR NAME="STATIC_PREFIX">common/modules/<TMPL_VAR NAME="module">.png" alt="<TMPL_VAR NAME="module">" class="img-thumbnail" />
180 181 182 183
      </TMPL_IF>

      <TMPL_INCLUDE NAME="checklogins.tpl">

184
      <div class="buttons">
185
      <button type="submit" class="btn btn-success">
186
        <span class="fa fa-sign-in"></span>
187
        <span trspan="connect">Connect</span>
188
      </button>
189
      </div>
190 191
    </div>
    </form>
192
  </div>
193
  </TMPL_IF>
194 195

  <TMPL_IF NAME="DISPLAY_PASSWORD">
196
    <div id="password" class="card">
197
    <TMPL_INCLUDE NAME="password.tpl">
198
    </div>
199 200 201
  </TMPL_IF>

  <TMPL_IF NAME="LOGIN_INFO">
202
    <div class="alert alert-info">
203 204 205 206 207 208 209 210
      <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>
Christophe Maudoux's avatar
Christophe Maudoux committed
211
        <a href="<TMPL_VAR NAME="PORTAL_URL">?cancel=1<TMPL_IF NAME="AUTH_URL">&url=<TMPL_VAR NAME="AUTH_URL"></TMPL_IF>" class="btn btn-primary" role="button">
212
          <span class="fa fa-home"></span>
213
          <span trspan="goToPortal">Go to portal</span>
214 215 216 217 218 219 220 221
        </a>
      </div>
    </div>
  </TMPL_IF>

  <TMPL_IF NAME="LOGOUT_URL">
    <div id="logout">
      <div class="buttons">
222
        <a href="<TMPL_VAR NAME="LOGOUT_URL">" class="btn btn-danger" role="button">
223
          <span class="fa fa-sign-out"></span>&nbps;
224
          <span trspan="logout">Logout</span>
225 226 227 228 229
        </a>
      </div>
    </div>
  </TMPL_IF>

230 231
  <TMPL_INCLUDE NAME="customLoginFooter.tpl">

232
</main>
233 234

<TMPL_INCLUDE NAME="footer.tpl">