Revision 912:5e80956cc792 app/views/ldap_auth_sources

View differences:

app/views/ldap_auth_sources/_form.html.erb
1
<%= error_messages_for 'auth_source' %>
2

  
3
<div class="box">
4
<!--[form:auth_source]-->
5
<p><label for="auth_source_name"><%=l(:field_name)%> <span class="required">*</span></label>
6
<%= text_field 'auth_source', 'name'  %></p>
7

  
8
<p><label for="auth_source_host"><%=l(:field_host)%> <span class="required">*</span></label>
9
<%= text_field 'auth_source', 'host'  %></p>
10

  
11
<p><label for="auth_source_port"><%=l(:field_port)%> <span class="required">*</span></label>
12
<%= text_field 'auth_source', 'port', :size => 6 %> <%= check_box 'auth_source', 'tls'  %> LDAPS</p>
13

  
14
<p><label for="auth_source_account"><%=l(:field_account)%></label>
15
<%= text_field 'auth_source', 'account'  %></p>
16

  
17
<p><label for="auth_source_account_password"><%=l(:field_password)%></label>
18
<%= password_field 'auth_source', 'account_password', :name => 'ignore',
19
                                           :value => ((@auth_source.new_record? || @auth_source.account_password.blank?) ? '' : ('x'*15)),
20
                                           :onfocus => "this.value=''; this.name='auth_source[account_password]';",
21
                                           :onchange => "this.name='auth_source[account_password]';" %></p>
22

  
23
<p><label for="auth_source_base_dn"><%=l(:field_base_dn)%> <span class="required">*</span></label>
24
<%= text_field 'auth_source', 'base_dn', :size => 60 %></p>
25

  
26
<p><label for="auth_source_onthefly_register"><%=l(:field_onthefly)%></label>
27
<%= check_box 'auth_source', 'onthefly_register' %></p>
28
</div>
29

  
30
<fieldset class="box"><legend><%=l(:label_attribute_plural)%></legend>
31
<p><label for="auth_source_attr_login"><%=l(:field_login)%> <span class="required">*</span></label>
32
<%= text_field 'auth_source', 'attr_login', :size => 20  %></p>
33

  
34
<p><label for="auth_source_attr_firstname"><%=l(:field_firstname)%></label>
35
<%= text_field 'auth_source', 'attr_firstname', :size => 20  %></p>
36

  
37
<p><label for="auth_source_attr_lastname"><%=l(:field_lastname)%></label>
38
<%= text_field 'auth_source', 'attr_lastname', :size => 20  %></p>
39

  
40
<p><label for="auth_source_attr_mail"><%=l(:field_mail)%></label>
41
<%= text_field 'auth_source', 'attr_mail', :size => 20  %></p>
42
</fieldset>
43
<!--[eoform:auth_source]-->
44

  
app/views/ldap_auth_sources/_form.rhtml
1
<%= error_messages_for 'auth_source' %>
2

  
3
<div class="box">
4
<!--[form:auth_source]-->
5
<p><label for="auth_source_name"><%=l(:field_name)%> <span class="required">*</span></label>
6
<%= text_field 'auth_source', 'name'  %></p>
7

  
8
<p><label for="auth_source_host"><%=l(:field_host)%> <span class="required">*</span></label>
9
<%= text_field 'auth_source', 'host'  %></p>
10

  
11
<p><label for="auth_source_port"><%=l(:field_port)%> <span class="required">*</span></label>
12
<%= text_field 'auth_source', 'port', :size => 6 %> <%= check_box 'auth_source', 'tls'  %> LDAPS</p>
13

  
14
<p><label for="auth_source_account"><%=l(:field_account)%></label>
15
<%= text_field 'auth_source', 'account'  %></p>
16

  
17
<p><label for="auth_source_account_password"><%=l(:field_password)%></label>
18
<%= password_field 'auth_source', 'account_password', :name => 'ignore',
19
                                           :value => ((@auth_source.new_record? || @auth_source.account_password.blank?) ? '' : ('x'*15)),
20
                                           :onfocus => "this.value=''; this.name='auth_source[account_password]';",
21
                                           :onchange => "this.name='auth_source[account_password]';" %></p>
22

  
23
<p><label for="auth_source_base_dn"><%=l(:field_base_dn)%> <span class="required">*</span></label>
24
<%= text_field 'auth_source', 'base_dn', :size => 60 %></p>
25

  
26
<p><label for="auth_source_onthefly_register"><%=l(:field_onthefly)%></label>
27
<%= check_box 'auth_source', 'onthefly_register' %></p>
28
</div>
29

  
30
<fieldset class="box"><legend><%=l(:label_attribute_plural)%></legend>
31
<p><label for="auth_source_attr_login"><%=l(:field_login)%> <span class="required">*</span></label>
32
<%= text_field 'auth_source', 'attr_login', :size => 20  %></p>
33

  
34
<p><label for="auth_source_attr_firstname"><%=l(:field_firstname)%></label>
35
<%= text_field 'auth_source', 'attr_firstname', :size => 20  %></p>
36

  
37
<p><label for="auth_source_attr_lastname"><%=l(:field_lastname)%></label>
38
<%= text_field 'auth_source', 'attr_lastname', :size => 20  %></p>
39

  
40
<p><label for="auth_source_attr_mail"><%=l(:field_mail)%></label>
41
<%= text_field 'auth_source', 'attr_mail', :size => 20  %></p>
42
</fieldset>
43
<!--[eoform:auth_source]-->
44

  

Also available in: Unified diff