|
|
@ -1,13 +1,14 @@
|
|
|
|
<div class="p-6 max-w-7xl mx-auto">
|
|
|
|
<div class="container mx-auto px-4 py-8">
|
|
|
|
<div class="bg-white rounded-lg shadow-lg p-6">
|
|
|
|
<h2 class="text-3xl mb-8 font-bold text-gray-900 dark:text-white">Import de données</h2>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="bg-white rounded-lg shadow-lg p-6 dark:bg-gray-800">
|
|
|
|
<div class="mb-6">
|
|
|
|
<div class="mb-6">
|
|
|
|
<h2 class="text-2xl font-bold text-gray-900">Import de données</h2>
|
|
|
|
<p class="text-gray-600 dark:text-white">Importez des données depuis une API Geoapify</p>
|
|
|
|
<p class="text-gray-600">Importez des données depuis une API Geoapify</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<form [formGroup]="importForm" (ngSubmit)="onSubmit()" class="space-y-4">
|
|
|
|
<form [formGroup]="importForm" (ngSubmit)="onSubmit()" class="space-y-4">
|
|
|
|
<div class="space-y-2">
|
|
|
|
<div class="space-y-2">
|
|
|
|
<label for="apiUrl" class="block text-sm font-medium text-gray-700">URL de l'API</label>
|
|
|
|
<label for="apiUrl" class="block text-sm font-medium text-gray-700 dark:text-white">URL de l'API</label>
|
|
|
|
<input
|
|
|
|
<input
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
id="apiUrl"
|
|
|
|
id="apiUrl"
|
|
|
@ -16,11 +17,11 @@
|
|
|
|
placeholder="https://api.geoapify.com/..."
|
|
|
|
placeholder="https://api.geoapify.com/..."
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<div *ngIf="importForm.get('apiUrl')?.hasError('required') && importForm.get('apiUrl')?.touched"
|
|
|
|
<div *ngIf="importForm.get('apiUrl')?.hasError('required') && importForm.get('apiUrl')?.touched"
|
|
|
|
class="text-red-500 text-sm">
|
|
|
|
class="text-red-500 text-sm">
|
|
|
|
L'URL est requise
|
|
|
|
L'URL est requise
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div *ngIf="importForm.get('apiUrl')?.hasError('pattern') && importForm.get('apiUrl')?.touched"
|
|
|
|
<div *ngIf="importForm.get('apiUrl')?.hasError('pattern') && importForm.get('apiUrl')?.touched"
|
|
|
|
class="text-red-500 text-sm">
|
|
|
|
class="text-red-500 text-sm">
|
|
|
|
L'URL doit commencer par http:// ou https://
|
|
|
|
L'URL doit commencer par http:// ou https://
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -80,5 +81,5 @@
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|