{{!
* 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="alert alert-warning">
  {{t popup.dependent.configs.title}}
</div>
<div id="config-dependencies" class="limited-height-2">
  <table class="table table-striped">
    <thead>
    <tr>
      <th class="check-box-col">{{view view.toggleAll}}</th>
      <th>{{t common.property}}</th>
      <th>{{t common.service}}</th>
      <th>{{t common.configGroup}}</th>
      <th>{{t common.fileName}}</th>
      <th>{{t popup.dependent.configs.table.currentValue}}</th>
      <th>{{t popup.dependent.configs.table.recommendedValue}}</th>
    </tr>
    </thead>
    <tbody>
    {{#each config in view.parentView.configs}}
      <tr>
        <td class="check-box-col">{{view Em.Checkbox checkedBinding="config.saveRecommended"}}</td>
        <td class="config-dependency-name">{{config.propertyName}}</td>
        <td class="config-dependency-service">{{config.serviceDisplayName}}</td>
        <td class="config-dependency-group">
          <span {{bindAttr class="config.allowChangeGroup::not-active-link"}} ><a href="javascript:void(null);" class="black"
            {{action showSelectGroupPopup config.serviceName target="App.router.mainServiceInfoConfigsController"}}>
            {{config.configGroup}}
          </a></span>
        </td>
        <td class="config-dependency-filename">{{config.fileName}}</td>
        <td class="config-dependency-value">{{config.value}}</td>
        <td class="config-dependency-recommended-value">
          {{#if config.isDeleted}}
            <i>{{t common.removed}}</i>
          {{else}}
            {{config.recommendedValue}}
          {{/if}}
        </td>
      </tr>
    {{/each}}
    </tbody>
  </table>
</div>
