aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/coding-rules/templates/rule/coding-rules-manual-rule-creation.hbs
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-05-18 16:29:19 +0200
committerStas Vilchik <vilchiks@gmail.com>2015-05-19 18:20:09 +0200
commite59e4aa2c06a57566f148f4217d286461231ae58 (patch)
treead0918eb06b2474a6c71997b7ff573bbb93e0170 /server/sonar-web/src/main/js/apps/coding-rules/templates/rule/coding-rules-manual-rule-creation.hbs
parent8d82c9cf9ba88c1517604b4063ad0fc2a9a1bb9a (diff)
downloadsonarqube-e59e4aa2c06a57566f148f4217d286461231ae58.tar.gz
sonarqube-e59e4aa2c06a57566f148f4217d286461231ae58.zip
change web structure: separate components
Diffstat (limited to 'server/sonar-web/src/main/js/apps/coding-rules/templates/rule/coding-rules-manual-rule-creation.hbs')
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/templates/rule/coding-rules-manual-rule-creation.hbs51
1 files changed, 51 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/templates/rule/coding-rules-manual-rule-creation.hbs b/server/sonar-web/src/main/js/apps/coding-rules/templates/rule/coding-rules-manual-rule-creation.hbs
new file mode 100644
index 00000000000..49856ca84f5
--- /dev/null
+++ b/server/sonar-web/src/main/js/apps/coding-rules/templates/rule/coding-rules-manual-rule-creation.hbs
@@ -0,0 +1,51 @@
+<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="alert alert-warning hidden">{{t 'coding_rules.reactivate.help'}}</div>
+ <div class="js-modal-messages"></div>
+
+ <table>
+ <tr class="property">
+ <th class="nowrap"><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 class="nowrap"><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 class="nowrap"><h3>{{t 'description'}} <em class="mandatory">*</em></h3></th>
+ <td>
+ <textarea name="markdown_description" id="coding-rules-manual-rule-creation-html-description"
+ class="coding-rules-markdown-description" rows="15">{{{mdDesc}}}</textarea>
+ <span class="text-right">{{> '_markdown-tips' }}</span>
+ </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>
+ <button id="coding-rules-manual-rule-creation-reactivate">{{t 'coding_rules.reactivate'}}</button>
+ <a id="coding-rules-manual-rule-creation-cancel" class="js-modal-close">{{t 'cancel'}}</a>
+ </div>
+</form>