Initial work at integrating the risk assessment

#136. No clever database structure as yet...
This commit is contained in:
2020-05-28 18:55:22 +01:00
parent 1b1775d0f5
commit b75b6a6736
8 changed files with 317 additions and 45 deletions

View File

@@ -153,3 +153,15 @@ class InternalClientEventAuthorisationForm(BaseClientEventAuthorisationForm):
class EventAuthorisationRequestForm(forms.Form):
email = forms.EmailField(required=True, label='Authoriser Email')
class EventRiskAssessmentForm(forms.ModelForm):
forms.BooleanField.widget = forms.RadioSelect(choices=[
(True, 'Yes'),
(False, 'No')
], attrs={'class':'custom-control-input'})
class Meta:
model = models.RiskAssessment
fields = '__all__'
exclude = ['event', 'completed_by']