<%--
/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * The contents of this file are subject to the terms of the Liferay Enterprise
 * Subscription License ("License"). You may not use this file except in
 * compliance with the License. You can obtain a copy of the License by
 * contacting Liferay, Inc. See the License for the specific language governing
 * permissions and limitations under the License, including but not limited to
 * distribution rights of the Software.
 *
 *
 *
 */
--%>

<div class="tier-price-entries">
	<aui:fieldset collapsible="<%= false %>" cssClass="price-entry-price-settings" label="tier-price-settings">
		<div class="row">
			<div class="col-12">
				<aui:input checked="<%= commercePriceEntry.isBulkPricing() %>" disabled="<%= priceOnApplication %>" label="bulk-pricing" name="bulkPricing" type="radio" value="<%= true %>" />
			</div>

			<div class="col-12">
				<aui:input checked="<%= !commercePriceEntry.isBulkPricing() %>" disabled="<%= priceOnApplication %>" label="tiered-pricing" name="bulkPricing" type="radio" value="<%= false %>" />
			</div>
		</div>
	</aui:fieldset>

	<aui:fieldset collapsible="<%= false %>" cssClass="price-entry-price-settings" label="tier-price-entries">
		<frontend-data-set:classic-display
			contextParams='<%=
				HashMapBuilder.<String, String>put(
					"commercePriceEntryId", String.valueOf(commercePriceEntryId)
				).build()
			%>'
			creationMenu="<%= commercePriceEntryDisplayContext.getCreationMenu() %>"
			dataProviderKey="<%= CommercePricingFDSNames.TIER_PRICE_ENTRIES %>"
			formName="fm"
			id="<%= CommercePricingFDSNames.TIER_PRICE_ENTRIES %>"
			itemsPerPage="<%= 10 %>"
			selectedItemsKey="tierPriceEntryId"
			showManagementBar="<%= true %>"
			showSearch="<%= true %>"
		/>
	</aui:fieldset>
</div>