Commit fa4e01b7 authored by Clément OUDOT's avatar Clément OUDOT

WIP bootstrap4/fontawesome (#1504)

parent 051b9d21
......@@ -62,12 +62,12 @@
</a>
<ul class="dropdown-menu" role="menu">
<TMPL_IF NAME="sfaManager">
<li class="dropdown-item"><a href="/2fregisters">
<li class="dropdown-item"><a href="/2fregisters" class="nav-link">
<img src="<TMPL_VAR NAME="STATIC_PREFIX">common/icons/sfa_manager.png" width="16" height="16" alt="refresh" />
<span trspan="sfaManager">sfaManager</span>
</a></li>
</TMPL_IF>
<li class="dropdown-item"><a href="/refresh">
<li class="dropdown-item"><a href="/refresh" class="nav-link">
<img src="<TMPL_VAR NAME="STATIC_PREFIX">common/icons/arrow_refresh.png" width="16" height="16" alt="refresh" />
<span trspan="refreshrights">Refresh</span>
</a></li>
......
......@@ -10,12 +10,12 @@
<TMPL_IF NAME="AUTH_URL">
<input type="hidden" name="url" value="<TMPL_VAR NAME="AUTH_URL">" />
</TMPL_IF>
<div class="card text-white bg-info">
<div class="card-header">
<div class="card border-info">
<div class="card-header text-white bg-info">
<h3 class="card-title" trspan="gotNewMessages">You have some new messages</h3>
</div>
<div class="card-body">
<div class="form card.card-body">
<div class="form">
<TMPL_VAR NAME="NOTIFICATION">
</div>
</div>
......@@ -23,7 +23,7 @@
<div class="buttons">
<button type="submit" class="positive btn btn-success">
<span class="glyphicon glyphicon-ok"></span>
<span class="fas fa-check-circle"></span>
<span trspan="accept">Accept</span>
</button>
</div>
......
......@@ -13,7 +13,7 @@
<td><TMPL_VAR NAME="displayName"></td>
<td class="localeDate" val="<TMPL_VAR NAME="epoch">"></td>
<td><TMPL_VAR NAME="scope"></td>
<td><a partner="<TMPL_VAR NAME="name">" title="delete" class="oidcConsent link nodecor text-danger glyphicon glyphicon-minus-sign"></a></td>
<td><a partner="<TMPL_VAR NAME="name">" title="delete" class="oidcConsent link nodecor text-danger fas fa-minus-circle"></a></td>
</td>
</tr>
</TMPL_LOOP>
......
......@@ -23,8 +23,8 @@
</TMPL_IF>
<div class="buttons">
<a href="<TMPL_VAR NAME="PORTAL_URL">/?cancel=1" class="positive btn btn-success">
<span class="glyphicon glyphicon-ok"></span>
<a href="<TMPL_VAR NAME="PORTAL_URL">/?cancel=1" class="positive btn btn-primary">
<span class="fas fa-home"></span>
<span trspan="goToPortal">Go to portal</span>
</a>
</div>
......
<div class="form">
<div class="form-group input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-link"></i> </span>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text"><i class="glyphicon glyphicon-link"></i> </span>
</div>
<input name="openid_identifier" type="text" class="form-control" trplaceholder="enterOpenIDLogin" aria-required="true"/>
</div>
<TMPL_INCLUDE NAME="checklogins.tpl">
<button type="submit" class="btn btn-success" >
<span class="glyphicon glyphicon-log-in"></span>
<button type="submit" class="btn btn-succesas" >
<span class="fas fa-sign-in-alt"></span>
<span trspan="connect">Connect</span>
</button>
</div>
......@@ -12,9 +12,11 @@
<input type="hidden" name="skin" value="<TMPL_VAR NAME="SKIN">" />
<TMPL_IF NAME="LOGIN">
<div class="form-group input-group">
<div class="input-group mb-3">
<input name="user" type="hidden" value="<TMPL_VAR NAME=LOGIN>" />
<span class="input-group-addon"><i class="glyphicon glyphicon-user"></i> </span>
<div class="input-group-prepend">
<span class="input-group-text"><i class="fas fa-user"></i></span>
</div>
<p class="form-control-static"><TMPL_VAR NAME=LOGIN></p>
</div>
</TMPL_IF>
......@@ -24,25 +26,31 @@
<TMPL_IF NAME="HIDE_OLDPASSWORD">
<input id="oldpassword" name="oldpassword" type="hidden" value="<TMPL_VAR NAME=OLDPASSWORD>" aria-required="true">
<TMPL_ELSE>
<div class="form-group input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i> </span>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fas fa-lock"></i></span>
</div>
<input id="oldpassword" name="oldpassword" type="password" value="<TMPL_VAR NAME=OLDPASSWORD>" class="form-control" trplaceholder="currentPwd" required/ aria-required="true">
</div>
</TMPL_IF>
</TMPL_IF>
<div class="form-group input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i> </span>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fas fa-lock"></i></span>
</div>
<input id="newpassword" name="newpassword" type="password" class="form-control" trplaceholder="newPassword" required aria-required="true"/>
</div>
<div class="form-group input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i> </span>
<div class="input-group-prepend">
<span class="input-group-text"><i class="fas fa-lock"></i></span>
</div>
<input id="confirmpassword" name="confirmpassword" type="password" class="form-control" trplaceholder="confirmPwd" required aria-required="true"/>
</div>
<button type="submit" class="btn btn-success" >
<span class="glyphicon glyphicon-ok"></span>
<button type="submit" class="btn btn-success">
<span class="fas fa-check-circle"></span>
<span trspan="submit">Submit</span>
</button>
</div>
......
<p class="removeOther">
<a href="<TMPL_VAR NAME="link">" onclick="_go=0" trspan="removeOtherSessions></a>
<a href="<TMPL_VAR NAME="link">" onclick="_go=0" trspan="removeOtherSessions"></a>
</p>
......@@ -6,14 +6,14 @@
<div class="form">
<input type="hidden" name="nossl" value="1" />
<div class="form-group input-group sslclick buttons max">
<div class="sslclick buttons max">
<img src="<TMPL_VAR NAME="STATIC_PREFIX">common/modules/SSL.png" alt="<TMPL_VAR NAME="module">" class="img-thumbnail" />
</div>
<TMPL_INCLUDE NAME="checklogins.tpl">
<button type="submit" class="btn btn-success sslclick" >
<span class="glyphicon glyphicon-log-in"></span>
<span class="fas fa-sign-in-alt"></span>
<span trspan="connect">Connect</span>
</button>
</div>
......@@ -10,21 +10,22 @@
<div class="form">
<input type="hidden" id="token" name="token" value="<TMPL_VAR NAME="TOKEN">">
<input type="hidden" id="checkLogins" name="checkLogins" value="<TMPL_VAR NAME="CHECKLOGINS">">
<div class="form-group input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i> </span>
<input name="code" value="" class="form-control" id="extcode" trplaceholder="code">
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fas fa-lock"></i> </span>
</div>
<input name="code" value="" class="form-control" id="extcode" trplaceholder="code">
</div>
</div>
<div class="buttons">
<div class="buttons mb-3">
<button type="submit" class="btn btn-success">
<span class="glyphicon glyphicon-log-in"></span>
<span class="fas fa-sign-in-alt"></span>
<span trspan="connect">Connect</span>
</button>
</div>
<br>
<div class="buttons">
<a href="<TMPL_VAR NAME="PORTAL_URL">?cancel=1" class="btn btn-primary" role="button">
<span class="glyphicon glyphicon-home"></span>&nbsp;
<span class="fas fa-home"></span>&nbsp;
<span trspan="cancel">Cancel</span>
</a>
</div>
......
<TMPL_INCLUDE NAME="header.tpl">
<div class="container">
<div id="color" class="message message-positive alert"><span id="msg" trspan="yourNewTotpKey"></span></div>
</div>
<main id="menucontent" class="container">
<div class="card">
<div class="card-body">
<div id="divToHide">
<canvas id="qr"></canvas>
<pre id="serialized">
</pre>
</div>
<div class="form-group">
<b><span trspan="name">Name</span> : </b><input type="text" id="TOTPName" name="TOTPName" value="MyTOTP"/>
&nbsp;&nbsp;&nbsp;&nbsp;
<b><span trspan="code">Code</span> : </b><input id="code" name="code" type="number" />
</div>
<div class="buttons">
<span id="changekey" class="btn btn-warning" role="button">
<span class="glyphicon glyphicon-plus-sign"></span>&nbsp;
<span trspan="changeKey">Change key</span>
</span>
&nbsp;&nbsp;
<span id="verify" class="btn btn-success" role="button">
<span class="glyphicon glyphicon-check"></span>&nbsp;
<span trspan="register">Register</span>
</span>
</div>
<div id="color" class="message message-positive alert"><span id="msg" trspan="yourNewTotpKey"></span></div>
<div class="card">
<div class="card-body">
<div class="row">
<div class="col-md-6 text-center">
<div id="divToHide">
<canvas id="qr"></canvas>
<pre id="serialized"></pre>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="TOTPName"><span trspan="name">Name</span></label>
<input type="text" class="form-control" id="TOTPName" name="TOTPName" value="MyTOTP" trplaceholder="name" />
</div>
<div class="form-group">
<label for="code"><span trspan="code">Code</span></label>
<input id="code" class="form-control" name="code" type="number" />
</div>
</div>
</div>
<div class="buttons">
<span id="changekey" class="btn btn-secondary" role="button">
<span class="fas fa-sync-alt"></span>
<span trspan="changeKey">Change key</span>
</span>
<span id="verify" class="btn btn-success" role="button">
<span class="fas fa-check-circle"></span>
<span trspan="register">Register</span>
</span>
</div>
</div>
</div>
</div>
</main>
<div class="buttons">
<a href="<TMPL_VAR NAME="PORTAL_URL">2fregisters" class="btn btn-warning" role="button">
<span class="glyphicon glyphicon-pencil"></span>&nbsp;
<a href="<TMPL_VAR NAME="PORTAL_URL">2fregisters" class="btn btn-secondary" role="button">
<span class="fas fa-shield-alt"></span>&nbsp;
<span trspan="sfaManager">sfaManager</span>
</a>
&nbsp;&nbsp;&nbsp;&nbsp;
<a id="goback" 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">
<span class="glyphicon glyphicon-home"></span>&nbsp;
<span class="fas fa-home"></span>&nbsp;
<span trspan="goToPortal">Go to portal</span>
</a>
</div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment