Commits

Zhang Huangbin committed abeda7d

Fix template error.

Comments (0)

Files changed (2)

templates/default/ldap/domains.html

 #}
 
 {# List all domains under control. #}
+{% if domains is not string and domains |length != 0 %}
 <div class="main-frm">
     <form id="list_table" method="post" action="{{ctx.homepath}}/domains">
     <table id="domain_list" cellspacing="0">
         </thead>
 
         {# List domain attributes/avalues. #}
-        {% if domains is not string and domains |length != 0 %}
         <tbody>
         {% for i in domains %}
             {% set entries = i[1] %}

templates/default/ldap/users.html

 <span>{{ _('View users under domain:') }} </span>
 <span>
     <select id="domainSelect" name="domainName" onchange="listAccountsUnderDomain(this, baseurl='{{ctx.homepath}}/users/');">
-        <option value="none" {% if cur_domain is sameas none %}selected{%endif%}>{{ _('Select one domain') }}</option>
-        {% for d in allDomains %}
-            <option value="{{d[1].domainName[0]}}" {% if cur_domain == d[1].domainName[0] %}selected{%endif%}>{{d[1].domainName[0]}}</option>
-        {% endfor %}
+    {% for d in allDomains %}
+        <option value="{{d[1].domainName[0]}}" {% if cur_domain == d[1].domainName[0] %}selected{%endif%}>{{d[1].domainName[0]}}</option>
+    {% endfor %}
     </select>
 </span>
 {% endblock id_welcome %}