aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/hbs/coding-rules/coding-rules-bulk-change-modal.hbs
blob: 0ad2c90b68453ffccc53c8c19c032ca6226d7d70 (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
<form>
  <div class="modal-head">
    {{#eq action 'activate'}}
      <h2>{{t 'coding_rules.activate_in_quality_profile'}} ({{state.total}} {{t 'coding_rules._rules'}})</h2>
    {{/eq}}
    {{#eq action 'deactivate'}}
      <h2>{{t 'coding_rules.deactivate_in_quality_profile'}} ({{state.total}} {{t 'coding_rules._rules'}})</h2>
    {{/eq}}
  </div>

  <div class="modal-body modal-body-select2">
    <div class="js-modal-messages"></div>

    <div class="modal-field">
      <h3>
        <label for="coding-rules-bulk-change-profile">
          {{#eq action 'activate'}}{{t 'coding_rules.activate_in'}}{{/eq}}
          {{#eq action 'deactivate'}}{{t 'coding_rules.deactivate_in'}}{{/eq}}
        </label>
      </h3>
      {{#if qualityProfile}}
        <h3 class="readonly-field">
          {{qualityProfileName}}{{#notEq action 'change-severity'}}{{t 'are_you_sure'}}{{/notEq}}
        </h3>
      {{else}}
        <select id="coding-rules-bulk-change-profile">
          {{#each availableQualityProfiles}}
            <option value="{{key}}">{{name}} - {{language}}</option>
          {{/each}}
        </select>
      {{/if}}
    </div>
  </div>

  <div class="modal-foot">
    <button id="coding-rules-submit-bulk-change">{{t 'apply'}}</button>
    <a class="js-modal-close">{{t 'close'}}</a>
  </div>
</form>