Skip to content
This repository has been archived by the owner on May 28, 2018. It is now read-only.

Commit

Permalink
Close heSam application option
Browse files Browse the repository at this point in the history
  • Loading branch information
nbrohee committed Sep 27, 2016
1 parent b86d680 commit 0a455c1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion client/src/components/application/Pepite/PepiteForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ function deleteDuplicate(array) {
})
}

function isOverduePepite(idPepite) {
return idPepite == 13
}

const PepiteForm = ({pepite, contact, errors, onChange}) => {
return (
<form>
Expand Down Expand Up @@ -59,11 +63,14 @@ const PepiteForm = ({pepite, contact, errors, onChange}) => {
<ControlLabel>Mon PEPITE</ControlLabel>
<ValidatedFormControl name="pepite" componentClass="select" onChange={onChange} value={pepite.pepite} error={errors.pepite}>
<option value="0" disabled>Sélectionner</option>
{getAllValidPepites(pepite.region - 1, pepite.establishment - 1).map((pepite, index) => { return (<option key={index + 1} value={pepite.id + 1}>PEPITE {pepite.name}</option>) }) }
{getAllValidPepites(pepite.region - 1, pepite.establishment - 1).map((pepite, index) => { return (<option key={index + 1} value={pepite.id + 1} disabled={isOverduePepite(pepite.id)}>PEPITE {pepite.name}</option>) }) }
</ValidatedFormControl>
</FormGroup>
)
}})()}
<Panel header="Comités passés" bsStyle="warning" className={(pepite.region == '3') ? '' : 'hidden'}>
Les comités d'engagement du <a href="http://www.hesam.eu/blog/2016/03/17/statut-etudiant-entrepreneur/" target="_blank">PEPITE HeSam Entreprendre</a> ont déjà eu lieu, n'hésite pas à les contacter pour connaitre la date des prochains.
</Panel>
</form>
)
}
Expand Down

0 comments on commit 0a455c1

Please sign in to comment.