SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 3d557693 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Add placeholder to SelectTopicForm

parent 235fd89c
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,11 @@ class SelectTagForm(forms.Form):
class SelectTopicForm(forms.Form):
topic = AutoCompleteSelectField('topic_lookup', label='', help_text='')
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.fields['topic'].widget.attrs.update({
'placeholder':'type here to find topic'})
class SelectLinkedTopicForm(forms.Form):
topic = AutoCompleteSelectField('linked_topic_lookup',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment