Project

General

Profile

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

foreman_pipeline / app / assets / javascripts / foreman_pipeline / jobs / details / project-discovery / views / job-projects-parameters.html @ be52ca64

1
<div bst-alert success-messages="successMessages" error-messages="errorMessages"></div>
2

    
3
<div class="row">
4
    <div class="col-sm-5">
5
      <a href="" ui-sref="jobs.details.jenkins-projects.list({jobId: job.id})">
6
      <i class="icon-double-angle-left"></i>
7
      {{ "Back" | translate }}
8
      </a>
9
    </div>
10
</div>
11

    
12
<div class="details fl">
13
  <section>
14
    <h3 translate>Projects Parameters</h3>
15
    <br/>
16
    <div ng-repeat="(index, projectParam) in projectParamsList">
17

    
18
      <h4>{{ projectParam.type }}<span translate>&nbsp;Parameter </span></h4>
19
      <div ng-switch="projectParam.type">
20
        
21
        <div ng-switch-when="string">
22
          <div class="detail">
23
            <span class="info-label">{{ projectParam.name }}</span>
24
            <span class="info-value"
25
                  bst-edit-text="projectParam.value"
26
                  on-save="save(projectParam)">
27
            </span>
28
          </div> 
29
        </div>
30

    
31
        <div ng-switch-when="boolean">
32
          <div class="detail">
33
            <span class="info-label">{{ projectParam.name }}</span>
34
            <span class="info-value"
35
                  bst-edit-checkbox="projectParam.value"
36
                  readonly="denied('edit_jobs', job)"
37
                  formatter="booleanToYesNo"
38
                  on-save="save(projectParam)">
39
            </span>
40
          </div>
41
        </div>
42

    
43
        <div ng-switch-when="text">
44
          <div class="detail">
45
            <span class="info-label">{{ projectParam.name }}</span>
46
            <span class="info-value"
47
                  bst-edit-textarea="projectParam.value"
48
                  on-save="save(projectParam)">
49
            </span>
50
          </div> 
51
        </div>
52

    
53
        
54
        <div class="detail">
55
          <span class="info-label">Description</span>
56
          <span class="info-value">{{ projectParam.description }}</span>  
57
        </div>
58
        <br/>
59
        
60
      </div>
61

    
62
    </div>
63
    <!-- <div class="detail">
64
      <span class="info-label" translate>Name</span>
65
      <span class="info-value"
66
            bst-edit-text="jenkinsInstance.name"
67
            on-save="save(jenkinsInstance)">
68
      </span>
69
    </div>
70

71
    <div class="detail">
72
      <span class="info-label" translate>Url</span>
73
      <span class="info-value">{{ jenkinsInstance.url }}</span>
74
    </div> -->
75
   
76
  </section>
77

    
78
  <div ng-show="projectParamsList.length === 0">
79
    <div class="loading-mask" ng-show="loading">
80
      <i class="icon-spinner icon-spin"></i>
81
        {{ "Loading..." | translate }}          
82
    </div>
83
    
84
    <p class="alert alert-info"
85
       ng-hide="loading"
86
       translate> No Project Params to show.
87
    </p>
88
  </div>
89
</div>