|
6 | 6 | /> :
|
7 | 7 | </span>
|
8 | 8 |
|
| 9 | + <span class="editbar" ng-if="child['$@'+$parent.keyName]"> |
| 10 | + <i class="iconButton fa fa-question-circle" tooltip-placement="top" uib-tooltip="{{child['$@'+$parent.keyName]['description']}}" ng-if="child['$@'+$parent.keyName]['description']"></i> |
| 11 | + <i class="iconButton fa fa-asterisk red" tooltip-placement="top" uib-tooltip="Mandatory" ng-if="isMandatory($parent.keyName, child)"></i> |
| 12 | + </span> |
| 13 | + |
9 | 14 | <select ng-model="$parent.valueType" ng-options="option for option in valueTypes" class="form-control input-sm" ng-show="showSelectbox && $parent.type !== 'List' && $parent.type !== 'Array' && $parent.keyName" ng-init="initParentValueType($parent)"></select>
|
10 | 15 |
|
11 | 16 | <span ng-show="$parent.type === 'Array' || ($parent.keyName && $parent.valueType !== 'Object' && $parent.valueType !== 'List' && $parent.valueType !== 'Array' && $parent.valueType !== 'string:Object' && $parent.valueType !== 'string:List' && $parent.valueType !== 'string:Array' && $parent.type !== 'List')">
|
12 | 17 | <input type="{{ $parent.valueType == 'string:Number' || $parent.valueType == 'Number' ? 'number' : $parent.valueType == 'string:Boolean' || $parent.valueType == 'Boolean' ? 'checkbox' : 'text' }}" ng-model="newValueName" ng-blur="changeParentValueName(newValueName, child, $parent)" placeholder="Set a value" ng-show="!($parent.valueType == 'string:Enumeration' || $parent.valueType == 'Enumeration')">
|
13 | 18 | <select ng-model="selectboxValue" ng-options="option for option in getEnumValues($parent.keyName, child, $parent) track by option" ng-if="$parent.valueType == 'string:Enumeration' || $parent.valueType == 'Enumeration'" ng-blur="$parent.valueName = selectboxValue;"></select>
|
14 | 19 | </span>
|
15 | 20 |
|
16 |
| - <strong ng-if="$parent.$parent.$parent.newkey">{{$parent.$parent.$parent.newkey}}</strong> |
| 21 | + <strong ng-if="$parent.type === 'List' && $parent.$parent.$parent.newkey">{{$parent.$parent.$parent.newkey}}</strong> |
17 | 22 | <button class="btn btn-primary btn-sm" ng-click="addItem($parent.keyName, child, $parent)">
|
18 | 23 | Add
|
19 | 24 | </button>
|
20 | 25 | <button class="btn btn-default btn-sm" ng-click="$parent.showAddKey=false">
|
21 | 26 | Cancel
|
22 | 27 | </button>
|
| 28 | + |
| 29 | + <table ng-if="child['$@'+$parent.keyName]" class="add-item-info-list"> |
| 30 | + <tr ng-repeat="type in ['eltype', 'type', 'default', 'cases', 'units', 'children', 'description']" ng-if="child['$@'+$parent.keyName][type]"> |
| 31 | + <td><strong>{{ type }}</strong></td> |
| 32 | + <td>{{ child['$@'+$parent.keyName][type] }}</td> |
| 33 | + </tr> |
| 34 | + </table> |
23 | 35 | </span>
|
| 36 | + |
24 | 37 | <span ng-if="!showAddKey">
|
25 | 38 | <button class="addObjectItemBtn" ng-click="$parent.showAddKey = true">
|
26 | 39 | <i class="fa fa-plus" ng-if="$parent.type !== 'List'" tooltip-placement="top" uib-tooltip="Add new item"></i>
|
|
0 commit comments