Commit f4e347b8 authored by Olga Brani's avatar Olga Brani
Browse files

Help_text and placeholders for create_project form

parent 3b40b37a
......@@ -914,9 +914,15 @@ class ProjectApplicationForm(forms.ModelForm):
_(astakos_messages.DOMAIN_VALUE_ERR),
'invalid'
)],
widget=forms.TextInput(attrs={'placeholder': 'eg. foo.ece.ntua.gr'}),
help_text="Name should be in the form of dns"
widget=forms.TextInput(attrs={'placeholder': 'myproject.mylab.ntua.gr'}),
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 "
)
homepage = forms.URLField(
help_text="This should be a URL pointing at your project's site. e.g.: http://myproject.com ",
widget=forms.TextInput(attrs={'placeholder': 'http://myproject.com'}),
required=False
)
comments = forms.CharField(widget=forms.Textarea, required=False)
class Meta:
......
......@@ -1372,16 +1372,16 @@ class ProjectApplication(models.Model):
blank=True,
db_index=True)
name = models.CharField(max_length=80)
name = models.CharField(max_length=80, 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 ",)
homepage = models.URLField(max_length=255, null=True,
blank=True)
description = models.TextField(null=True, blank=True)
start_date = models.DateTimeField()
end_date = models.DateTimeField()
blank=True,help_text="This should be a URL pointing at your project's site. e.g.: http://myproject.com ",)
description = models.TextField(null=True, blank=True,help_text= "Please provide a short but descriptive abstract of your Project, so that anyone searching can quickly understand what this Project is about. ")
start_date = models.DateTimeField(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.")
end_date = models.DateTimeField(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. ")
member_join_policy = models.ForeignKey(MemberJoinPolicy)
member_leave_policy = models.ForeignKey(MemberLeavePolicy)
limit_on_members_number = models.PositiveIntegerField(null=True,
blank=True)
blank=True,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. ")
resource_grants = models.ManyToManyField(
Resource,
null=True,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment