{namespace i=TYPO3\CMS\Install\ViewHelpers}

<f:layout name="Step" />

<f:section name="Content">
	<f:render partial="Action/Step/StepCounter.html" arguments="{steps: steps, currentStep: currentStep}" />

	<h3>System environment check</h3>

	<p>
		TYPO3 is an enterprise content management system that is powerful, yet easy to install.
	</p>
	<p>
		After some simple steps you'll be ready to add content to your website.
		This first step checks your system environment and points out issues.
	</p>

	<f:if condition="{errorsOrWarningsFromStatus}">
		<f:then>
			<form method="post">
				<div class="form-group">
					<button class="btn btn-default" type="submit">
						Fixed. Check again!
					</button>
				</div>
			</form>

			<form method="post">
				<div class="form-group">
					<input type="hidden" value="environmentAndFolders" name="install[action]" />
					<input type="hidden" value="execute" name="install[set]" />
					<button class="btn btn-danger" type="submit">
						I know what I'm doing, continue!
						<span class="t3-install-form-button-icon-negative">&nbsp;</span>
					</button>
				</div>
			</form>
		</f:then>
		<f:else>
			<form method="post">
				<input type="hidden" value="environmentAndFolders" name="install[action]" />
				<input type="hidden" value="execute" name="install[set]" />
				<button class="btn success" type="submit">
					System looks good. Continue!
				</button>
			</form>
		</f:else>
	</f:if>

	<f:if condition="{errorsOrWarningsFromStatus}">
		<br>
		<h3>Detailed analysis</h3>

		<f:if condition="{structureErrors}">
			<f:for each="{structureErrors}" as="message">
				<f:render partial="Action/Common/StatusMessage" arguments="{message: message}" />
			</f:for>
		</f:if>

		<f:if condition="{environmentStatus.error}">
			<f:for each="{environmentStatus.error}" as="message">
				<f:render partial="Action/Common/StatusMessage" arguments="{message: message}" />
			</f:for>
		</f:if>

		<f:if condition="{environmentStatus.warning}">
			<f:for each="{environmentStatus.warning}" as="message">
				<f:render partial="Action/Common/StatusMessage" arguments="{message: message}" />
			</f:for>
		</f:if>
	</f:if>

</f:section>
