Revision 67be1883 snf-astakos-app/astakos/im/forms.py
b/snf-astakos-app/astakos/im/forms.py | ||
---|---|---|
604 | 604 |
DOMAIN_VALUE_REGEX, |
605 | 605 |
_(astakos_messages.DOMAIN_VALUE_ERR), 'invalid' |
606 | 606 |
)], |
607 |
widget=forms.TextInput(attrs={'placeholder': 'eg. foo.ece.ntua.gr'}), |
|
608 |
help_text="Name should be in the form of dns" |
|
607 |
widget=forms.TextInput(attrs={'placeholder': 'myproject.mylab.ntua.gr'}), |
|
608 |
help_text=" The Project's name should be in a domain format. The domain shouldn't neccessarily exist in the real world but is helpful to imply a structure. e.g.: myproject.mylab.ntua.gr or myservice.myteam.myorganization " |
|
609 |
) |
|
610 |
homepage = forms.URLField( |
|
611 |
label= 'Homepage Url', |
|
612 |
widget=forms.TextInput(attrs={'placeholder': 'http://myproject.com'}), |
|
613 |
help_text="This should be a URL pointing at your project's site. e.g.: http://myproject.com ", |
|
614 |
required=False |
|
615 |
) |
|
616 |
desc = forms.CharField( |
|
617 |
label= 'Description', |
|
618 |
widget=forms.Textarea, |
|
619 |
help_text= "Please provide a short but descriptive abstract of your Project, so that anyone searching can quickly understand what this Project is about. " |
|
620 |
) |
|
621 |
issue_date = forms.DateTimeField( |
|
622 |
label= 'Start date', |
|
623 |
help_text= "Here you specify the date you want your Project to start granting its resources. Its members will get the resources coming from this Project on this exact date." |
|
624 |
) |
|
625 |
expiration_date = forms.DateTimeField( |
|
626 |
label= 'End date', |
|
627 |
help_text= "Here you specify the date you want your Project to cease. This means that after this date all members will no longer be able to allocate resources from this Project. " |
|
609 | 628 |
) |
610 | 629 |
moderation_enabled = forms.BooleanField( |
611 |
help_text="Check if you want to approve members participation manually", |
|
630 |
label= 'Moderated', |
|
631 |
help_text="Select this to approve each member manually, before they become a part of your Project (default). Be sure you know what you are doing, if you uncheck this option. ", |
|
612 | 632 |
required=False, |
613 | 633 |
initial=True |
614 | 634 |
) |
615 | 635 |
max_participants = forms.IntegerField( |
616 |
required=True, min_value=1 |
|
636 |
label='Total number of members', |
|
637 |
required=True, min_value=1, |
|
638 |
help_text="Here you specify the number of members this Project is going to have. This means that this number of people will be granted the resources you will specify in the next step. This can be '1' if you are the only one wanting to get resources. " |
|
617 | 639 |
) |
618 | 640 |
|
619 | 641 |
class Meta: |
Also available in: Unified diff