Project

General

Profile

Defect #4043 » autocomplete_v2.diff

Daniel Felix, 2013-02-05 21:30

View differences:

app/views/auth_sources/_form_auth_source_ldap.html.erb
1 1
<%= error_messages_for 'auth_source' %>
2 2

  
3 3
<div class="box tabular">
4
  <p><%= f.text_field :name, :required => true %></p>
5
  <p><%= f.text_field :host, :required => true %></p>
6
  <p><%= f.text_field :port, :required => true, :size => 6 %> <%= f.check_box :tls, :no_label => true %> LDAPS</p>
7
  <p><%= f.text_field :account %></p>
8
  <p><%= f.password_field :account_password, :label => :field_password,
4
  <p><%= f.text_field :name, :required => true, :autocomplete %></p>
5
  <p><%= f.text_field :host, :required => true, :autocomplete %></p>
6
  <p><%= f.text_field :port, :required => true, :size => 6, :autocomplete => 'off' %> <%= f.check_box :tls, :no_label => true %> LDAPS</p>
7
  <p><%= f.text_field :account :autocomplete => 'off' %></p>
8
  <p><%= f.password_field :account_password, :label => :field_password, :autocomplete => 'off',
9 9
           :name => 'dummy_password',
10 10
           :value => ((@auth_source.new_record? || @auth_source.account_password.blank?) ? '' : ('x'*15)),
11 11
           :onfocus => "this.value=''; this.name='auth_source[account_password]';",
12 12
           :onchange => "this.name='auth_source[account_password]';" %></p>
13
  <p><%= f.text_field :base_dn, :required => true, :size => 60 %></p>
14
  <p><%= f.text_field :filter, :size => 60, :label => :field_auth_source_ldap_filter %></p>
15
  <p><%= f.text_field :timeout, :size => 4 %></p>
13
  <p><%= f.text_field :base_dn, :required => true, :size => 60, :autocomplete %></p>
14
  <p><%= f.text_field :filter, :size => 60, :autocomplete, :label => :field_auth_source_ldap_filter %></p>
15
  <p><%= f.text_field :timeout, :size => 4, :autocomplete %></p>
16 16
  <p><%= f.check_box :onthefly_register, :label => :field_onthefly %></p>
17 17
</div>
18 18

  
19 19
<fieldset class="box tabular"><legend><%=l(:label_attribute_plural)%></legend>
20
  <p><%= f.text_field :attr_login, :required => true, :size => 20 %></p>
21
  <p><%= f.text_field :attr_firstname, :size => 20 %></p>
22
  <p><%= f.text_field :attr_lastname, :size => 20 %></p>
23
  <p><%= f.text_field :attr_mail, :size => 20 %></p>
20
  <p><%= f.text_field :attr_login, :required => true, :size => 20, :autocomplete %></p>
21
  <p><%= f.text_field :attr_firstname, :size => 20, :autocomplete %></p>
22
  <p><%= f.text_field :attr_lastname, :size => 20, :autocomplete %></p>
23
  <p><%= f.text_field :attr_mail, :size => 20, :autocomplete %></p>
24 24
</fieldset>
(4-4/4)