From d0a978d1b69119ea5c6ceb8d2e90e0f24677bac3 Mon Sep 17 00:00:00 2001 From: "J.-S. Caux" <J.S.Caux@uva.nl> Date: Tue, 19 Jan 2016 19:54:01 +0100 Subject: [PATCH] Placeholders in forms: submissions done --- submissions/forms.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/submissions/forms.py b/submissions/forms.py index 44ff75e53..7243eac58 100644 --- a/submissions/forms.py +++ b/submissions/forms.py @@ -17,6 +17,10 @@ class SubmissionForm(forms.ModelForm): model = Submission fields = ['submitted_to_journal', 'domain', 'specialization', 'title', 'author_list', 'abstract', 'arxiv_link'] + def __init__(self, *args, **kwargs): + super(SubmissionForm, self).__init__(*args, **kwargs) + self.fields['arxiv_link'].widget.attrs.update({'placeholder': 'ex.: arxiv.org/abs/1234.56789v1'}) + class ProcessSubmissionForm(forms.Form): editor_in_charge = forms.ModelChoiceField(queryset=Contributor.objects.filter(rank__gte=3), required=True) -- GitLab