<div class="admin-form theme-info">
  <div class="row mb15 table-layout">
    <div class="col-xs-12">
      <div class="login-links">
        <a href="#"><b>cms</b>Pro</a>
      </div>
    </div>
  </div>
  <div class="panel panel-info br-n heading-border bg-white">
    <div class="panel-body">
      <div class="section-divider mb40">
        <span>Logowanie</span>
      </div>
      <? if ($alert = \S::get_session('alert')):
        \S::alert(false);
      ?>
        <div class="container-fluid">
          <div class="row">
            <div class="alert alert-danger alert-dismissable">
              <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
              <i class="icon fa fa-ban pr10"></i><?= $alert; ?>
            </div>
          </div>
        </div>
      <?
      endif; ?>
      <form method="POST" action="/admin/" class="form-horizontal" rol="form">
        <input type="hidden" name="s-action" value="user-2fa-verify">
        <div class="form-group">
          <label class="col col-sm-6 control-label" for="login">Kod z e-maila:</label>
          <div class="col col-sm-6">
            <div class="input-group">
              <input type="text" name="twofa" id="twofa" class="form-control" inputmode="numeric" pattern="\d{6}" maxlength="6" autocomplete="one-time-code" required>
            </div>
          </div>
        </div>
        <div class="form-group">
          <div class="col col-sm-12">
            <button class="btn btn-primary btn-block">Potwierdź</button>
          </div>
        </div>
      </form>
      <form method="POST" action="/admin/" style="margin-top:10px">
        <input type="hidden" name="s-action" value="user-2fa-resend">
        <button class="btn btn-link btn-sm">Wyślij kod ponownie</button>
      </form>
    </div>
  </div>
</div>