Upload files to "frontend/templates/partials"

This commit is contained in:
Thierry 2026-04-01 21:33:59 +02:00
parent d0c29f3c50
commit 0bce1a25c7
5 changed files with 351 additions and 0 deletions

View file

@ -0,0 +1,71 @@
<div class="card bg-base-200 shadow">
<div class="card-body">
<h3 class="card-title">
<span class="badge badge-ghost">⚙️</span>
Configuration Backend
</h3>
{% if success %}
<div class="alert alert-success mb-4">
<span>✓ Configuration sauvegardée !</span>
</div>
{% endif %}
{% if error %}
<div class="alert alert-error mb-4">
<span>{{ error }}</span>
</div>
{% endif %}
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
<!-- Configuration Backend URL -->
<div class="form-control w-full">
<label class="label">
<span class="label-text">URL du Backend</span>
<span class="label-text-alt text-xs">
Pour les appels API
</span>
</label>
<input
type="text"
name="backend_url"
value="{{ current_backend_url or 'http://localhost:8091' }}"
class="input input-bordered"
placeholder="http://localhost:8091"
>
<span class="label-text-alt text-xs">
Ex: http://localhost:8091 ou http://backend_entwine:8000
</span>
</div>
<!-- Configuration Potree URL -->
<div class="form-control w-full">
<label class="label">
<span class="label-text">URL Potree</span>
<span class="label-text-alt text-xs">
Pour charger le viewer 3D
</span>
</label>
<input
type="text"
name="potree_url"
value="{{ current_potree_url or 'http://localhost:8090' }}"
class="input input-bordered"
placeholder="http://localhost:8090"
>
<span class="label-text-alt text-xs">
Ex: http://localhost:8090 ou http://potree_server:8090
</span>
</div>
</div>
<div class="card-actions justify-end mt-4">
<button
type="submit"
class="btn btn-primary btn-sm"
>
💾 Enregistrer
</button>
</div>
</div>
</div>