Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

824 B
Raw Blame
<% if can_users_have_auth_source? %>
  <div class="form--field">
    <%= f.collection_select :ldap_auth_source_id,
                            LdapAuthSource.all,
                            :id,
                            :name,
                            {
                              label: :"activerecord.attributes.user.auth_source",
                              container_class: "-middle",
                              include_blank: t(:label_internal)
                            },
                            data: {
                              action: "admin--users#toggleAuthenticationFields"
                            } %>
  </div>

  <div class="form--field"
       hidden
       data-admin--users-target="authSourceFields">
    <%= f.text_field :login, required: true, size: 25 %>
  </div>
<% end %>