<commit_before>- return if controller_name != "ems_cloud"

.form-group{"ng-class" => "{'has-error': angularForm.#{prefix}_hostname.$invalid}", "ng-if" => "emsCommonModel.emstype != '' && emsCommonModel.emstype == 'openstack'"}
  %label.col-md-2.control-label{"for" => "textInput-markup"}
    = _('Hostname (or IPv4 or IPv6 address)')
  .col-md-8
    %input.form-control{"type"        => "text",
                        "id"          => "textInput-markup",
                        "name"        => "#{prefix}_hostname",
                        "ng-model"    => "#{ng_model}.#{prefix}_hostname",
                        "maxlength"   => "#{MAX_NAME_LEN}",
                        "required"    => "",
                        "checkchange" => ""}
    %span.help-block{"ng-show" => "angularForm.#{prefix}_hostname.$error.required"}
      = _("Required")

.form-group{"ng-class" => "{'has-error': angularForm.#{prefix}_api_port.$invalid}", "ng-if" => "emsCommonModel.emstype == 'openstack' || emsCommonModel.emstype == 'rhevm'"}
  %label.col-md-2.control-label{"for" => "textInput-markup"}
    = _('API Port')
  .col-md-8
    %input.form-control{"type"        => "text",
                        "id"          => "textInput-markup",
                        "name"        => "#{prefix}_api_port",
                        "ng-model"    => "#{ng_model}.#{prefix}_api_port",
                        "maxlength"   => 15,
                        "required"    => "",
                        "checkchange" => ""}
    %span.help-block{"ng-show" => "angularForm.#{prefix}_api_port.$error.required"}
      = _("Required")

.form-group{"ng-class" => "{'has-error': angularForm.#{prefix}_security_protocol.$invalid}", "ng-if" => "emsCommonModel.emstype == 'openstack' || emsCommonModel.emstype == 'openstack_infra'"}
  %label.col-md-2.control-label{"for" => "textInput-markup"}
    = _('Security Protocol')
  .col-md-8
    = select_tag("#{prefix}_security_protocol",<commit_msg>OpenStack cloud doesn't require AMQP hostname<commit_after>- return if controller_name != "ems_cloud"

.form-group{"ng-class" => "{'has-error': angularForm.#{prefix}_hostname.$invalid}", "ng-if" => "emsCommonModel.emstype != '' && emsCommonModel.emstype == 'openstack'"}
  %label.col-md-2.control-label{"for" => "textInput-markup"}
    = _('Hostname (or IPv4 or IPv6 address)')
  .col-md-8
    %input.form-control{"type"        => "text",
                        "id"          => "textInput-markup",
                        "name"        => "#{prefix}_hostname",
                        "ng-model"    => "#{ng_model}.#{prefix}_hostname",
                        "maxlength"   => "#{MAX_NAME_LEN}",
                        "checkchange" => ""}
    %span.help-block{"ng-show" => "angularForm.#{prefix}_hostname.$error.required"}
      = _("Required")

.form-group{"ng-class" => "{'has-error': angularForm.#{prefix}_api_port.$invalid}", "ng-if" => "emsCommonModel.emstype == 'openstack' || emsCommonModel.emstype == 'rhevm'"}
  %label.col-md-2.control-label{"for" => "textInput-markup"}
    = _('API Port')
  .col-md-8
    %input.form-control{"type"        => "text",
                        "id"          => "textInput-markup",
                        "name"        => "#{prefix}_api_port",
                        "ng-model"    => "#{ng_model}.#{prefix}_api_port",
                        "maxlength"   => 15,
                        "required"    => "",
                        "checkchange" => ""}
    %span.help-block{"ng-show" => "angularForm.#{prefix}_api_port.$error.required"}
      = _("Required")

.form-group{"ng-class" => "{'has-error': angularForm.#{prefix}_security_protocol.$invalid}", "ng-if" => "emsCommonModel.emstype == 'openstack' || emsCommonModel.emstype == 'openstack_infra'"}
  %label.col-md-2.control-label{"for" => "textInput-markup"}
    = _('Security Protocol')
  .col-md-8
    = select_tag("#{prefix}_security_protocol",
{'fraction_non_alphanumeric': 0.20066547222933198, 'fraction_numerical': 0.005119017148707448, 'mean_word_length': 2.273031825795645, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 52, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4554784', 'n_tokens_mistral': 1269, 'n_tokens_neox': 1253, 'n_words': 159}