rocketmq控制面板
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

103 lines
5.0 KiB

<!--
~ Licensed to the Apache Software Foundation (ASF) under one or more
~ contributor license agreements. See the NOTICE file distributed with
~ this work for additional information regarding copyright ownership.
~ The ASF licenses this file to You under the Apache License, Version 2.0
~ (the "License"); you may not use this file except in compliance with
~ the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<div class="container-fluid" id="deployHistoryList" role="main">
<div class="modal-body">
<div class="row">
<form class="form-inline pull-left col-sm-12">
<button class="btn btn-raised btn-sm btn-primary" type="button" ng-show="{{writeOperationEnabled}}"
ng-click="openAddDialog()">{{'ADD' | translate}}
</button>
</form>
</div>
<br>
<div>
<div class="row">
<table class="table table-bordered text-middle">
<tr>
<th class="text-center" style="width:33%">{{'TOPIC' | translate}}</th>
<th class="text-center" style="width:33%">{{ 'PROJECT' | translate}}</th>
<th class="text-center" style="width:33%">{{ 'OPERATION' | translate}}</th>
</tr>
<tr ng-repeat="fTopic in configShowList"
ng-init="sysFlag = fTopic.startsWith('%SYS%'); topic = sysFlag?fTopic.substring(5):fTopic">
<td class="text-left"><font color={{sysFlag?"red":""}}>{{fTopic.name}}</font></td>
<td class="text-left"><font color={{sysFlag?"red":""}}>{{fTopic.value}}</font></td>
<td class="text-left">
<button class="btn btn-raised btn-sm btn-primary" type="button"
ng-show="{{!sysFlag && writeOperationEnabled}}"
ng-click="openUpdateDialog(fTopic)">{{'EDIT' |
translate}}
</button>
<button class="btn btn-raised btn-sm btn-danger" type="button"
ng-show="{{!sysFlag && writeOperationEnabled}}"
ng-confirm-click="Are you sure to delete?"
confirmed-click="deleteConfig(fTopic.name)">{{'DELETE' | translate}}
</button>
</td>
</tr>
</table>
</div>
<tm-pagination conf="paginationConf"></tm-pagination>
</div>
</div>
</div>
<script type="text/ng-template" id="configModifyDialog">
<div class="modal-header">
<h4 class="modal-title">{{'TOPIC_CHANGE'| translate }}</h4>
</div>
<div class="modal-body " ng-repeat="item in ngDialogData.topicRequestList">
<form id="addAppForm" name="addAppForm" class="form-horizontal" novalidate>
<div class="form-group">
<label class="control-label col-sm-2">{{'PROJECT'|translate}}:</label>
<div class="col-sm-10">
<select name="mySelectClusterNameList" multiple chosen
ng-model="item.value"
ng-options="clusterNameItem for clusterNameItem in ngDialogData.allClusterNameList"
>
<option value=""></option>
</select>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2">{{'TOPIC_NAME'|translate}}:</label>
<div class="col-sm-10">
<input class="form-control" ng-model="item.name" name="topicName" type="text" ng-disabled="ngDialogData.bIsUpdate"
required/>
<span class="text-danger" ng-show="addAppForm.name.$error.required">{{'TOPIC_NAME'|translate}}不能为空.</span>
</div>
</div>
</form>
<div class="modal-footer">
<div class="ngdialog-buttons">
<button type="button" class="ngdialog-button ngdialog-button-primary"
ng-show="{{!ngDialogData.sysFlag && ngDialogData.writeOperationEnabled}}"
ng-click="postTopicRequest(item)">{{ 'COMMIT' | translate }}
</button>
<button type="button" class="ngdialog-button ngdialog-button-secondary"
ng-click="closeThisDialog('Cancel')">{{ 'CLOSE' | translate }}
</button>
</div>
</div>
</div>
</script>