mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-11 02:21:48 -05:00
add syntax-highlight directive
This commit is contained in:
@@ -1359,6 +1359,18 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
|
||||
html += '></at-code-mirror>';
|
||||
}
|
||||
|
||||
if (field.type === 'syntax_highlight') {
|
||||
html += '<at-syntax-highlight ';
|
||||
html += `id="${form.name}_${fld}" `;
|
||||
html += `class="${field.class}" `;
|
||||
html += `label="${field.label}" `;
|
||||
html += `tooltip="${field.awPopOver}" `;
|
||||
html += `name="${fld}" `;
|
||||
html += `variables="${field.variables}" `;
|
||||
html += `ng-disabled="${field.ngDisabled}" `;
|
||||
html += '></at-syntax-highlight>';
|
||||
}
|
||||
|
||||
if (field.type === 'custom') {
|
||||
let labelOptions = {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user