forked from seb_vallee/BillManager
Init project
This commit is contained in:
45
templates/clients/form.html
Normal file
45
templates/clients/form.html
Normal file
@@ -0,0 +1,45 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}{{ titre }}{% endblock %}
|
||||
{% block content %}
|
||||
<div class="page-header">
|
||||
<h1>{{ titre }}</h1>
|
||||
<a href="/clients/" class="btn">← Retour</a>
|
||||
</div>
|
||||
|
||||
<form method="post" class="form-card">
|
||||
<div class="form-grid">
|
||||
<div class="form-group full">
|
||||
<label>Nom *</label>
|
||||
<input type="text" name="nom" required value="{{ client.nom if client else '' }}">
|
||||
</div>
|
||||
<div class="form-group full">
|
||||
<label>Adresse *</label>
|
||||
<input type="text" name="adresse" required value="{{ client.adresse if client else '' }}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Code postal *</label>
|
||||
<input type="text" name="code_postal" required value="{{ client.code_postal if client else '' }}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Ville *</label>
|
||||
<input type="text" name="ville" required value="{{ client.ville if client else '' }}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Email</label>
|
||||
<input type="email" name="email" value="{{ client.email if client else '' }}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Téléphone</label>
|
||||
<input type="text" name="telephone" value="{{ client.telephone if client else '' }}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>SIRET</label>
|
||||
<input type="text" name="siret" maxlength="14" value="{{ client.siret if client else '' }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
<button type="submit" class="btn btn-primary">Enregistrer</button>
|
||||
<a href="/clients/" class="btn">Annuler</a>
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user