Remove complete section when registering disabled.

Move out the check so that the complete div containing the register-link is removed.
This commit is contained in:
Andreas Neustifter 2018-04-23 19:57:04 +00:00
parent fe74a3d697
commit e5ed2fdede

View file

@ -33,9 +33,11 @@
</div>
</form>
{{if $register}}
<div id="login-extra-links">
<h3 id="login-head" class="sr-only">{{$register.title|escape:'html'}}</h3>
{{if $register}}<a href="register" title="{{$register.title|escape:'html'}}" id="register-link">{{$register.desc}}</a>{{/if}}
<a href="register" title="{{$register.title|escape:'html'}}" id="register-link">{{$register.desc}}</a>
</div>
{{/if}}
<script type="text/javascript"> $(document).ready(function() { $("#id_{{$lname.0}}").focus();} );</script>