<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi Felix,
<div class=""><br class="">
</div>
<div class=""> One option to make smaller customisations of the login page is to add a custom logo: See <a href="https://docs.openmicroscopy.org/omero/5.3.3/sysadmins/config.html#omero-web-login-logo" class="">https://docs.openmicroscopy.org/omero/5.3.3/sysadmins/config.html#omero-web-login-logo</a>.</div>
<div class=""><br class="">
</div>
<div class="">Otherwise, if you want a more-customised login page, you’ll have to add the form elements to your template instead of using {{ block super }}.</div>
<div class=""><br class="">
</div>
<div class=""> Let us know if you have any more details on what you’d like to achieve,</div>
<div class=""><br class="">
</div>
<div class=""> Regards,</div>
<div class=""><br class="">
</div>
<div class="">  Will.</div>
<div class=""><br class="">
</div>
<div class=""> </div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 21 Jul 2017, at 21:15, William Moore (Staff) <<a href="mailto:wmoore@dundee.ac.uk" class="">wmoore@dundee.ac.uk</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi Felix,
<div class=""><br class="">
</div>
<div class=""> If you want to display the login form, then this needs to be included in the context that</div>
<div class="">is used to render the page.</div>
<div class=""><br class="">
</div>
<div class="">See the context that is prepared in ‘handle_not_logged_in()’ at</div>
<div class=""><a href="https://github.com/openmicroscopy/openmicroscopy/blob/develop/components/tools/OmeroWeb/omeroweb/webclient/views.py#L220" class="">https://github.com/openmicroscopy/openmicroscopy/blob/develop/components/tools/OmeroWeb/omeroweb/webclient/views.py#L220</a></div>
<div class="">which includes several variables required by the login page, including the LoginForm required within the {% block login %}.</div>
<div class=""><br class="">
</div>
<div class="">As you can see here, the Custom page doesn’t include any of these in it’s context.</div>
<div class=""><a href="https://github.com/openmicroscopy/openmicroscopy/blob/develop/components/tools/OmeroWeb/omeroweb/webclient/views.py#L149" class="">https://github.com/openmicroscopy/openmicroscopy/blob/develop/components/tools/OmeroWeb/omeroweb/webclient/views.py#L149</a></div>
<div class=""><br class="">
</div>
<div class="">I’m away on holiday this week, but can give your requirements a bit more thought when I’m back next week…</div>
<div class=""><br class="">
</div>
<div class=""> Regards,</div>
<div class=""><br class="">
</div>
<div class="">  Will.</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On 21 Jul 2017, at 11:53, MEYENHOFER Felix <<a href="mailto:felix.meyenhofer@unifr.ch" class="">felix.meyenhofer@unifr.ch</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">Hi<br class="">
<br class="">
I was playing around with the customization of the web templates. There is the possibility to set a custom index page:;<br class="">
<a href="https://www-legacy.openmicroscopy.org/site/support/omero5.3/sysadmins/customization.html#index-page" class="">https://www-legacy.openmicroscopy.org/site/support/omero5.3/sysadmins/customization.html#index-page</a><br class="">
<br class="">
So I went and used the webclient/index.html template, which works fine. But then I tried to add the login form on the same page by inserting
<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>{{ block.super }}<br class="">
into the (% block login %} <br class="">
<br class="">
the result is not quite what I expected (see screenshot)<br class="">
<a href="https://drive.switch.ch/index.php/s/lTL00RDleui3XFC" class="">https://drive.switch.ch/index.php/s/lTL00RDleui3XFC</a><br class="">
When inspecting the page source code, there are comments <!--Form Error-->, where the fields from the login form should appear.
<br class="">
<br class="">
I could not find anything in the omero.web logs nor in the nginx logs. <br class="">
<br class="">
Is there another easy explanation for this?<br class="">
<br class="">
Best, <br class="">
<br class="">
Felix<br class="">
_______________________________________________<br class="">
ome-users mailing list<br class="">
ome-users@lists.openmicroscopy.org.uk<br class="">
http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
<br>
<span style="font-size:10pt;">The University of Dundee is a registered Scottish Charity, No: SC015096</span>
</body>
</html>