<div class="form-group">
  <div class="col-sm-12">
    <por-switch-field
      label="'Use namespace(s) specified from manifest'"
      tooltip="'If you have defined namespaces in your deployment file turning this on will enforce the use of those only in the deployment'"
      checked="$ctrl.formValues.UseManifestNamespaces"
      on-change="($ctrl.onChangeUseManifestNamespaces)"
    ></por-switch-field>
  </div>
</div>

<div class="col-sm-12 form-section-title"> Build method </div>
<box-selector slim="true" radio-name="'method'" value="$ctrl.state.Method" options="$ctrl.methodOptions" on-change="($ctrl.onChangeMethod)"></box-selector>

<web-editor-form
  ng-if="$ctrl.state.Method === 'editor'"
  identifier="stack-creation-editor"
  value="$ctrl.formValues.StackFileContent"
  on-change="($ctrl.onChangeFileContent)"
  yml="true"
  placeholder="Define or paste the content of your manifest here"
  ng-required="true"
>
  <editor-description>
    <kube-deploy-description></kube-deploy-description>
  </editor-description>
</web-editor-form>

<file-upload-form ng-if="$ctrl.state.Method === 'upload'" file="$ctrl.formValues.StackFile" on-change="($ctrl.onChangeFile)" ng-required="true">
  <file-upload-description>
    <kube-deploy-description></kube-deploy-description>
  </file-upload-description>
</file-upload-form>

<git-form
  ng-if="$ctrl.state.Method === 'repository'"
  deploy-method="kubernetes"
  value="$ctrl.formValues"
  on-change="($ctrl.onChangeFormValues)"
  base-webhook-url="{{ $ctrl.state.baseWebhookUrl }}"
  webhook-id="{{ $ctrl.state.webhookId }}"
></git-form>
