<!--
 * 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="panel panel-default custom-panel expand_collapse_panel-icon">
    <div class="panel-heading main-parent collapsed" data-toggle="collapse" href="#businessMetadataCollapse" aria-expanded="false" style="width: 70%;">
        <h4 class="panel-title">
            <a>Business Metadata</a>
        </h4>
        <div class="btn-group pull-left">
            <button type="button" title="Collapse"><i class="ec-icon fa"></i></button>
        </div>
    </div>
    {{#ifCond readOnlyEntity "===" false}}
    <div class="panel-actions">
        <button class="btn btn-action btn-sm" data-id="addBusinessMetadata">Add</button>
        <button class="btn btn-action btn-sm" style="display: none;" data-id="saveBusinessMetadata">Save</button>
        <button class="btn btn-action btn-sm" style="display: none;" data-id="cancel">Cancel</button>
    </div>
    {{/ifCond}}
    <div id="businessMetadataCollapse" class="panel-collapse collapse">
        <div class="panel-body">
            <div data-id="businessMetadataTree"></div>
            <div class="editBox" style="display: none;">
                <div class="form-group">
                    <a href="javascript:void(0)" class="btn btn-action btn-sm" data-id="addItem" data-type="addAttrButton">Add New Attribute</a>
                </div>
                <ul class="business-metadata-tree-parent" data-id="itemView"></ul>
            </div>
        </div>
    </div>
</div>