{namespace em=TYPO3\CMS\Extensionmanager\ViewHelpers}

<f:layout name="main"/>
<f:section name="docHeaderRow1">
</f:section>
<f:section name="docHeaderRow2">
</f:section>
<f:section name="Content">
	<f:if condition="{search}">
		<f:then>
			<div class="headerRow">
				<div class="typo3-extensionmanager-headerRowLeft">
					<f:translate key="searchTemplate.yourSearch"/>: <f:link.action action="ter" controller="List"><span class="pill">x {search}</span></f:link.action>
				</div>
			</div>
			<table id="terSearchTable" class="typo3-extension-list">
				<f:render partial="List/TerTable" arguments="{paginatedExtensions:extensions, availableAndInstalled:availableAndInstalled}" />
			</table>
		</f:then>
		<f:else>
			<div class="headerRow">
				<div class="typo3-extensionmanager-headerRowLeft">
					<f:form action="ter">
						<f:form.textfield name="search" value="{search}" />
						<f:form.submit value="{f:translate(key:'searchTemplate.submitButton')}"/>
					</f:form>
				</div>
				<div class="typo3-extensionmanager-headerRowRight">
					<em:updateFromTer />
				</div>
			</div>
			<div id="terTableWrapper">
				<f:render partial="List/TerPaginator" arguments="{extensions:extensions, showVersionList:showVersionList,  availableAndInstalled:availableAndInstalled}" />
				<div class="splash-receivedata x-mask-loading"><div class="spinner"><f:translate key="extensionList.updateFromTer.label"/></div></div>
			</div>

		</f:else>
	</f:if>

</f:section>


