rulenode-fieldset.tpl.html
Home
/
ui /
src /
app /
rulechain /
rulenode-fieldset.tpl.html
<md-button ng-click="onDeleteRuleNode({event: $event})"
ng-show="!isEdit && !isReadOnly"
class="md-raised md-primary">{{ 'rulenode.delete' | translate }}</md-button>
<md-content class="md-padding tb-rulenode" layout="column">
<fieldset ng-disabled="$root.loading || !isEdit || isReadOnly">
<section ng-if="ruleNode.component.type != types.ruleNodeType.RULE_CHAIN.value">
<section layout="column" layout-gt-sm="row">
<md-input-container flex class="md-block">
<label translate>rulenode.name</label>
<input required name="name" ng-model="ruleNode.name">
<div ng-messages="theForm.name.$error">
<div translate ng-message="required">rulenode.name-required</div>
</div>
</md-input-container>
<md-input-container class="md-block">
<md-checkbox ng-disabled="$root.loading || !isEdit" aria-label="{{ 'rulenode.debug-mode' | translate }}"
ng-model="ruleNode.debugMode">{{ 'rulenode.debug-mode' | translate }}
</md-checkbox>
</md-input-container>
</section>
<tb-rule-node-config ng-model="ruleNode.configuration"
rule-node-id="ruleNode.ruleNodeId.id"
ng-required="true"
node-definition="ruleNode.component.configurationDescriptor.nodeDefinition"
ng-readonly="$root.loading || !isEdit || isReadOnly">
</tb-rule-node-config>
<md-input-container class="md-block">
<label translate>rulenode.description</label>
<textarea ng-model="ruleNode.additionalInfo.description" rows="2"></textarea>
</md-input-container>
</section>
<section ng-if="ruleNode.component.type == types.ruleNodeType.RULE_CHAIN.value">
<tb-entity-autocomplete the-form="theForm"
ng-disabled="$root.loading || !isEdit || isReadOnly"
tb-required="true"
exclude-entity-ids="[ruleChainId]"
entity-type="types.entityType.rulechain"
ng-model="params.targetRuleChainId">
</tb-entity-autocomplete>
<md-input-container class="md-block">
<label translate>rulenode.description</label>
<textarea ng-model="ruleNode.additionalInfo.description" rows="2"></textarea>
</md-input-container>
</section>
</fieldset>
</md-content>