app/soc/views/models/student_proposal.py
changeset 1838 5a8a254af95b
parent 1787 b623d96bc830
child 1839 92b28d1bf2f5
equal deleted inserted replaced
1837:27428cd5b98f 1838:5a8a254af95b
   186          'base': forms.ChoiceField,
   186          'base': forms.ChoiceField,
   187          'label': 'Score',
   187          'label': 'Score',
   188          'initial': 0,
   188          'initial': 0,
   189          'required': False,
   189          'required': False,
   190          'passthrough': ['initial', 'required', 'choices'],
   190          'passthrough': ['initial', 'required', 'choices'],
       
   191          'help_text': 'A score will only be assigned if the review is private!',
   191          'choices': [(-4,'-4: Wow. This. Sucks.'),
   192          'choices': [(-4,'-4: Wow. This. Sucks.'),
   192                      (-3,'-3: Needs a lot of work'),
   193                      (-3,'-3: Needs a lot of work'),
   193                      (-2,'-2: This is bad'),
   194                      (-2,'-2: This is bad'),
   194                      (-1,'-1: I dont like this'),
   195                      (-1,'-1: I dont like this'),
   195                      (0,'0: No score'),
   196                      (0,'0: No score'),
   204          'label': 'Comment',
   205          'label': 'Comment',
   205          'required': False,
   206          'required': False,
   206          },
   207          },
   207         {'name': 'public',
   208         {'name': 'public',
   208          'base': forms.BooleanField,
   209          'base': forms.BooleanField,
   209          'label': 'Public comment',
   210          'label': 'Public review',
   210          'initial': False,
   211          'initial': False,
   211          'required': False,
   212          'required': False,
       
   213          'help_text': 'By ticking this box the score will not be assigned, '
       
   214              'and the review will be public.',
   212          },
   215          },
   213          ]
   216          ]
   214 
   217 
   215     dynaproperties = params_helper.getDynaFields(dynafields)
   218     dynaproperties = params_helper.getDynaFields(dynafields)
   216 
   219