Add help text to sharing form

This commit is contained in:
Gabriel Augendre 2019-03-04 21:10:09 +01:00
parent 6abb55fa93
commit b2ece8bd78

View file

@ -36,6 +36,7 @@ class LocationSharingForm(forms.ModelForm):
self.request = request self.request = request
self.fields['shares_location_to'].queryset = Friend.objects.exclude(pk=request.user.pk) self.fields['shares_location_to'].queryset = Friend.objects.exclude(pk=request.user.pk)
self.fields['shares_location_to'].label = 'Share location to' self.fields['shares_location_to'].label = 'Share location to'
self.fields['shares_location_to'].help_text = 'Hold <kbd>Ctrl</kbd> or <kbd>Cmd</kbd> to select multiple users'
class FriendCreationForm(UserCreationForm): class FriendCreationForm(UserCreationForm):