Revision 213ba781 snf-astakos-app/astakos/im/forms.py

b/snf-astakos-app/astakos/im/forms.py
56 56
from astakos.im.models import (
57 57
    AstakosUser, EmailChange, Invitation,
58 58
    Resource, PendingThirdPartyUser, get_latest_terms, RESOURCE_SEPARATOR,
59
    ProjectApplication)
59
    ProjectApplication, MemberJoinPolicy, MemberLeavePolicy)
60 60
from astakos.im.settings import (
61 61
    INVITATIONS_PER_LEVEL, BASEURL, SITENAME, RECAPTCHA_PRIVATE_KEY,
62 62
    RECAPTCHA_ENABLED, DEFAULT_CONTACT_EMAIL, LOGGING_LEVEL,
......
633 633
            _(astakos_messages.DOMAIN_VALUE_ERR),
634 634
            'invalid'
635 635
        )],
636
        widget=forms.TextInput(attrs={'placeholder': 'myproject.mylab.ntua.gr'}),
637
        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 "
636
        widget=forms.TextInput(
637
            attrs={'placeholder': 'myproject.mylab.ntua.gr'}),
638
            help_text="""The Project's name should be in a domain format.
639
                         The domain shouldn't neccessarily exist in the real
640
                         world but is helpful to imply a structure.
641
                         e.g.: myproject.mylab.ntua.gr or
642
                         myservice.myteam.myorganization"""
638 643
    )
639 644
    homepage = forms.URLField(
640 645
        label="Homepage Url",
641
        help_text="This should be a URL pointing at your project's site. e.g.: http://myproject.com ",
646
        help_text="""This should be a URL pointing at your project's site.
647
                     e.g.: http://myproject.com""",
642 648
        widget=forms.TextInput(attrs={'placeholder': 'http://myproject.com'}),
643 649

  
644 650
        required=False
645 651
     )
646 652
    comments = forms.CharField(widget=forms.Textarea, required=False)
653
    member_join_policy = forms.ModelChoiceField(
654
        queryset=MemberJoinPolicy.objects.all(),
655
        empty_label=None)
656
    member_leave_policy = forms.ModelChoiceField(
657
        queryset=MemberLeavePolicy.objects.all(),
658
        empty_label=None)
659

  
647 660

  
648 661
    class Meta:
649 662
        model = ProjectApplication

Also available in: Unified diff