Changeset - a1ab3e9c7e82
[Not reviewed]
beta
0 2 0
Marcin Kuzminski - 14 years ago 2011-06-13 18:04:42
marcin@python-works.com
fixes #204, ldap active checkbox, credits goes to Matt Little.
2 files changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/model/db.py
Show inline comments
 
@@ -103,6 +103,9 @@ class RhodeCodeSettings(Base):
 
        fd = {}
 
        for row in ret:
 
            fd.update({row.app_settings_name:row.app_settings_value})
 

	
 
        fd.update({'ldap_active':str2bool(fd.get('ldap_active'))})
 

	
 
        return fd
 

	
 

	
rhodecode/templates/admin/ldap/ldap.html
Show inline comments
 
@@ -28,7 +28,7 @@
 
	  <h3>${_('Connection settings')}</h3>
 
            <div class="field">
 
                <div class="label label-checkbox"><label for="ldap_active">${_('Enable LDAP')}</label></div>
 
                <div class="checkboxes"><div class="checkbox">${h.checkbox('ldap_active','true',class_='small')}</div></div>
 
                <div class="checkboxes"><div class="checkbox">${h.checkbox('ldap_active',True,class_='small')}</div></div>
 
            </div>
 
            <div class="field">
 
                <div class="label"><label for="ldap_host">${_('Host')}</label></div>
0 comments (0 inline, 0 general)