Source

iredadmin-ose / templates / default / ldap / admin / profile.html

Diff from to

File templates/default/ldap/admin/profile.html

 
 {% set entry = profile[0][1] %}
 {% set cn = entry.get('cn', [''])[0].decode('utf-8') %}
+{% set first_name = entry.get('givenName', [''])[0].decode('utf-8') |e %}
+{% set last_name = entry.get('sn', [''])[0].decode('utf-8') |e %}
 {% set accountStatus = entry.get('accountStatus', ['disabled'])[0] %}
 
 {% block breadcrumb %}
                                 <div class="bt-space0">&nbsp;</div>
                             {% endif %}
 
-                            {{ display_input_cn(cn=cn, accountType='admin') }}
+                            {{ display_input_cn(cn,
+                                                tooltip=_('Full name'),
+                                                show_first_last_name=true,
+                                                first_name=first_name,
+                                                last_name=last_name) }}
                             {{ display_preferred_language(value=entry.get('preferredLanguage', ['en_US'])[0], languagemaps=languagemaps) }}
                         </div>
                     </div>{# .columns #}