app/views/ops/_ldap_verify_button.html.haml
- validate_disabled = @edit[:new][:authentication][:ldaphost].empty? || @edit[:new][:authentication][:ldapport].nil?
= hidden_div_if(validate_disabled, :id => "verify_button_on") do
= link_to(_("Validate"),
{:action => "settings_update",
:button => "verify",
:id => id},
:class => "btn btn-primary btn-xs",
:alt => _("Validate the LDAP Settings by binding with the Host"),
"data-miq_sparkle_on" => true,
"data-miq_sparkle_off" => true,
:remote => true,
"data-method" => :post,
:title => _("Validate the LDAP Settings by binding with the Host"))
= hidden_div_if(! validate_disabled, :id => "verify_button_off") do
= button_tag(_("Validate"),
:class => "btn btn-primary btn-xs disabled",
:title => _("LDAP Hostname and Port fields are needed to perform verification of LDAP Settings"))