index.html.erb
2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<h1><%= _("Ldap Management") %> </h1>
<%= labelled_form_for(:environment, :url => {:action => 'update'}) do |f| %>
<table>
<tr>
<th><%= _('LDAP Configuration') %></th>
<th><%= _('Value') %></th>
</tr>
<tr>
<td><%= _('Host') %></td>
<td><%= text_field :environment, :ldap_plugin_host %></td>
</tr>
<tr>
<td><%= _('Port') %></td>
<td><%= text_field :environment, :ldap_plugin_port %></td>
</tr>
<tr>
<td><%= _('Account') %></td>
<td><%= text_field :environment, :ldap_plugin_account %></td>
</tr>
<tr>
<td><%= _('Account Password') %></td>
<td><%= password_field :environment, :ldap_plugin_account_password %></td>
</tr>
<tr>
<td><%= _('Base DN') %></td>
<td><%= text_field :environment, :ldap_plugin_base_dn %></td>
</tr>
<tr>
<td><%= _('LDAP Filter') %></td>
<td><%= text_field :environment, :ldap_plugin_filter %></td>
</tr>
<tr>
<td><%= _('On the fly creation') %></td>
<td><%= check_box :environment, :ldap_plugin_onthefly_register, {}, '1', '0' %></td>
</tr>
<tr>
<td><%= _('LDAPS') %></td>
<td><%= check_box :environment, :ldap_plugin_tls, {}, '1', '0' %></td>
</tr>
</table>
<table>
<tr>
<th><%= _('Attributes') %></th>
<th><%= _('LDAP Field') %></th>
</tr>
<tr>
<td><%= c_('Login') %></td>
<td><%= text_field :environment, :ldap_plugin_attr_login %></td>
</tr>
<tr>
<td><%= _('Fullname') %></td>
<td><%= text_field :environment, :ldap_plugin_attr_fullname %></td>
</tr>
<tr>
<td><%= _('Mail') %></td>
<td><%= text_field :environment, :ldap_plugin_attr_mail %></td>
</tr>
</table>
<table>
<tr>
<th><%= _('Behaviour Configuration') %></th>
</tr>
<tr>
<td><label>
<%= check_box :environment, :ldap_plugin_allow_password_recovery, {}, '1', '0' %>
<%= _('Allow password recovery') %>
</label></td>
</tr>
</table>
<div>
<% button_bar do %>
<%= submit_button('save', c_('Save changes')) %>
<%= button :back, _('Back to plugins administration panel'), :controller => 'plugins' %>
<% end %>
</div>
<% end %>