Form cosmetics.
This commit is contained in:
@@ -458,9 +458,9 @@ class DescriptionForm(EventCreateForm):
|
|||||||
if level == 'beginner':
|
if level == 'beginner':
|
||||||
title_prefix += u'%s ' % ugettext(u'Grundkurs')
|
title_prefix += u'%s ' % ugettext(u'Grundkurs')
|
||||||
elif sport == 'B':
|
elif sport == 'B':
|
||||||
title_prefix += u'%s %s:' % (ugettext(u'Aufbaukurs'), ugettext(u'Alpin'))
|
title_prefix += u'%s %s: ' % (ugettext(u'Aufbaukurs'), ugettext(u'Alpin'))
|
||||||
else:
|
else:
|
||||||
title_prefix += u'%s:' % ugettext(u'Aufbaukurs')
|
title_prefix += u'%s: ' % ugettext(u'Aufbaukurs')
|
||||||
if sport == 'K':
|
if sport == 'K':
|
||||||
if terrain == 'gym':
|
if terrain == 'gym':
|
||||||
title_prefix += ugettext(u'Indoorklettern')
|
title_prefix += ugettext(u'Indoorklettern')
|
||||||
@@ -473,7 +473,7 @@ class DescriptionForm(EventCreateForm):
|
|||||||
|
|
||||||
if DEVELOPMENT_INIT_FORMS:
|
if DEVELOPMENT_INIT_FORMS:
|
||||||
if not title_prefix:
|
if not title_prefix:
|
||||||
title_prefix = u'Development Default Title'
|
title_prefix = u'%s' % sport
|
||||||
|
|
||||||
self.fields['title'].initial = title_prefix
|
self.fields['title'].initial = title_prefix
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user