blob: 89d4747676cf18dd02fc9c400fa90090dba3ea5b (
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
|
<form>
<div class="modal-head">
{{#if change}}
<h2>{{t 'coding_rules.update_manual_rule'}}</h2>
{{else}}
<h2>{{t 'coding_rules.create_manual_rule'}}</h2>
{{/if}}
</div>
<div class="modal-body">
<div class="modal-error"></div>
<div class="modal-warning">{{t 'coding_rules.reactivate.help'}}</div>
<table>
<tr class="property">
<th><h3>{{t 'name'}} <em class="mandatory">*</em></h3></th>
<td>
<input type="text" name="name" id="coding-rules-manual-rule-creation-name"
class="coding-rules-name-key" value="{{name}}"/>
</td>
</tr>
<tr class="property">
<th><h3>{{t 'key'}}{{#unless change}} <em class="mandatory">*</em>{{/unless}}</h3></th>
<td>
{{#if change}}
{{key}}
{{else}}
<input type="text" name="key" id="coding-rules-manual-rule-creation-key"
class="coding-rules-name-key" value="{{internalKey}}"/>
{{/if}}
</td>
</tr>
<tr class="property">
<th><h3>{{t 'description'}} <em class="mandatory">*</em></h3></th>
<td>
<textarea type="textarea" name="markdown_description" id="coding-rules-manual-rule-creation-html-description"
class="coding-rules-markdown-description" rows="4">{{{mdDesc}}}</textarea>
</td>
</tr>
</table>
</div>
<div class="modal-foot">
<button id="coding-rules-manual-rule-creation-create">
{{#if change}}{{t 'save'}}{{else}}{{t 'create'}}{{/if}}
</button>
<a id="coding-rules-manual-rule-creation-cancel" class="action">{{t 'cancel'}}</a>
</div>
</form>
|