<%--
/**
 * 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.
 *
 *
 *
 */
--%>

<%@ include file="/init.jsp" %>

<%
CartTotalCommerceDiscountRuleDisplayContext cartTotalCommerceDiscountRuleDisplayContext = (CartTotalCommerceDiscountRuleDisplayContext)request.getAttribute("view.jsp-cartTotalCommerceDiscountRuleDisplayContext");
%>

<div class="col-12">
	<liferay-ui:error exception="<%= CommerceDiscountRuleTypeSettingsException.class %>" message="cart-total-minimum-amount-cannot-be-empty-and-must-be-a-decimal-number" />

	<commerce-ui:panel
		bodyClasses="flex-fill"
		title='<%= LanguageUtil.get(request, "configuration") %>'
	>
		<aui:input label="cart-total-minimum-amount" name="typeSettings" required="<%= true %>" suffix="<%= HtmlUtil.escape(cartTotalCommerceDiscountRuleDisplayContext.getDefaultCommerceCurrencyCode()) %>" type="text" value="<%= cartTotalCommerceDiscountRuleDisplayContext.getTypeSettings() %>">
			<aui:validator name="number" />
		</aui:input>
	</commerce-ui:panel>
</div>