2018-10-07 22:44:08 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
|
|
<rd-widget>
|
|
|
|
<rd-widget-header icon="fa-code" title-text="Node Details"></rd-widget-header>
|
|
|
|
<rd-widget-body classes="no-padding">
|
|
|
|
<table class="table">
|
|
|
|
<tbody>
|
|
|
|
<tr ng-if="$ctrl.details.name">
|
|
|
|
<td>Node name</td>
|
|
|
|
<td>{{ $ctrl.details.name }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Role</td>
|
|
|
|
<td>{{ $ctrl.details.role }} {{ $ctrl.state.managerAddress }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Availability</td>
|
|
|
|
<td>
|
2020-04-10 21:54:53 +00:00
|
|
|
<node-availability-select
|
|
|
|
on-save="$ctrl.updateNodeAvailability(availability)"
|
|
|
|
availability="$ctrl.details.availability"
|
|
|
|
original-value="$ctrl.details.availability"
|
|
|
|
>
|
2018-10-07 22:44:08 +00:00
|
|
|
</node-availability-select>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Status</td>
|
2020-04-10 21:54:53 +00:00
|
|
|
<td
|
|
|
|
><span class="label label-{{ $ctrl.details.status | nodestatusbadge }}">{{ $ctrl.details.status }}</span></td
|
|
|
|
>
|
2018-10-07 22:44:08 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<div class="nopadding">
|
2020-04-10 21:54:53 +00:00
|
|
|
<a class="btn btn-default btn-sm pull-right" ng-click="$ctrl.addLabel(node)"> <i class="fa fa-plus-circle" aria-hidden="true"></i> label </a>
|
2018-10-07 22:44:08 +00:00
|
|
|
</div>
|
|
|
|
Node Labels
|
|
|
|
</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2">
|
2020-04-10 21:54:53 +00:00
|
|
|
<node-labels-table labels="$ctrl.details.nodeLabels" on-changed-labels="$ctrl.updateNodeLabels(labels)"></node-labels-table>
|
2018-10-07 22:44:08 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<div class="btn-toolbar" role="toolbar">
|
|
|
|
<div class="btn-group" role="group">
|
2020-04-10 21:54:53 +00:00
|
|
|
<button type="button" class="btn btn-primary btn-sm" ng-disabled="!$ctrl.state.hasChanges" ng-click="$ctrl.saveChanges()">
|
2018-10-07 22:44:08 +00:00
|
|
|
Apply changes
|
|
|
|
</button>
|
2020-04-10 21:54:53 +00:00
|
|
|
<button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
2018-10-07 22:44:08 +00:00
|
|
|
<span class="caret"></span>
|
|
|
|
</button>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li><a ng-click="$ctrl.cancelChanges()">Reset changes</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</rd-widget-body>
|
|
|
|
</rd-widget>
|
|
|
|
</div>
|
2020-04-10 21:54:53 +00:00
|
|
|
</div>
|