aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/groups/templates/groups-form.hbs
blob: a0927b33a7322ee9ed8a724dc05464a60d852d70 (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
<form id="create-group-form" autocomplete="off">
  <div class="modal-head">
    <h2>{{#if id}}Update{{else}}Create{{/if}} Group</h2>
  </div>
  <div class="modal-body">
    <div class="js-modal-messages"></div>
    <div class="modal-field">
      <label for="create-group-name">Name<em class="mandatory">*</em></label>
      {{! keep this fake field to hack browser autofill }}
      <input id="create-group-name-fake" name="name-fake" type="text" class="hidden">
      <input id="create-group-name" name="name" type="text" size="50" maxlength="255" required value="{{name}}">
    </div>
    <div class="modal-field">
      <label for="create-group-description">Description</label>
      {{! keep this fake field to hack browser autofill }}
      <textarea id="create-group-description-fake" name="description-fake" class="hidden"></textarea>
      <textarea id="create-group-description" name="description">{{description}}</textarea>
    </div>
  </div>
  <div class="modal-foot">
    <button id="create-group-submit">{{#if id}}Update{{else}}Create{{/if}}</button>
    <a href="#" class="js-modal-close" id="create-group-cancel">Cancel</a>
  </div>
</form>