Style bookmark form

This commit is contained in:
Sascha Ißbrücker
2019-07-01 21:03:27 +02:00
parent e157bcd34f
commit 3b753a601f
7 changed files with 48 additions and 26 deletions

View File

@@ -55,10 +55,9 @@ class BookmarkForm(forms.ModelForm):
url = forms.URLField()
# Do not require title and description in form as we fill these automatically if they are empty
title = forms.CharField(max_length=512,
required=False,
widget=forms.TextInput(attrs={'placeholder': auto_fill_placeholder}))
required=False)
description = forms.CharField(required=False,
widget=forms.Textarea(attrs={'placeholder': auto_fill_placeholder}))
widget=forms.Textarea())
class Meta:
model = Bookmark