Commit 7d249516 authored by Alexander Philipp Nowosad's avatar Alexander Philipp Nowosad
Browse files

Fix showTypesModal

parent 26f6c208
......@@ -36,18 +36,25 @@
</button>
</div>
<div class="modal-body">
<div class="alert alert-info">
Types that are defined for this task. Angle brackets ("<<", ">>") indicate lists.
</div>
<h5>Needed</h5>
<ul class="list-group" *ngIf="modalElement.businessObject.get('neededType').length > 0">
<li class="list-group-item"
*ngFor="let type of modalElement.businessObject.get('neededType')">{{type.name}}</li>
<li class="list-group-item" *ngFor="let element of modalElement.businessObject.get('neededType')">
<span *ngIf="element.element">{{element.element.name}} (<<{{element.list}}>>)</span>
<span *ngIf="!element.element"><<{{element.list}}>></span>
</li>
</ul>
<div class="alert alert-info" *ngIf="modalElement.businessObject.get('neededType').length === 0">
No needed types defined for this task.
</div>
<h5 class="mt-3">Forbidden</h5>
<ul class="list-group" *ngIf="modalElement.businessObject.get('forbiddenType').length > 0">
<li class="list-group-item"
*ngFor="let type of modalElement.businessObject.get('forbiddenType')">{{type.name}}</li>
<li class="list-group-item" *ngFor="let element of modalElement.businessObject.get('forbiddenType')">
<span *ngIf="element.element"><<{{element.list}}>> {{element.element.name}}</span>
<span *ngIf="!element.element"><<{{element.list}}>></span>
</li>
</ul>
<div class="alert alert-info" *ngIf="modalElement.businessObject.get('forbiddenType').length === 0">
No forbidden types defined for this task.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment