{% extends "base.html" %}
{% block title %}Nouveau contrat — GMAO{% endblock %}
{% block content %}<div class="container"><h1 class="h4 mb-3">Nouveau contrat photocopieur</h1><form method="post"><input type="hidden" name="csrf_token" value="{{ csrf_token() }}"><div class="row g-3"><div class="col-md-6"><label class="form-label">Nom *</label><input class="form-control" name="name" required></div><div class="col-md-6"><label class="form-label">Fournisseur *</label><select class="form-select" name="supplier_id" required>{% for company in companies %}<option value="{{ company.id }}">{{ company.name }}</option>{% endfor %}</select></div><div class="col-md-4"><label class="form-label">Référence</label><input class="form-control" name="reference"></div><div class="col-md-4"><label class="form-label">Début global *</label><input class="form-control" type="date" name="start_date" required></div><div class="col-md-4"><label class="form-label">Fin globale *</label><input class="form-control" type="date" name="end_date" required></div><div class="col-md-3"><label class="form-label">Début quota</label><input class="form-control" type="date" name="quota_start_date"></div><div class="col-md-3"><label class="form-label">Mois anniversaire *</label><input class="form-control" type="number" min="1" max="12" name="anniversary_month" required></div><div class="col-md-3"><label class="form-label">Jour anniversaire *</label><input class="form-control" type="number" min="1" max="31" name="anniversary_day" required></div><div class="col-12"><label class="form-label">Notes</label><textarea class="form-control" name="notes"></textarea></div></div><button class="btn btn-primary mt-3">Créer</button></form></div>{% endblock %}
