{% INCLUDE 'overall_header.html' %}

	<a id="maincontent"></a>

	<h1>{{ lang('EXTENSIONS_ADMIN') }}</h1>

	<p>{{ lang('EXTENSIONS_EXPLAIN') }}</p>
	<p>{{ lang('EXTENSION_ENABLE_EXPLAIN') }}</p>

	{% if MIGRATOR_ERROR %}
		<div class="errorbox">
			<p><strong>{{ lang('MIGRATION_EXCEPTION_ERROR') }}</strong></p>
			<p>{{ MIGRATOR_ERROR }}</p>
			{% if MIGRATOR_ERROR_STACK_TRACE %}<p>{{ MIGRATOR_ERROR_STACK_TRACE|nl2br }}</p>{% endif %}
			<p><a href="{{ U_RETURN }}">{{ lang('RETURN_TO_EXTENSION_LIST') }}</a></p>
		</div>
	{% elseif S_PRE_STEP %}
		<fieldset>
			<h2>{{ lang('CONFIRM') }}</h2>
			<p>{{ CONFIRM_MESSAGE }}</p>
		</fieldset>

		<form id="acp_extensions" method="post" action="{{ U_ENABLE }}">
			<fieldset class="submit-buttons">
				<input class="button1" type="submit" name="enable" value="{{ lang('EXTENSION_ENABLE') }}">
				<input class="button2" type="submit" name="cancel" value="{{ lang('CANCEL') }}">
			</fieldset>
		</form>
	{% elseif S_NEXT_STEP %}
		<div class="successbox notice">
			<p>{{ lang('EXTENSION_ENABLE_IN_PROGRESS') }}</p>
		</div>
	{% else %}
		<div class="successbox">
			<p>{{ lang('EXTENSION_ENABLE_SUCCESS') }}</p>
			<br>
			<p><a href="{{ U_RETURN }}">{{ lang('RETURN_TO_EXTENSION_LIST') }}</a></p>
		</div>
	{% endif %}

{% INCLUDE 'overall_footer.html' %}
