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

<f:layout name="main"/>

<f:section name="docheader-buttons">
	<div id="upload-button-wrap">
		<f:be.buttons.icon uri="{f:uri.action(action:'form',controller:'UploadExtensionFile')}" icon="actions-edit-upload" title="{f:translate(key:'extensionList.uploadExtension')}"/>
	</div>
</f:section>

<f:section name="module-headline">
	<h1><f:translate key="getExtensions">Get Extensions</f:translate></h1>
</f:section>

<f:section name="Content">

	<f:render partial="List/UploadForm" />

	<div class="headerRow ui-helper-clearfix">
		<div class="typo3-extensionmanager-headerRowLeft">
			<f:form class="typo3-extensionmanager-searchTerForm" 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">
			<f:render partial="List/UpdateFromTer" />
		</div>
	</div>
	<div id="terTableWrapper">
		<f:if condition="{search}">
			<f:then>
				<table id="terSearchTable" class="t3-table typo3-extension-list">
					<f:render partial="List/TerTable" arguments="{paginatedExtensions:extensions, availableAndInstalled:availableAndInstalled}" />
				</table>
			</f:then>
			<f:else>
				<f:render partial="List/TerPaginator" arguments="{extensions:extensions, showVersionList:showVersionList,  availableAndInstalled:availableAndInstalled}" />
			</f:else>
		</f:if>
		<div class="splash-receivedata x-mask-loading"><div class="spinner"><f:translate key="extensionList.updateFromTer.label"/></div></div>
	</div>

</f:section>
