Ajoute le SIRET aux paramètres association
This commit is contained in:
1 parent
cf67fdc9de
commit
5ab7e48945
9 files changed
+27
-3
No files matched your search
@@ -49,6 +49,7 @@ export default function Footer() {
|
||||
{settings.association_contact && <span>{settings.association_contact}</span>}
|
||||
{settings.association_email && <a href={`mailto:${settings.association_email}`} style={linkStyle}>{settings.association_email}</a>}
|
||||
{settings.association_phone && <a href={`tel:${settings.association_phone.replace(/[^+\d]/g, '')}`} style={linkStyle}>{settings.association_phone}</a>}
|
||||
{settings.association_siret && <span>SIRET : {settings.association_siret}</span>}
|
||||
{settings.association_website && <a href={settings.association_website} target="_blank" rel="noopener noreferrer" style={linkStyle}>Site web</a>}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -251,6 +251,20 @@ export function ParametresTab() {
|
||||
<input name="association_phone" type="tel" value={settings.association_phone} onChange={onChange} maxLength={40} />
|
||||
</label>
|
||||
</div>
|
||||
<label className="field">SIRET
|
||||
<input
|
||||
name="association_siret"
|
||||
value={settings.association_siret}
|
||||
onChange={onChange}
|
||||
inputMode="numeric"
|
||||
maxLength={20}
|
||||
placeholder="14 chiffres"
|
||||
aria-describedby="association-siret-help"
|
||||
/>
|
||||
<span id="association-siret-help" style={{ marginTop: 5, fontSize: 11.5, color: 'var(--gray-light)', fontWeight: 400 }}>
|
||||
Les espaces sont acceptés; le numéro doit contenir exactement 14 chiffres.
|
||||
</span>
|
||||
</label>
|
||||
<div className="grid-2" style={{ gap: 12 }}>
|
||||
<label className="field">Contact principal
|
||||
<input name="association_contact" value={settings.association_contact} onChange={onChange} maxLength={160} placeholder="Nom et fonction" />
|
||||
|
||||
@@ -3,6 +3,7 @@ export const ASSOCIATION_DEFAULTS = {
|
||||
association_address: 'Palais des Sports Jean Weille\nNancy (54)',
|
||||
association_email: 'contact@sluc-businessclub.fr',
|
||||
association_phone: '+33 3 83 00 00 00',
|
||||
association_siret: '',
|
||||
association_contact: '',
|
||||
association_website: '',
|
||||
association_facebook_url: 'https://www.facebook.com/search/top?q=sluc%20business%20club',
|
||||
|
||||
@@ -35,7 +35,7 @@ export default function Association() {
|
||||
.map((name) => name.trim())
|
||||
.filter(Boolean);
|
||||
const hasContact = settings.association_address || settings.association_email
|
||||
|| settings.association_phone || settings.association_contact;
|
||||
|| settings.association_phone || settings.association_contact || settings.association_siret;
|
||||
|
||||
return (
|
||||
<main>
|
||||
@@ -147,6 +147,7 @@ export default function Association() {
|
||||
{settings.association_address && <span style={{ whiteSpace: 'pre-line', color: 'var(--gray)' }}>{settings.association_address}</span>}
|
||||
{settings.association_email && <a className="btn-link" href={`mailto:${settings.association_email}`}>{settings.association_email}</a>}
|
||||
{settings.association_phone && <a className="btn-link" href={`tel:${settings.association_phone.replace(/[^+\d]/g, '')}`}>{settings.association_phone}</a>}
|
||||
{settings.association_siret && <span style={{ color: 'var(--gray)' }}>SIRET : {settings.association_siret}</span>}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
Reference in new issue
Block a user