<h1>{{ "PLUGIN_ADMIN.TOOLS_DIRECT_INSTALL_TITLE"|t }}</h1>

<div class="direct-install-content">

	<h2>{{ "PLUGIN_ADMIN.TOOLS_DIRECT_INSTALL_UPLOAD_TITLE"|t }}</h2>
	<p>{{ "PLUGIN_ADMIN.TOOLS_DIRECT_INSTALL_UPLOAD_DESC"|t|raw }}</p>

	<form action="{{ admin_route('/tools/direct-install') }}" method="post" enctype="multipart/form-data">
	    <input type="file" name="uploaded_file" id="uploaded_file" required accept="application/zip, application/octet-stream">
	    <input type="submit" value="{{ "PLUGIN_ADMIN.TOOLS_DIRECT_INSTALL_UPLOAD_BUTTON"|t }}" name="submit" class="button">
	    <input type="hidden" name="task" value="directInstall" />

		{{ nonce_field('admin-form', 'admin-nonce')|raw }}
	</form>


	<h2>{{ "PLUGIN_ADMIN.TOOLS_DIRECT_INSTALL_URL_TITLE"|t }}</h2>
	<p>{{ "PLUGIN_ADMIN.TOOLS_DIRECT_INSTALL_URL_DESC"|t|raw }}</p>

	<form action="{{ admin_route('/tools/direct-install') }}" method="post">
		<input type="text" name="file_path" class="large" required />
	    <input type="submit" value="{{ "PLUGIN_ADMIN.INSTALL"|t }}" name="submit" class="button">
        <input type="hidden" name="task" value="directInstall" />

	    {{ nonce_field('admin-form', 'admin-nonce')|raw }}
	</form>

</div>

