Revision 57130
Added by Michele Artini almost 5 years ago
relations.html | ||
---|---|---|
34 | 34 |
<td class="pl-3"><a href="#!/metadata/{{r.relatedOrgId}}" title="{{r.relatedOrgId}}">{{r.relatedOrgName}}</a></td> |
35 | 35 |
<td>{{r.type}}</td> |
36 | 36 |
<td class="text-right"> |
37 |
<button type="button" class="btn btn-sm btn-outline-danger" ng-click="rels.splice($index, 1)">delete</button>
|
|
37 |
<button type="button" class="btn btn-sm btn-outline-danger" ng-click="deleteRelation(r.relatedOrgId, r.type)">delete</button>
|
|
38 | 38 |
</td> |
39 | 39 |
</tr> |
40 | 40 |
</tbody> |
... | ... | |
49 | 49 |
<option ng-repeat="t in vocabularies.relTypes">{{t}}</option> |
50 | 50 |
</select> |
51 | 51 |
<div class="input-group-append"> |
52 |
<button type="button" class="btn btn-outline-success" ng-click="rels.push({'relatedOrgId': newRelId, 'relatedOrgName': 'New organization (ID: ' + newRelId + ')', 'type': newRelType}); newRelId=newRelType=''" ng-disabled="!newRelId || !newRelType">add</button>
|
|
52 |
<button type="button" class="btn btn-outline-success" ng-click="addRelation(newRelId, newRelType)" ng-disabled="!newRelId || !newRelType">add</button>
|
|
53 | 53 |
</div> |
54 | 54 |
</div> |
55 | 55 |
</div> |
Also available in: Unified diff