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

<liferay-ui:error exception="<%= CaptchaConfigurationException.class %>" message="a-captcha-error-occurred-please-contact-an-administrator" />
<liferay-ui:error exception="<%= CaptchaException.class %>" message="captcha-verification-failed" />
<liferay-ui:error exception="<%= CaptchaTextException.class %>" message="text-verification-failed" />

<liferay-ui:error key="shutdownMinutes" message="please-enter-the-number-of-minutes" />

<aui:button-row>
	<c:choose>
		<c:when test="<%= ShutdownUtil.isInProcess() %>">
			<div class="sheet">
				<div class="panel-group panel-group-flush">
					<liferay-captcha:captcha />

					<aui:button cssClass="save-server-button" data-cmd="shutdown" value="cancel-shutdown" />
				</div>
			</div>
		</c:when>
		<c:otherwise>
			<aui:fieldset-group markupView="lexicon">
				<aui:fieldset>
					<aui:input label="number-of-minutes" name="minutes" size="3" type="text">
						<aui:validator name="digits" />
						<aui:validator name="min">1</aui:validator>
						<aui:validator name="required" />
					</aui:input>

					<aui:input cssClass="lfr-textarea-container" label="custom-message" name="message" type="textarea" />
				</aui:fieldset>
			</aui:fieldset-group>

			<liferay-captcha:captcha />

			<aui:button cssClass="save-server-button" data-cmd="shutdown" value="shutdown" />
		</c:otherwise>
	</c:choose>
</aui:button-row>