<%= form_with class: "login", url: "/connect/ldap_login", method: :post do |f| %>
<%= f.text_field :ldap_username, placeholder: "Username", class: "login__input" %>
<%= f.password_field :ldap_password, placeholder: "Password", class: "login__input" %>
<%= f.button "Log in", class: "button login__submit" %>
<% end %>
<% if defined?(message) && defined?(title) %>
<%= title %>
<%= message.html_safe %>
<% end %>