<!-- ******************************************************************************** | |
* Copyright (c) 2015-2018 Contributors to the Eclipse Foundation | |
* | |
* See the NOTICE file(s) distributed with this work for additional | |
* information regarding copyright ownership. | |
* | |
* This program and the accompanying materials are made available under the | |
* terms of the Eclipse Public License v. 2.0 which is available at | |
* http://www.eclipse.org/legal/epl-2.0. | |
* | |
* SPDX-License-Identifier: EPL-2.0 | |
* | |
******************************************************************************** --> | |
<table class="table table-bordered" style="table-layout: fixed;"> | |
<tr> | |
<th class="col-lg-5">{{LblKey}}</th> | |
<th class="col-lg-7">{{LblValue}}</th> | |
<th style="width: 60px;"></th> | |
<th style="width: 60px;"></th> | |
</tr> | |
<tr *ngFor="let preference of preferences"> | |
<td> | |
<div id="truncatelongtexts"> | |
{{preference.key}} | |
</div> | |
</td> | |
<td> | |
<div id="truncatelongtexts"> | |
{{preference.value}} | |
</div> | |
</td> | |
<td> | |
<button type="button" class="btn btn-default" (click)="editPreference(preference)" title="{{TtlEdit}}"> | |
<span class="glyphicon glyphicon-edit"></span> | |
</button> | |
</td> | |
<td> | |
<button type="button" class="btn btn-default" (click)="removePreference(preference)" title="{{TtlDelete}}"> | |
<span class="glyphicon glyphicon-remove"></span> | |
</button> | |
</td> | |
</tr> | |
</table> | |
<div class="col-lg-12"> | |
<button type="button" class="btn btn-default pull-right" (click)="editPreference()"> | |
<span class="glyphicon glyphicon-plus"></span> {{LblAddPreference}} | |
</button> | |
</div> | |
<edit-preference [scope]="scope"></edit-preference> |