<!--
* 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.
-->

<script type="text/ng-template" id="hybridDetail.html">
  <div class="modal-header">
    <h4>Hybrid Detail</h4>
  </div>

  <div class="modal-body">
    <div class="form-group row">
      <label class="col-xs-4 control-label no-padding-right font-color-default">Hybrid Name</label>
      <div class="col-xs-8">
        <input type="text" class="form-control" placeholder="Hybrid Name" ng-disabled="true" ng-model="hybrid.name">
      </div>
    </div>

    <div class="split-line"></div>

    <div class="row edit-operator">
      <div class="col-xs-12">
        <div class="dataTables_wrapper no-footer">
          <div class="row table-header">
            <label class="col-xs-4 control-label no-padding-right font-color-default" for="modelName">Model</label>
            <div class="col-xs-8">
              <div>
                <select width="'100%'" chosen ng-options="model.name as model.name for model in hybridModels" ng-model="hybrid.model" ng-disabled="true"></select>
              </div>
            </div>
          </div>
          <div class="row fix-height-table">
            <table class="table table-striped table-bordered table-hover dataTable no-footer ng-scope" ng-if="hybrid.realizations.length">
              <thead>
                <tr>
                  <th>Name</th>
                </tr>
              </thead>
              <tbody>
                <tr ng-repeat="realization in hybrid.realizations">
                  <td>{{ realization.realization }}</td>
                </tr>
              </tbody>
            </table>
          </div>

          <div class="data-empty" ng-if="!hybrid.realizations.length">
            Empty
          </div>
        </div>
      </div>
    </div>
  </div>

  <div class="modal-footer">
    <button class="btn btn-warning" ng-click="cancel()">Close</button>
  </div>
</script>