-
-# TODO: Vérifier si on garde, pour l'envoi automatique d'un email lors de la
-# postulation de l'offre d'emploi
-################################################################################
-# TEMPLATE COURRIEL
-################################################################################
-class CandidatCourrielTemplateForm(ModelForm):
- def get_template(self):
- return self.data['template']
-
- class Meta:
- model = recr.CandidatCourriel
- fields = ('template', )
-
-class CandidatCourrielForm(ModelForm):
- def __init__(self, *args, **kwargs):
- self.candidats = kwargs.pop('candidats')
- self.template = kwargs.pop('template')
- super(CandidatCourrielForm, self).__init__(*args, **kwargs)
-
- def save(self):
- super(CandidatCourrielForm, self).save()
-
- class Meta:
- model = recr.CandidatCourriel
- fields = ('sujet', 'plain_text', 'html')
-