Search in sources :

Example 1 with ISimpleWebExecutionContext

use of com.helger.photon.core.execcontext.ISimpleWebExecutionContext in project phoss-directory by phax.

the class PDLoginManager method createLoginScreen.

@Override
protected IHTMLProvider createLoginScreen(final boolean bLoginError, @Nonnull final ICredentialValidationResult aLoginResult) {
    return new BootstrapLoginHTMLProvider(bLoginError, aLoginResult, getPageTitle()) {

        @Override
        @Nullable
        protected IHCNode createFormFooter(@Nonnull final ISimpleWebExecutionContext aSWEC) {
            final HCDiv aDiv = new HCDiv().addClass(CBootstrapCSS.D_FLEX).addClass(CBootstrapCSS.MT_5);
            aDiv.addChild(new HCSmall().addChild(CPDPublisher.getApplicationTitleWithVersion() + " / " + CDirectoryVersion.BUILD_TIMESTAMP));
            return aDiv;
        }
    };
}
Also used : HCDiv(com.helger.html.hc.html.grouping.HCDiv) BootstrapLoginHTMLProvider(com.helger.photon.bootstrap4.uictrls.ext.BootstrapLoginHTMLProvider) Nonnull(javax.annotation.Nonnull) HCSmall(com.helger.html.hc.html.textlevel.HCSmall) ISimpleWebExecutionContext(com.helger.photon.core.execcontext.ISimpleWebExecutionContext)

Aggregations

HCDiv (com.helger.html.hc.html.grouping.HCDiv)1 HCSmall (com.helger.html.hc.html.textlevel.HCSmall)1 BootstrapLoginHTMLProvider (com.helger.photon.bootstrap4.uictrls.ext.BootstrapLoginHTMLProvider)1 ISimpleWebExecutionContext (com.helger.photon.core.execcontext.ISimpleWebExecutionContext)1 Nonnull (javax.annotation.Nonnull)1