mirror of https://github.com/portainer/portainer
feat(docker/node): change table to div and fix styling (#4173)
parent
c5731e237e
commit
8408484f8b
|
@ -2,32 +2,18 @@
|
||||||
There are no labels for this node.
|
There are no labels for this node.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table class="table" ng-if="$ctrl.labels.length">
|
<div class="col-sm-12 form-inline" style="padding: 0px;" ng-if="$ctrl.labels.length">
|
||||||
<thead>
|
<div ng-repeat="label in $ctrl.labels" style="margin-top: 2px;">
|
||||||
<tr>
|
<div class="input-group col-sm-5 input-group-sm">
|
||||||
<th>Label</th>
|
<span class="input-group-addon">name</span>
|
||||||
<th>Value</th>
|
<input type="text" class="form-control" ng-model="label.key" placeholder="e.g. com.example.foo" ng-change="$ctrl.updateLabel(label)" />
|
||||||
</tr>
|
</div>
|
||||||
</thead>
|
<div class="input-group col-sm-5 input-group-sm">
|
||||||
<tbody>
|
<span class="input-group-addon">value</span>
|
||||||
<tr ng-repeat="label in $ctrl.labels">
|
<input type="text" class="form-control" ng-model="label.value" placeholder="e.g. bar" ng-change="$ctrl.updateLabel(label)" />
|
||||||
<td>
|
</div>
|
||||||
<div class="input-group input-group-sm">
|
<button class="btn btn-sm btn-danger" type="button" ng-click="$ctrl.removeLabel($index)">
|
||||||
<span class="input-group-addon fit-text-size">Name</span>
|
<i class="fa fa-trash" aria-hidden="true"></i>
|
||||||
<input type="text" class="form-control" ng-model="label.key" placeholder="e.g. com.example.foo" ng-change="$ctrl.updateLabel(label)" />
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</div>
|
||||||
<td>
|
|
||||||
<div class="input-group input-group-sm">
|
|
||||||
<span class="input-group-addon fit-text-size">Value</span>
|
|
||||||
<input type="text" class="form-control" ng-model="label.value" placeholder="e.g. bar" ng-change="$ctrl.updateLabel(label)" />
|
|
||||||
<span class="input-group-btn">
|
|
||||||
<button class="btn btn-sm btn-danger" type="button" ng-click="$ctrl.removeLabel($index)">
|
|
||||||
<i class="fa fa-trash" aria-hidden="true"></i>
|
|
||||||
</button>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td colspan="2">
|
||||||
<div class="btn-toolbar" role="toolbar">
|
<div class="btn-toolbar" role="toolbar">
|
||||||
<div class="btn-group" role="group">
|
<div class="btn-group" role="group">
|
||||||
<button type="button" class="btn btn-primary btn-sm" ng-disabled="!$ctrl.state.hasChanges" ng-click="$ctrl.saveChanges()">
|
<button type="button" class="btn btn-primary btn-sm" ng-disabled="!$ctrl.state.hasChanges" ng-click="$ctrl.saveChanges()">
|
||||||
|
|
Loading…
Reference in New Issue