blob: cfd8d6df01d0085dabafc8cf90bba491abad177f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
<form>
<div class="modal-head">
{{#if key}}
<h2>{{t 'coding_rules.change_details'}}</h2>
{{else}}
<h2>{{t 'coding_rules.activate_in_quality_profile'}}</h2>
{{/if}}
</div>
<div class="modal-body">
<div class="modal-error"></div>
<table>
<tr class="property">
<th><h3>{{t 'coding_rules.quality_profile'}}</h3></th>
<td>
{{#if key}}
{{name}}
{{else}}
<select id="coding-rules-quality-profile-activation-select">
{{#each qualityProfiles}}
<option value="{{key}}">{{name}}</option>
{{/each}}
</select>
{{/if}}
</td>
</tr>
<tr class="property">
<th><h3>{{t 'severity'}}</h3></th>
<td>
<select id="coding-rules-quality-profile-activation-severity">
{{#each severities}}
<option value="{{this}}">{{t 'severity' this}}</option>
{{/each}}
</select>
</td>
</tr>
{{#each parameters}}
<tr class="property">
<th><h3>{{key}}</h3></th>
<td>
<input type="text" value="{{value}}" placeholder="{{default}}">
<div class="note">{{description}}</div>
{{#if extra}}
<div class="note">{{extra}}</div>
{{/if}}
</td>
</tr>
{{/each}}
</table>
</div>
<div class="modal-foot">
<button id="coding-rules-quality-profile-activation-activate">
{{#if key}}{{t 'save'}}{{else}}{{t 'coding_rules.activate'}}{{/if}}
</button>
<a id="coding-rules-quality-profile-activation-cancel" class="action">{{t 'cancel'}}</a>
</div>
</form>
|