<commit_before>%form.form-horizontal#form_div{:name                                 => "angularForm",
                               'ng-show'                             => "vm.afterGet",
                               'miq-form'                            => 'true',
                               'form-changed'                        => 'true',
                               'model'                               => 'vm.logCollectionModel',
                               'model-copy'                          => 'vm.modelCopy',
                               :novalidate                           => 1}
  = render :partial => "layouts/flash_msg"

  %h3
    {{vm.message}}

  .form-group
    %label.control-label.col-md-2
      = _("Type")
    .col-md-8
      = select_tag("log_protocol",
                   "",
                   "ng-options" => "choice for choice in vm.selectOptions",
                   "ng-model"   => "vm.logCollectionModel.log_protocol",
                   "ng-change"  => "vm.logProtocolChanged()",
                   "pf-select"  => true)
  %div{"ng-show" => "vm.miqDBBackupService.logProtocolSelected(vm.logCollectionModel) && vm.logCollectionModel.log_protocol !== '<No Depot>'"}
    .form-group{"ng-class" => "{'has-error': angularForm.depot_name.$invalid}"}
      %label.col-md-2.control-label{"for" => "depot_name"}
        = _("Depot Name")
      .col-md-8
        %input.form-control{"type"        => "text",
                            "id"          => "depot_name",
                            "ng-required" => "vm.miqDBBackupService.dbRequired(vm.logCollectionModel, vm.logCollectionModel.depot_name)",
                            "name"        => "depot_name",
                            "ng-model"    => "vm.logCollectionModel.depot_name",
                            "ng-readonly" => "vm.logCollectionModel.log_protocol == 'Red Hat Support' || vm.logCollectionModel.log_protocol == 'Red Hat Drobox'",
                            "checkchange" => "",
                            "auto-focus"  => "reactiveFocus"}
        %span.help-block{"ng-show" => "angularForm.depot_name.$invalid"}
          = _("Required")
  %div{"ng-show" => "vm.miqDBBackupService.logProtocolSelected(vm.logCollectionModel) && vm.logCollectionModel.log_protocol !== '<No Depot>'"}
    .form-group{"ng-class" => "{'has-error': angularForm.uri.$invalid}"}
      %label.col-md-2.control-label{"for" => "uri"}
        = _("URI")
      .col-md-8
        .input-group
          %span.input-group-addon
            = "{{vm.logCollectionModel.uri_prefix}}://"
          %input.uri-input.form-control{"type"        => "text",
                                        "id"          => "uri",
                                        "ng-required" => "vm.miqDBBackupService.dbRequired(vm.logCollectionModel, vm.logCollectionModel.uri)",
                                        "name"        => "uri",
                                        "ng-model"    => "vm.logCollectionModel.uri",
                                        "ng-readonly" => "vm.logCollectionModel.log_protocol == 'Red Hat Support' || vm.logCollectionModel.log_protocol == 'Red Hat Drobox'",
                                        "checkchange" => ""}
        %span.help-block{"ng-show" => "angularForm.uri.$invalid"}
          = _("Required")
        %input{"type" => "hidden", "name" => "uri_prefix", "ng-value" => "vm.logCollectionModel.uri_prefix"}

  %auth-credentials{'ng-if'               => 'vm.miqDBBackupService.credsProtocol(vm.logCollectionModel)',
                    'form-model'          => 'vm.logCollectionModel',
                    'model-copy'          => 'vm.modelCopy',
                    'prefix'              => '{{vm.prefix}}',
                    'user-required'       => true,
                    'password-required'   => true,
                    'enable-valid-button' => 'vm.canValidateBasicInfo()',
                    'validate'            => 'vm.validateClicked',
                    'new-record'          => 'vm.newRecord'}

  = render :partial => "layouts/angular/generic_form_buttons"<commit_msg>Fix typo in #6341<commit_after>%form.form-horizontal#form_div{:name                                 => "angularForm",
                               'ng-show'                             => "vm.afterGet",
                               'miq-form'                            => 'true',
                               'form-changed'                        => 'true',
                               'model'                               => 'vm.logCollectionModel',
                               'model-copy'                          => 'vm.modelCopy',
                               :novalidate                           => 1}
  = render :partial => "layouts/flash_msg"

  %h3
    {{vm.message}}

  .form-group
    %label.control-label.col-md-2
      = _("Type")
    .col-md-8
      = select_tag("log_protocol",
                   "",
                   "ng-options" => "choice for choice in vm.selectOptions",
                   "ng-model"   => "vm.logCollectionModel.log_protocol",
                   "ng-change"  => "vm.logProtocolChanged()",
                   "pf-select"  => true)
  %div{"ng-show" => "vm.miqDBBackupService.logProtocolSelected(vm.logCollectionModel) && vm.logCollectionModel.log_protocol !== '<No Depot>'"}
    .form-group{"ng-class" => "{'has-error': angularForm.depot_name.$invalid}"}
      %label.col-md-2.control-label{"for" => "depot_name"}
        = _("Depot Name")
      .col-md-8
        %input.form-control{"type"        => "text",
                            "id"          => "depot_name",
                            "ng-required" => "vm.miqDBBackupService.dbRequired(vm.logCollectionModel, vm.logCollectionModel.depot_name)",
                            "name"        => "depot_name",
                            "ng-model"    => "vm.logCollectionModel.depot_name",
                            "ng-readonly" => "vm.logCollectionModel.log_protocol == 'Red Hat Support' || vm.logCollectionModel.log_protocol == 'Red Hat Dropbox'",
                            "checkchange" => "",
                            "auto-focus"  => "reactiveFocus"}
        %span.help-block{"ng-show" => "angularForm.depot_name.$invalid"}
          = _("Required")
  %div{"ng-show" => "vm.miqDBBackupService.logProtocolSelected(vm.logCollectionModel) && vm.logCollectionModel.log_protocol !== '<No Depot>'"}
    .form-group{"ng-class" => "{'has-error': angularForm.uri.$invalid}"}
      %label.col-md-2.control-label{"for" => "uri"}
        = _("URI")
      .col-md-8
        .input-group
          %span.input-group-addon
            = "{{vm.logCollectionModel.uri_prefix}}://"
          %input.uri-input.form-control{"type"        => "text",
                                        "id"          => "uri",
                                        "ng-required" => "vm.miqDBBackupService.dbRequired(vm.logCollectionModel, vm.logCollectionModel.uri)",
                                        "name"        => "uri",
                                        "ng-model"    => "vm.logCollectionModel.uri",
                                        "ng-readonly" => "vm.logCollectionModel.log_protocol == 'Red Hat Support' || vm.logCollectionModel.log_protocol == 'Red Hat Dropbox'",
                                        "checkchange" => ""}
        %span.help-block{"ng-show" => "angularForm.uri.$invalid"}
          = _("Required")
        %input{"type" => "hidden", "name" => "uri_prefix", "ng-value" => "vm.logCollectionModel.uri_prefix"}

  %auth-credentials{'ng-if'               => 'vm.miqDBBackupService.credsProtocol(vm.logCollectionModel)',
                    'form-model'          => 'vm.logCollectionModel',
                    'model-copy'          => 'vm.modelCopy',
                    'prefix'              => '{{vm.prefix}}',
                    'user-required'       => true,
                    'password-required'   => true,
                    'enable-valid-button' => 'vm.canValidateBasicInfo()',
                    'validate'            => 'vm.validateClicked',
                    'new-record'          => 'vm.newRecord'}

  = render :partial => "layouts/angular/generic_form_buttons"
{'fraction_non_alphanumeric': 0.1505232416646386, 'fraction_numerical': 0.002433682161109759, 'mean_word_length': 1.364499424626007, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 103, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3520492', 'n_tokens_mistral': 2231, 'n_tokens_neox': 2200, 'n_words': 284}