Ignore:
Timestamp:
May 25, 2022, 8:31:55 AM (10 months ago)
Author:
Nicklas Nordborg
Message:

References #2278: Improvements to login page for better extensions

Added support for dynamic attributes to the LoginFormBean and FieldInfo classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.19-stable/www/switch.jsp

    r7954 r8036  
    3838  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
    3939  import="net.sf.basedb.clients.web.extensions.JspContext"
     40  import="net.sf.basedb.clients.web.extensions.DynamicActionAttributeSupport"
    4041  import="net.sf.basedb.clients.web.extensions.login.LoginFormAction"
    4142  import="net.sf.basedb.clients.web.extensions.login.PasswordLoginFormFactory"
     
    105106  <base:body data-login-form="<%=HTML.encodeTags(selectedLoginForm)%>" data-requested-form="<%=HTML.encodeTags(requestedLoginForm) %>">
    106107    <h1>Switch user <base:help helpid="switchuser" /></h1>
    107     <form name="login" action="login.jsp" method="post">
     108    <form name="login" action="login.jsp" method="post"
     109      <%=DynamicActionAttributeSupport.getAttributesString(loginAction)%>
     110    >
    108111    <input type="hidden" name="ID" value="<%=ID%>">
    109112    <input type="hidden" name="again" value="1">
     
    148151          data-use-last-login="0"
    149152          maxlength="100"
    150           tabindex="0">
     153          tabindex="0"
     154          <%=DynamicActionAttributeSupport.getAttributesString(loginField)%>
     155          >
    151156        </td>
    152157      </tr>
     
    159164          <%=valueIfNotNull("placeholder=\"", passwordField.getPlaceHolder(), "\"") %>
    160165          maxlength="80"
    161           tabindex="0">
     166          tabindex="0"
     167          <%=DynamicActionAttributeSupport.getAttributesString(passwordField)%>
     168          >
    162169        </td>
    163170      </tr>
     
    174181            <%=valueIfNotNull("placeholder=\"", extraField.getPlaceHolder(), "\"") %>
    175182            maxlength="80"
    176             tabindex="0">
     183            tabindex="0"
     184            <%=DynamicActionAttributeSupport.getAttributesString(extraField)%>
     185            >
    177186          </td>
    178187        </tr>
Note: See TracChangeset for help on using the changeset viewer.