Project

General

Profile

Download (1.27 KB) Statistics
| Branch: | Tag: | Revision:

foreman_pipeline / app / assets / javascripts / foreman_pipeline / jobs / details / views / job-details-to-environment.html @ be52ca64

1
<span page-title ng-model="job">{{ 'Job: ' | translate }}{{ job.name }}</span>
2

    
3
<section class="nutupane-sub-section">
4
  <div bst-alert success-messages="successMessages" error-messages="errorMessages"></div>
5
  
6
  <h4 translate>Lifecycle Environment selection</h4>
7

    
8
  <section ng-hide="loading || environments.length === 0">
9
    <span path-selector="environments"
10
              ng-model="chosenEnvironment"
11
              mode="singleSelect"
12
              disabled="denied('edit_jobs', job)"
13
              disable-trigger="disableEnvironmentSelection">
14
    </span>
15

    
16
    <br/>
17

    
18
    <button class="btn btn-default"
19
            ng-hide="denied('edit_jobs')"
20
            ng-disabled="!chosenEnvironment || working"
21
            ng-click="setEnvironment()">
22
      <i class="icon-pencil" ng-hide="working"></i>      
23
      <i class="icon-spinner icon-spin" ng-show="working"></i>           
24
      <span translate>Set Environment</span>
25
    </button>
26
  </section>
27
  
28
    <div class="loading-mask" ng-show="loading">
29
      <i class="icon-spinner icon-spin"></i>
30
        {{ "Loading..." | translate }}          
31
    </div>
32

    
33
  <div ng-show="environmnets.length === 0" >
34
    <p class="alert alert-info"
35
       ng-hide="loading"
36
       translate> No Lifecycle Environmnets to show.
37
    </p>
38
  </div>
39

    
40
</section>
41

    
42

    
43