checkuser.tpl 2.72 KB
Newer Older
1 2 3
<TMPL_INCLUDE NAME="header.tpl">

<div id="errorcontent" class="container">
4
  <!--
5
<div class="message message-positive alert"><span trspan="<TMPL_VAR NAME="MSG">"></span></div>
6 7
-->
<div class="message <TMPL_VAR NAME="ALERTE"> alert"><span trspan="<TMPL_VAR NAME="MSG">"></span></div>
8
<form id="checkuser" action="/checkuser" method="post" class="password" role="form">
9

10 11 12 13
  <TMPL_IF NAME="TOKEN">
    <input type="hidden" name="token" value="<TMPL_VAR NAME="TOKEN">" />
  </TMPL_IF>

14 15 16 17 18 19 20 21 22 23
  <div class="input-group mb-3">
    <div class="input-group-prepend">
      <span class="input-group-text"><i class="fa fa-user"></i> </span>
    </div>
    <input name="user" type="text" class="form-control" value="<TMPL_VAR NAME="LOGIN">" trplaceholder="user" aria-required="true"/>
  </div>
  <div class="input-group mb-3">
    <div class="input-group-prepend">
      <span class="input-group-text"><i class="fa fa-link"></i> </span>
    </div>
24
    <input name="url" type="text" class="form-control" value="<TMPL_VAR NAME="URL">" trplaceholder="http://auth.example.com" aria-required="true"/>
25
  </div>
26

27

28
<TMPL_IF NAME="ALLOWED">
29
<div class="alert <TMPL_VAR NAME="ALERTE_AUTH">"><span trspan="<TMPL_VAR NAME="ALLOWED">"></span></div>
30
</TMPL_IF>
31

32 33 34 35 36 37 38 39 40 41 42 43 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 71 72 73 74 75 76
<TMPL_IF NAME="HEADERS">
  <div class="card mb-3 border-secondary">
  <div class="card-body table-responsive">
  <table class="table table-hover">
    <thead>
      <tr>
        <th><span trspan="key">Key</span></th>
        <th><span trspan="value">Value</span></th>
      </tr>
    </thead>
    <tbody>
      <TMPL_LOOP NAME="HEADERS">
        <tr>
          <td class="align-middle"><TMPL_VAR NAME="key"></td>
          <td class="align-middle"><TMPL_VAR NAME="value"></td>
        </tr>
      </TMPL_LOOP>
    </tbody>
  </table>
  </div>
  </div>
</TMPL_IF>

<TMPL_IF NAME="ATTRIBUTES">
  <div class="card mb-3 border-secondary">
  <div class="card-body table-responsive">
  <table class="table table-hover">
    <thead>
      <tr>
        <th><span trspan="key">Key</span></th>
        <th><span trspan="value">Value</span></th>
      </tr>
    </thead>
    <tbody>
      <TMPL_LOOP NAME="ATTRIBUTES">
        <tr>
          <td class="align-middle"><TMPL_VAR NAME="key"></td>
          <td class="align-middle"><TMPL_VAR NAME="value"></td>
        </tr>
      </TMPL_LOOP>
    </tbody>
  </table>
  </div>
  </div>
</TMPL_IF>
77

78 79 80 81 82 83 84 85 86 87 88 89 90
  <div class="buttons">
    <button type="submit" class="btn btn-success">
      <span class="fa fa-sign-in"></span>
      <span trspan="checkUser">Check user</span>
    </button>
    <a href="<TMPL_VAR NAME="PORTAL_URL">" class="btn btn-primary" role="button">
      <span class="fa fa-home"></span>
      <span trspan="goToPortal">Go to portal</span>
    </a>
  </div>
</form>
</div>

91
<TMPL_INCLUDE NAME="footer.tpl">