CreateBusinessMetadataLayoutView_tmpl.html 2.44 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<!--
 * 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="fontLoader">
    <i class="fa fa-refresh fa-spin-custom"></i>
</div>
20
<form class="hide form-horizontal" data-id="createForm" style="width: 70%;margin: 0 auto;">
21 22 23 24 25
    {{#if fromTable}}
    <div class="form-group">
        <label class="control-label col-sm-2 {{#if create}}required{{/if}}" for="name">Name</label>
        {{#if create}}
        <div class="col-sm-10">
26
            <input class="form-control businessMetadata-name require" data-id="name" placeholder="Name(required)" autofocus />
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
        </div>
        {{else}}
        <span class="ellipsis-with-margin control-label text-left col-sm-10" data-id="title"></span> {{/if}}
    </div>
    <div class="form-group">
        <label class="control-label col-sm-2" for="description">Description</label>
        <div class="col-sm-10">
            <input class="form-control" data-id="description" value="{{description}}" placeholder="Description" />
        </div>
    </div>
    {{/if}}
    <div class="form-group">
        <!-- <h4 class="col-sm-6">Attributes</h4> -->
        {{#if isEditAttr}}
        <div class="col-sm-12 no-padding-left">
42
            <button title="Add Business Metadata attribute" type="button" class="btn btn-action btn-sm pull-left" data-id="attributeData"><i class="fa fa-plus"></i> Add Business Metadata attribute</button>
43 44 45 46 47 48 49 50
        </div>
        {{/if}}
    </div>
    <div data-id="addAttributeDiv">
    </div>
    </div>
</form>
<div class="modal-footer " data-id="modalFooter">
51 52
    <button type="button" class="btn btn-action cancel" data-id="businessMetadataAttrPageCancle">Cancel</button>
    <button type="button" class="btn btn-atlas ok" data-id="businessMetadataAttrPageOk">Ok</button>
53
</div>