feat(comp): check perm for creation
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 8m22s
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 8m22s
This commit is contained in:
@@ -46,8 +46,8 @@ export function CompetitionEdit() {
|
||||
|
||||
<Content data={data} refresh={refresh}/>
|
||||
|
||||
{data.id !== null && <button style={{marginBottom: "1.5em", width: "100%"}} className="btn btn-primary"
|
||||
onClick={_ => navigate(`/competition/${data.id}/register`)}>Voir/Modifier les participants</button>}
|
||||
{data.id !== null && <button style={{marginBottom: "1.5em", width: "100%"}} className="btn btn-primary"
|
||||
onClick={_ => navigate(`/competition/${data.id}/register`)}>Voir/Modifier les participants</button>}
|
||||
|
||||
{data.id !== null && <ContentSAFCA data2={data}/>}
|
||||
|
||||
@@ -259,10 +259,11 @@ function Content({data}) {
|
||||
|
||||
<OptionField name="system" text="System" value={data.system} values={{SAFCA: 'SAFCA'}} disabled={data.id !== null}/>
|
||||
|
||||
<div className="row">
|
||||
<ClubSelect defaultValue={data.club} name="club" na={false} disabled={data.id !== null}/>
|
||||
</div>
|
||||
|
||||
{data.id !== null &&
|
||||
<div className="row">
|
||||
<ClubSelect defaultValue={data.club} name="club" na={false} disabled={true}/>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
<div className="row mb-3">
|
||||
|
||||
Reference in New Issue
Block a user