summaryrefslogtreecommitdiffstats
path: root/app/views/auth_sources
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-07-19 10:47:19 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-07-19 10:47:19 +0000
commiteb1d969237a9ed1bb41c6e10d5a9eb073f297e95 (patch)
tree53f88db3c4e26b74979f3d16626ed066cb7f77ae /app/views/auth_sources
parent93201e7386eb8bb2c69f110d934f04feb81ffe93 (diff)
downloadredmine-eb1d969237a9ed1bb41c6e10d5a9eb073f297e95.tar.gz
redmine-eb1d969237a9ed1bb41c6e10d5a9eb073f297e95.zip
Improved on-the-fly account creation. If some attributes are missing (eg. not present in the LDAP) or are invalid, the registration form is displayed so that the user is able to fill or fix these attributes.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1678 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/auth_sources')
-rw-r--r--app/views/auth_sources/_form.rhtml8
1 files changed, 2 insertions, 6 deletions
diff --git a/app/views/auth_sources/_form.rhtml b/app/views/auth_sources/_form.rhtml
index 3d148c11f..9ffffafc7 100644
--- a/app/views/auth_sources/_form.rhtml
+++ b/app/views/auth_sources/_form.rhtml
@@ -22,14 +22,12 @@
<p><label for="auth_source_base_dn"><%=l(:field_base_dn)%> <span class="required">*</span></label>
<%= text_field 'auth_source', 'base_dn', :size => 60 %></p>
-</div>
-<div class="box">
<p><label for="auth_source_onthefly_register"><%=l(:field_onthefly)%></label>
<%= check_box 'auth_source', 'onthefly_register' %></p>
+</div>
-<p>
-<fieldset><legend><%=l(:label_attribute_plural)%></legend>
+<fieldset class="box"><legend><%=l(:label_attribute_plural)%></legend>
<p><label for="auth_source_attr_login"><%=l(:field_login)%> <span class="required">*</span></label>
<%= text_field 'auth_source', 'attr_login', :size => 20 %></p>
@@ -42,7 +40,5 @@
<p><label for="auth_source_attr_mail"><%=l(:field_mail)%></label>
<%= text_field 'auth_source', 'attr_mail', :size => 20 %></p>
</fieldset>
-</p>
-</div>
<!--[eoform:auth_source]-->