= form_for @cluster, url: namespace_project_cluster_path(@project.namespace, @project, @cluster), as: :cluster do |field|
  = form_errors(@cluster)
  .form-group.append-bottom-20
    %label.append-bottom-10
      = field.hidden_field :enabled, { class: 'js-toggle-input'}

      %button{ type: 'button',
        class: "js-toggle-cluster project-feature-toggle #{'is-checked' unless !@cluster.enabled?} #{'is-disabled' unless can?(current_user, :update_cluster, @cluster)}",
        "aria-label": s_("ClusterIntegration|Toggle Cluster"),
        disabled: !can?(current_user, :update_cluster, @cluster) }
        %span.toggle-icon
          = sprite_icon('status_success_borderless', size: 16, css_class: 'toggle-icon-svg toggle-status-checked')
          = sprite_icon('status_failed_borderless', size: 16, css_class: 'toggle-icon-svg toggle-status-unchecked')

    - if can?(current_user, :update_cluster, @cluster)
      .form-group
        = field.submit _('Save changes'), class: 'btn btn-success'

= form_for @cluster, url: namespace_project_cluster_path(@project.namespace, @project, @cluster), as: :cluster do |field|
  = form_errors(@cluster)
  .form-group.append-bottom-20
    %label.append-bottom-10
      = field.hidden_field :enabled, { class: 'js-toggle-input'}

      %button{ type: 'button',
        class: "js-toggle-cluster project-feature-toggle #{'is-checked' unless !@cluster.enabled?} #{'is-disabled' unless can?(current_user, :update_cluster, @cluster)}",
        "aria-label": s_("ClusterIntegration|Toggle Cluster"),
        disabled: !can?(current_user, :update_cluster, @cluster) }
        %span.toggle-icon
          = sprite_icon('status_success_borderless', size: 16, css_class: 'toggle-icon-svg toggle-status-checked')
          = sprite_icon('status_failed_borderless', size: 16, css_class: 'toggle-icon-svg toggle-status-unchecked')

    - if can?(current_user, :update_cluster, @cluster)
      .form-group
        = field.submit _('Save'), class: 'btn btn-success'

Revert save button caption change
Revert save button caption change
