{% extends "base.html" %}
{% block content %}
<div class="starter-template">
	<legend translate>Import and Export Settings</legend>
	<form action="/profile/import" method="post" class="edit-page" enctype="multipart/form-data">
		<div class="row">
			<div class="col-md-12">
				<label for="file" translate>Import Profile</label>
				<input name="JsonFile" id="file" type="file" accept=".json" required>
				<br>
				<button type="submit" class="btn btn-success" translate>Import Profile</button>
			</div>
		</div>
	</form>
	<hr>
	<form action="/profile/fetch" method="post" class="edit-page">
		<div class="row">
			<div class="col-md-12">
				<label for="file" translate>Download Profile</label>
				<input name="url" type="text" placeholder="Copy & Paste Profile URL" required>
				<br>
				<button type="submit" class="btn btn-success" translate>Download & Import Profile</button>
			</div>
		</div>
	</form>
	<hr>
	<form action="/setup/import" method="post" class="edit-page" enctype="multipart/form-data">
		<div class="row">
			<div class="col-md-12">
				<label for="file" translate>Restore Machine Settings</label>
				<input name="JsonFile" id="file" type="file" accept=".json" required>
				<br>
				<button type="submit" class="btn btn-success">Restore Machine Settings</button>
			</div>
		</div>
	</form>
	<hr>
	<form action="/setup/fetch" method="post" class="edit-page">
		<div class="row">
			<div class="col-md-12">
				<label for="file" translate>Download Machine Settings</label>
				<input name="url" type="text" placeholder="Copy & Paste Machine Settings URL" required>
				<br>
				<button type="submit" class="btn btn-success" translate>Download & Restore Machine Settings</button>
			</div>
		</div>
	</form>
	<br>
	<a href="https://www.nanodlp.com/repo/" translate>Machine Settings and Profiles Repository</a>
	<br>
</div>
{% endblock %}