Changeset 7537 for trunk/www/main.jsp


Ignore:
Timestamp:
Nov 28, 2018, 9:07:39 AM (4 years ago)
Author:
Nicklas Nordborg
Message:

References #2131: Add support for installing multiple authentication managers

Redesign of the login form to avoid things that "jump" around when switching login manager.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/main.jsp

    r7536 r7537  
    130130    <input type="hidden" name="deviceToken" value="">
    131131   
    132     <table style="margin: auto; width: 700px;">
     132    <table style="margin: auto; width: 700px;" id="the-login-form">
    133133    <tr>
    134134    <td>
    135135      <%
    136       if (loginAction.getHelp() != null)
    137       {
    138         %>
    139         <div class="messagecontainer help" style="margin-bottom: 1em; font-style: italic;" id="login-help">
    140         <%=loginAction.getHelp() %>
    141         </div>
    142         <%
    143       }
    144       if (error != null)
    145       {
    146         %>
    147         <div class="messagecontainer error" style="margin-top: 1em; margin-bottom: 1em;"><%=error%></div>
    148         <%
    149       }
    150136      if (allForms.size() > 1)
    151137      {
     
    171157        %>
    172158        <input type="hidden" name="loginForm" value="<%=selectedLoginForm%>">
     159        <%
     160      }
     161      if (loginAction.getHelp() != null)
     162      {
     163        %>
     164        <div class="messagecontainer help" style="margin-bottom: 1em; font-style: italic;" id="login-help">
     165        <%=loginAction.getHelp() %>
     166        </div>
     167        <%
     168      }
     169      if (error != null)
     170      {
     171        %>
     172        <div class="messagecontainer error" style="margin-top: 1em; margin-bottom: 1em;"><%=error%></div>
    173173        <%
    174174      }
Note: See TracChangeset for help on using the changeset viewer.