feat(nomcom): Allow nomcom chair to turn volunteer acceptance on and off (#4251)
* feat(nomcom): Allow nomcom chair to turn volunteer acceptance on and off Fixes #4105 Also allows chair to set date of first call for volunteers. If this should be read-only and set by the code, let me know. * fix(nomcom): Correct helptext for accepting volunteers
This commit is contained in:
parent
3a1d8b398d
commit
3aab73d862
|
@ -120,7 +120,7 @@ class EditNomcomForm(forms.ModelForm):
|
|||
class Meta:
|
||||
model = NomCom
|
||||
fields = ('public_key', 'initial_text', 'show_nominee_pictures', 'show_accepted_nominees',
|
||||
'send_questionnaire', 'reminder_interval')
|
||||
'send_questionnaire', 'is_accepting_volunteers', 'first_call_for_volunteers', 'reminder_interval')
|
||||
widgets = {'public_key':FileInput, }
|
||||
|
||||
def clean_public_key(self):
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
# Generated by Django 2.2.28 on 2022-07-23 13:14
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('nomcom', '0012_populate_volunteers'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='nomcom',
|
||||
name='is_accepting_volunteers',
|
||||
field=models.BooleanField(default=False, help_text='Is this nomcom currently accepting volunteers?', verbose_name='Accepting volunteers'),
|
||||
),
|
||||
]
|
|
@ -60,7 +60,7 @@ class NomCom(models.Model):
|
|||
show_accepted_nominees = models.BooleanField(verbose_name='Show accepted nominees', default=True,
|
||||
help_text='Show accepted nominees on the public nomination page')
|
||||
is_accepting_volunteers = models.BooleanField(verbose_name="Accepting volunteers", default=False,
|
||||
help_text='Is this nomcom is currently accepting volunteers?')
|
||||
help_text='Is this nomcom currently accepting volunteers?')
|
||||
first_call_for_volunteers = models.DateField(verbose_name='Date of the first call for volunteers', blank=True, null=True)
|
||||
|
||||
class Meta:
|
||||
|
|
Loading…
Reference in a new issue