{% import 'macros_form.html' as form without context %} {% if ldap is defined %} {% call form.box(table=True, title='LDAP') %} {{ form.tablefield(label=trans('label_ldap_bind'), name='%sldap_bind' % uid, size='medium', type='text', value=ldap_bind) }} {{ form.tablefield(label=trans('label_ldap_passwd'), name='%sldap_passwd' % uid, size='medium', type='password', value='', extra=htmlstr('%s') % ('autocomplete=off' if not pw_autocomplete else '')) }} {% endcall %} {% endif %}