mirror of
https://github.com/sartography/protocol-builder-mock.git
synced 2025-01-12 08:44:46 +00:00
The Q_COMPLETE form field on the new/edit study page is changing from boolean to option select.
Import new IRBStatus model Change Q_COMPLETE form field to SelectField
This commit is contained in:
parent
d9f46de161
commit
762c29f951
@ -3,7 +3,7 @@ from flask_wtf import FlaskForm
|
||||
from wtforms import SelectMultipleField, StringField, BooleanField, SelectField, validators, HiddenField
|
||||
from wtforms_alchemy import ModelForm
|
||||
|
||||
from pb.models import RequiredDocument, Investigator, StudyDetails
|
||||
from pb.models import RequiredDocument, Investigator, StudyDetails, IRBStatus
|
||||
|
||||
|
||||
class StudyForm(FlaskForm):
|
||||
@ -14,8 +14,8 @@ class StudyForm(FlaskForm):
|
||||
render_kw={'class': 'multi'},
|
||||
choices=[(rd.AUXDOCID, rd.AUXDOC) for rd in RequiredDocument.all()])
|
||||
HSRNUMBER = StringField('HSR Number')
|
||||
Q_COMPLETE = BooleanField('Complete in Protocol Builder?', default='checked',
|
||||
false_values=(False, 'false', 0, '0'))
|
||||
Q_COMPLETE = SelectField("IRBStatus",
|
||||
choices=[((q.STATUS, q.DETAIL), q.DETAIL) for q in IRBStatus.all()])
|
||||
|
||||
|
||||
class InvestigatorForm(FlaskForm):
|
||||
|
Loading…
x
Reference in New Issue
Block a user