portainer/portainer

View on GitHub
app/edge/views/edge-jobs/edgeJob/edgeJob.html

Summary

Maintainability
Test Coverage
<page-header title="'Edge job details'" breadcrumbs="[{label:'Edge jobs', link:'edge.jobs'}, $ctrl.edgeJob.Name]" reload="true"> </page-header>

<div class="row">
  <div class="col-sm-12">
    <rd-widget>
      <rd-widget-body>
        <uib-tabset active="$ctrl.state.activeTab">
          <uib-tab index="0" select="$ctrl.showEditor()">
            <uib-tab-heading>
              <span><pr-icon icon="'wrench'"></pr-icon></span> Configuration
            </uib-tab-heading>

            <edge-job-form
              ng-if="$ctrl.edgeJob && $ctrl.state.showEditorTab"
              model="$ctrl.edgeJob"
              endpoints="endpoints"
              groups="$ctrl.groups"
              tags="$ctrl.tags"
              edge-groups="$ctrl.edgeGroups"
              form-action="$ctrl.update"
              form-action-label="Update Edge job"
              action-in-progress="$ctrl.state.actionInProgress"
              is-editor-dirty="$ctrl.state.isEditorDirty"
            ></edge-job-form>
          </uib-tab>

          <uib-tab index="1">
            <uib-tab-heading>
              <span><pr-icon icon="'list'"></pr-icon></span> Results
            </uib-tab-heading>

            <edge-job-results-datatable
              class="mt-4 block"
              ng-if="$ctrl.results"
              dataset="$ctrl.results"
              on-refresh="($ctrl.refresh)"
              on-download-logs="($ctrl.downloadLogs)"
              on-collect-logs="($ctrl.collectLogs)"
              on-clear-logs="($ctrl.clearLogs)"
            ></edge-job-results-datatable>
          </uib-tab>
        </uib-tabset>
      </rd-widget-body>
    </rd-widget>
  </div>
</div>