Allow amateur performer profiles

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Paul Schneider 2026-11-08 02:29:09 +00:00
commit 0728d2a3f7
Signed by: notazof
GPG key ID: AD4B9B545FBD7D12
20 changed files with 217 additions and 29 deletions

View file

@ -7,7 +7,14 @@
<h2>Index</h2>
<p>
<a asp-action="Create">Create New</a>
@if ((bool?)ViewBag.CanIssueEstimates == true)
{
<a asp-action="Create">Create New</a>
}
else
{
<span>Un identifiant d'entreprise est nécessaire pour émettre ou modifier des devis.</span>
}
</p>
<table class="table">
<tr>

View file

@ -84,10 +84,10 @@
</div>
<div class="form-group">
<label asp-for="SIREN" class="col-md-2 control-label">SIREN</label>
<label asp-for="SIREN" class="col-md-2 control-label">Identifiant d'entreprise (SIREN/SIRET, facultatif)</label>
<div class="col-md-10">
<input asp-for="SIREN" class="form-control" />
<small class="form-text text-muted">Sans identifiant, votre profil reste utilisable comme amateur, mais l'émission de devis et la facturation sont désactivées.</small>
<span asp-validation-for="SIREN" class="text-danger"></span>
</div>
</div>