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

<div id="errorcontent" class="container">
4
5
6
7
8
9
10
11
  <div class="alert <TMPL_VAR NAME="ALERTE"> alert"><div class="text-center"><span trspan="<TMPL_VAR NAME="MSG">"></span></div></div>
  <form id="checkuser" action="/checkuser" method="post" class="password" role="form">
    <div class="buttons">
      <TMPL_IF NAME="TOKEN">
      <input type="hidden" name="token" value="<TMPL_VAR NAME="TOKEN">" />
      </TMPL_IF>
      <div class="input-group mb-3">
        <div class="input-group-prepend">
12
          <span class="input-group-text"><label for="userfield" class="mb-0"><i class="fa fa-user"></i></label></span>
13
        </div>
14
        <input id="userfield" name="user" type="text" class="form-control" value="<TMPL_VAR NAME="LOGIN">" trplaceholder="user" aria-required="true"/>
15
16
17
      </div>
      <div class="input-group mb-3">
        <div class="input-group-prepend">
18
          <span class="input-group-text"><label for="urlfield" class="mb-0"><i class="fa fa-link"></i></label></span>
19
        </div>
20
        <input id="urlfield" name="url" type="text" class="form-control" value="<TMPL_VAR NAME="URL">" trplaceholder="URL / DNS" aria-required="true" autocomplete="url" />
21
22
23
24
25
26
27
28
29
30
31
      </div>
      <button type="submit" class="btn btn-success">
        <span class="fa fa-search"></span>
        <span trspan="search">Search</span>
      </button>
    </div>
  </form>
  <div>
    <TMPL_IF NAME="ALLOWED">
    <div class="alert <TMPL_VAR NAME="ALERTE_AUTH">"><div class="text-center"><b><span trspan="<TMPL_VAR NAME="ALLOWED">"></span></b></div></div>
    </TMPL_IF>
32

33
34
    <TMPL_IF NAME="HEADERS">
    <div class="row">
Antoine Rosier's avatar
Antoine Rosier committed
35
36
37
38
39
40
41
42
      <div class ="col-12 col-sm-12 col-md-12 pb-3">
        <div class="card h-100 border-secondary">
          <div class="card-title text-center bg-light text-dark"><b><span trspan="headers">HEADERS</span></b></div>
          <div class="card-text font-weight-bold m-2">
            <TMPL_LOOP NAME="HEADERS">
              <TMPL_VAR NAME="key">: <TMPL_VAR NAME="value"><br/>
            </TMPL_LOOP>
          </div>
43
44
        </div>
      </div>
45
    </div>
46
    </TMPL_IF>
Antoine Rosier's avatar
Antoine Rosier committed
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90

    <div class= "row ">

      <!-- Groups Card 1 -->
      <div class ="col-6 col-sm-12 col-md-6 p-0">
        <div class="card h-100">
          <div class="card-title text-center bg-light text-dark"><b><span trspan="groups_sso">SSO GROUPS</span></b></div>
          <TMPL_LOOP NAME="GROUPS">
          <div class="card-text text-left ml-2"><TMPL_VAR NAME="value"></div>
          </TMPL_LOOP>
        </div>
      </div>

      <!-- Macros Card 2 -->
      <div class ="col-6 col-sm-12 col-md-6 p-0">
        <div class="card h-100">
          <TMPL_IF NAME="MACROS">
          <div class="card-title text-center bg-light text-dark"><b><span trspan="macros">MACROS</span></b></div>
          <table class="table table-sm table-hover">
            <thead>
              <tr>
                <th scope="col"><span trspan="key">Key</span></th>
                <th scope="col"><span trspan="value">Value</span></th>
              </tr>
            </thead>
            <tbody>
              <TMPL_LOOP NAME="MACROS">
                <tr>
                  <td scope="row"><TMPL_VAR NAME="key"></td>
                  <td scope="row"><TMPL_VAR NAME="value"></td>
                </tr>
              </TMPL_LOOP>
            </tbody>
          </table>
          </TMPL_IF>
        </div>
      </div>

      <!-- History Card 3 -->
      <div class ="col-6 col-sm-12 col-md-6 p-0">
        <div class="card h-100">
          <TMPL_IF NAME="HISTORY">
            <div class="card-title text-center bg-light text-dark"><b><span trspan="loginHistory">HISTORY</span></b></div>
            <TMPL_IF NAME="SUCCESS">
91
92
            <table class="table table-sm table-hover">
              <thead>
Antoine Rosier's avatar
Antoine Rosier committed
93
                <div class="card-text text-center bg-light text-dark"><span trspan="lastLogins">Success</span></div>
94
95
96
97
98
99
100
                <tr>
                  <th scope="col"><span trspan="date">Date</span></th>
                  <th scope="col"><span trspan="value">Value</span></th>
                </tr>
              </thead>
              <tbody>
                <TMPL_LOOP NAME="SUCCESS">
Antoine Rosier's avatar
Antoine Rosier committed
101
102
103
104
105
                <tr>
                  <td class="localeDate" scope="row" val="<TMPL_VAR NAME="utime">"></td>
                  <td scope="row"><TMPL_VAR NAME="values"></td>
                </tr>
                </TMPL_LOOP>
106
107
              </tbody>
            </table>
Antoine Rosier's avatar
Antoine Rosier committed
108
109
            </TMPL_IF>
            <TMPL_IF NAME="FAILED">
110
111
            <table class="table table-sm table-hover">
              <thead>
Antoine Rosier's avatar
Antoine Rosier committed
112
                <div class="card-text text-center bg-light text-dark"><span trspan="lastFailedLogins">Failed</span></div>
113
114
115
116
117
118
119
                <tr>
                  <th scope="col"><span trspan="date">Date</span></th>
                  <th scope="col"><span trspan="value">Value</span></th>
                </tr>
              </thead>
              <tbody>
                <TMPL_LOOP NAME="FAILED">
Antoine Rosier's avatar
Antoine Rosier committed
120
121
122
123
124
                <tr>
                  <td class="localeDate" scope="row" val="<TMPL_VAR NAME="utime">"></td>
                  <td scope="row"><TMPL_VAR NAME="values"></td>
                </tr>
                </TMPL_LOOP>
125
126
              </tbody>
            </table>
Antoine Rosier's avatar
Antoine Rosier committed
127
            </TMPL_IF>
128
          </TMPL_IF>
129
130
        </div>
      </div>
Antoine Rosier's avatar
Antoine Rosier committed
131
132
133
134

      <!-- Attribute Card 4 -->
      <div class ="col-6 col-sm-12 col-md-6 p-0">
        <div class="card h-100">
135
          <TMPL_IF NAME="ATTRIBUTES">
Antoine Rosier's avatar
Antoine Rosier committed
136
            <div class="card-title text-center bg-light text-dark"><b><span trspan="attributes">ATTRIBUTES</span></b></div>
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
            <table class="table table-sm table-hover">
              <thead>
                <tr>
                  <th scope="col"><span trspan="key">Key</span></th>
                  <th scope="col"><span trspan="value">Value</span></th>
                </tr>
              </thead>
              <tbody>
                <TMPL_LOOP NAME="ATTRIBUTES">
                <tr>
                  <td scope="row"><TMPL_VAR NAME="key"></td>
                  <td scope="row"><TMPL_VAR NAME="value"></td>
                </tr>
                </TMPL_LOOP>
              </tbody>
            </table>
          </TMPL_IF>
        </div>
      </div>
Antoine Rosier's avatar
Antoine Rosier committed
156

157
    </div>
158

159
160
161
162
163
164
    <div class="buttons">
      <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>
165
166
167
  </div>
</div>

168
<TMPL_INCLUDE NAME="footer.tpl">