Sha256: 53dff1a9d9ed6c3bc18c827bd72b61f4164dd9d2dfc04ea5d23f96e1dafcae01
Contents?: true
Size: 1.3 KB
Versions: 1
Compression:
Stored size: 1.3 KB
Contents
<% using_object_classes = @user.classes available_object_classes = @user.schema.object_classes.collect(&:name) %> <% switcher("object-classes", _("Update objectClasses")) do %> <table class="values form"> <thead> <tr> <th><%= _("Use") %></th> <th><%= _("objectClass name") %></th> <th><%= _("Description") %></th> </tr> </thead> <tbody> <% available_object_classes.uniq.sort.each do |object_class| -%> <tr class="<%= cycle('even', 'odd') %>"> <td> <%= check_box_tag("object-classes[]", object_class, using_object_classes.include?(object_class), :id => "object-class-#{object_class}", :onchange => "updateAttributesForm(this.form)") %> </td> <td><%= link_to_object_class(object_class) %></td> <td><%=h locd_(object_class) %></td> </tr> <% end -%> </tbody> </table> <% reset_cycle %> <% end %> <%= javascript_tag("function updateAttributesForm(form) {" + remote_function(:update => attributes_form_id, :url => {:action => :update_object_classes, :id => @user}, :with => 'Form.serialize(form)') + "}") %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activeldap-0.9.0 | examples/al-admin/app/views/users/_object_classes_update_form.rhtml |