<commit_before>= content_for :body_class, "worker_bootstrap"

h1
  ' Bootstrap your CaaS Platform
  small in Microsoft Azure


= form_for @cloud_cluster, url: setup_build_cloud_cluster_path do |form|
  = form.hidden_field :cloud_framework
  p
    ' In order to complete the installation, it is necessary to bootstrap a few
    ' additional nodes, those will be the Kubernetes Master and Workers.

  .panel.panel-default
    .panel-heading
      h3.panel-title Service Principal Authentication
    .panel-body
      .col-lg-3.col-md-6
        .form-group
          label for="cloud_cluster_subscription_id" Subscription ID
          = form.text_field :subscription_id, class: "form-control"
      .col-lg-3.col-md-6
        .form-group
          label for="cloud_cluster_tenant_id" Tenant ID
          = form.text_field :tenant_id, class: "form-control"
      .col-lg-3.col-md-6
        .form-group
          label for="cloud_cluster_client_id" Application ID
          = form.text_field :client_id, class: "form-control"
      .col-lg-3.col-md-6
        .form-group
          label for="cloud_cluster_secret" Client Secret
          = form.password_field :secret, class: "form-control"


  = render "instance_type_panel",
    form: form,
    list_url: "https://docs.microsoft.com/en-us/azure/virtual-machines/linux/sizes/"

  = render "cluster_size_panel", form: form

  .panel.panel-default
    .panel-heading
      h3.panel-title Resource Scopes
    .panel-body
      .col-lg-3.col-md-6
        .form-group
          label for="cloud_cluster_resource_group" Resource Group
          = form.text_field :resource_group, class: "form-control"
      .col-lg-3.col-md-6
        .form-group
          label for="cloud_cluster_storage_account" Storage Account
          = form.text_field :storage_account, class: "form-control"
      .col-lg-3.col-md-6
        .form-group
          label for="cloud_cluster_network_id" Network
          = form.text_field :network_id, class: "form-control"
      .col-lg-3.col-md-6
        .form-group
          label for="cloud_cluster_subnet_id" Subnet
          = form.text_field :subnet_id, class: "form-control"

  .clearfix.text-right.steps-container<commit_msg>PubCloud#Azure Add a help link for authentication inputs<commit_after>= content_for :body_class, "worker_bootstrap"

h1
  ' Bootstrap your CaaS Platform
  small in Microsoft Azure


= form_for @cloud_cluster, url: setup_build_cloud_cluster_path do |form|
  = form.hidden_field :cloud_framework
  p
    ' In order to complete the installation, it is necessary to bootstrap a few
    ' additional nodes, those will be the Kubernetes Master and Workers.

  .panel.panel-default
    .panel-heading
      h3.panel-title Service Principal Authentication
    .panel-body
      .col-lg-3.col-md-6
        .form-group
          label for="cloud_cluster_subscription_id" Subscription ID
          = form.text_field :subscription_id, class: "form-control"
      .col-lg-3.col-md-6
        .form-group
          label for="cloud_cluster_tenant_id" Tenant ID
          = form.text_field :tenant_id, class: "form-control"
      .col-lg-3.col-md-6
        .form-group
          label for="cloud_cluster_client_id" Application ID
          = form.text_field :client_id, class: "form-control"
      .col-lg-3.col-md-6
        .form-group
          label for="cloud_cluster_secret" Client Secret
          = form.password_field :secret, class: "form-control"
    .panel-footer
      h4 Tip
      p
        ' Questions about services principals? Check out the
        = link_to("Azure documentation", "https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-create-service-principal-portal")
        ' .

  = render "instance_type_panel",
    form: form,
    list_url: "https://docs.microsoft.com/en-us/azure/virtual-machines/linux/sizes/"

  = render "cluster_size_panel", form: form

  .panel.panel-default
    .panel-heading
      h3.panel-title Resource Scopes
    .panel-body
      .col-lg-3.col-md-6
        .form-group
          label for="cloud_cluster_resource_group" Resource Group
          = form.text_field :resource_group, class: "form-control"
      .col-lg-3.col-md-6
        .form-group
          label for="cloud_cluster_storage_account" Storage Account
          = form.text_field :storage_account, class: "form-control"
      .col-lg-3.col-md-6
        .form-group
          label for="cloud_cluster_network_id" Network
          = form.text_field :network_id, class: "form-control"
      .col-lg-3.col-md-6
        .form-group
          label for="cloud_cluster_subnet_id" Subnet
          = form.text_field :subnet_id, class: "form-control"

  .clearfix.text-right.steps-container
{'fraction_non_alphanumeric': 0.10253137630291427, 'fraction_numerical': 0.008296107211231652, 'mean_word_length': 2.5460030165912517, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, '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': '3947352', 'n_tokens_mistral': 1493, 'n_tokens_neox': 1473, 'n_words': 314}