Browse Source

HUE-803 [useradmin] Improved "sync users and groups" UI slightly.

The "create home directories" checkbox was placed next to the "cancel" and "sync" buttons.
The checkbox is now above the buttons, outside of the footer, inside the body.
It is still beneath the explanation.
abec 13 years ago
parent
commit
c17ebe438a
1 changed files with 13 additions and 14 deletions
  1. 13 14
      apps/useradmin/src/useradmin/templates/sync_ldap_users_groups.mako

+ 13 - 14
apps/useradmin/src/useradmin/templates/sync_ldap_users_groups.mako

@@ -31,23 +31,22 @@ from django.utils.translation import ugettext as _
   %endif
   %endif
 </%def>
 </%def>
 
 
-<div class="modal-header">
-  <button type="button" class="close" data-dismiss="modal">&times;</button>
-  <h3>${_('Sync LDAP users and groups')}</h3>
-</div>
-<div class="modal-body">
-  <div class="alert alert-info">
-    ${_("This will not import any users or groups that don't already exist in Hue. Only users and groups imported from LDAP can be synced.")}
-    <br/>
-    ${_("All user information and group memberships will be updated based on the LDAP server's current state.")}
+<form action="${path}" method="POST" class="form form-inline right">
+  <div class="modal-header left">
+    <button type="button" class="close" data-dismiss="modal">&times;</button>
+    <h3>${_('Sync LDAP users and groups')}</h3>
   </div>
   </div>
-</div>
-<div class="modal-footer">
-  <form action="${path}" method="POST" class="form form-inline">
+  <div class="modal-body">
+    <div class="alert alert-info left">
+      <p>${_("This will not import any users or groups that don't already exist in Hue. Only users and groups imported from LDAP can be synced.")}</p>
+      <p>${_("All user information and group memberships will be updated based on the LDAP server's current state.")}</p>
+    </div>
     % for field in form:
     % for field in form:
       ${render_field(field)}
       ${render_field(field)}
     % endfor
     % endfor
+  </div>
+  <div class="modal-footer">
     <a href="#" class="btn" data-dismiss="modal">${_('Cancel')}</a>
     <a href="#" class="btn" data-dismiss="modal">${_('Cancel')}</a>
     <input type="submit" class="btn primary" value="${_('Sync')}"/>
     <input type="submit" class="btn primary" value="${_('Sync')}"/>
-  </form>
-</div>
+  </div>
+</form>