diff --git a/www/new.spt b/www/new.spt index 6f2c02b27f..5d5de7e43f 100644 --- a/www/new.spt +++ b/www/new.spt @@ -20,11 +20,17 @@ title = _("Apply for a New Team") {% block content %}
+
- - + + @@ -38,10 +44,17 @@ title = _("Apply for a New Team") -
- {{ _("I agree to the terms and conditions") }} -
- +
+
+ + +
+
diff --git a/www/teams/create.json.spt b/www/teams/create.json.spt index c7788d53e8..5b268f2153 100644 --- a/www/teams/create.json.spt +++ b/www/teams/create.json.spt @@ -6,18 +6,18 @@ from gratipay.models.team import Team request.allow('POST') field_names = { - 'name': 'Name', + 'name': 'Team Name', 'homepage': 'Homepage', 'product_or_service': 'Product or Service', - 'getting_paid': 'How do you share revenue', - 'getting_involved': 'How can other people get involved' + 'getting_paid': 'How do you share revenue?', + 'getting_involved': 'How can other people get involved?' } if user.ANON: - raise Response(401, _("You must sign in to apply for a new team")) + raise Response(401, _("You must sign in to apply for a new team.")) if not request.body.get('agree_terms', False): - raise Response(400, _("Please agree to the terms and conditions")) + raise Response(400, _("Please agree to the terms of service.")) if request.method == 'POST': fields = {} @@ -25,10 +25,11 @@ if request.method == 'POST': # Validate inputs for field in field_names.keys(): - if not request.body.get(field, ''): - raise Response(400, _("Please fill out the '{0}' field", field_names[field])) + value = request.body.get(field, '') + if not value: + raise Response(400, _("Please fill out the '{0}' field.", field_names[field])) - fields[field] = request.body.get(field, '') + fields[field] = value fields['slug'] = slugize(fields['name'])