Add missing contact information

This commit is contained in:
Pierre HUBERT 2023-08-11 11:31:33 +02:00
parent 7d97909d06
commit 501f36e7ca
2 changed files with 36 additions and 1 deletions

View File

@ -536,6 +536,41 @@ export function MemberPage(p: {
return { label: c.fr, value: c.code };
})}
/>
{/* Address */}
<PropEdit
label="Adresse"
editable={p.editing}
value={member.address}
onValueChange={(v) => {
member.address = v;
updatedMember();
}}
size={ServerApi.Config.constraints.member_address}
/>
{/* Postal code */}
<PropEdit
label="Code postal"
editable={p.editing}
value={member.postal_code}
onValueChange={(v) => {
member.postal_code = v;
updatedMember();
}}
size={ServerApi.Config.constraints.member_postal_code}
/>
{/* City */}
<PropEdit
label="Ville"
editable={p.editing}
value={member.city}
onValueChange={(v) => {
member.city = v;
updatedMember();
}}
size={ServerApi.Config.constraints.member_city}
/>
</PropertiesBox>
</Grid>
)}

View File

@ -20,7 +20,7 @@ export function PropSelect(p: {
return <PropEdit label={p.label} editable={p.editing} value={value} />;
}
return (
<FormControl fullWidth variant="filled">
<FormControl fullWidth variant="filled" style={{ marginBottom: "15px" }}>
<InputLabel>{p.label}</InputLabel>
<Select
value={p.value}