cirandas.net

ref: master

plugins/ldap/views/ldap_plugin_admin/index.html.erb


<%= _("Ldap Management") %>

<%= labelled_form_for(:environment, :url => {:action => 'update'}) do |f| %>
<%= _('LDAP Configuration') %> <%= _('Value') %>
<%= _('Host') %> <%= text_field :environment, :ldap_plugin_host %>
<%= _('Port') %> <%= text_field :environment, :ldap_plugin_port %>
<%= _('Account') %> <%= text_field :environment, :ldap_plugin_account %>
<%= _('Account Password') %> <%= password_field :environment, :ldap_plugin_account_password %>
<%= _('Base DN') %> <%= text_field :environment, :ldap_plugin_base_dn %>
<%= _('LDAP Filter') %> <%= text_field :environment, :ldap_plugin_filter %>
<%= _('On the fly creation') %> <%= check_box :environment, :ldap_plugin_onthefly_register, {}, '1', '0' %>
<%= _('LDAPS') %> <%= check_box :environment, :ldap_plugin_tls, {}, '1', '0' %>
<%= _('Attributes') %> <%= _('LDAP Field') %>
<%= c_('Login') %> <%= text_field :environment, :ldap_plugin_attr_login %>
<%= _('Fullname') %> <%= text_field :environment, :ldap_plugin_attr_fullname %>
<%= _('Mail') %> <%= text_field :environment, :ldap_plugin_attr_mail %>
<%= _('Behaviour Configuration') %>
<%= button_bar do %> <%= submit_button('save', c_('Save changes')) %> <%= button :back, _('Back to plugins administration panel'), :controller => 'plugins' %> <% end %>
<% end %>