Sha256: d86247392f23f81df5bc656c3c93b8ec4c5fab5c87f67c2e96532465a6413284

Contents?: true

Size: 1.09 KB

Versions: 6

Compression:

Stored size: 1.09 KB

Contents

<%
  names = @user.attribute_names(true) - ["objectClass", "userPassword"]
  required_attributes = @user.must.collect(&:name)
%>

<h3><%= _("Update attributes") %></h3>

<table class="values form">
  <thead>
    <tr>
      <th><%= _("attribute name") %></th>
      <th><%= _("value") %></th>
      <th><%= _("description") %></th>
    </tr>
  </thead>

<% names.sort.each do |name| -%>
  <tr class="<%= cycle('even', 'odd') %>">
    <th scope="row">
      <label for="user_<%=h name %>"><%= h la_(name) %></label>
      <%= link_to("?", attribute_url_for_options(name)) %>
<%   if required_attributes.include?(name) -%>
      <span class="required-attribute-mark">*</span>
<%   end -%>
    </th>
    <td>
       <%=
          ldap_field(:text, :user, name,
                     :ldap_options => ["lang-en"]) do |field, info|
            ldap_options = info[:options]
            if ldap_options.empty?
              "#{field}<br />"
            else
              "#{ldap_options.join(';')}: #{field}<br />"
            end
          end
       -%>
    </td>
    <td><%= h lad_(name) %></td>
  </tr>
<% end -%>
</table>

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
activeldap-1.2.3 examples/al-admin/app/views/users/_attributes_update_form.html.erb
activeldap3-1.2.3 examples/al-admin/app/views/users/_attributes_update_form.html.erb
activeldap-1.2.2 examples/al-admin/app/views/users/_attributes_update_form.html.erb
activeldap-1.2.1 examples/al-admin/app/views/users/_attributes_update_form.html.erb
activeldap-1.2.0 examples/al-admin/app/views/users/_attributes_update_form.html.erb
activeldap-1.1.0 examples/al-admin/app/views/users/_attributes_update_form.html.erb