##// END OF EJS Templates
Updated placeholder for the URL input to be more user-friendly
neko259 -
r1764:ae6e7d4c default
parent child Browse files
Show More
@@ -1,11 +1,11 b''
1 from django import forms
1 from django import forms
2 from django.utils.translation import ugettext_lazy as _, ungettext_lazy
2 from django.utils.translation import ugettext_lazy as _
3
4
3
5 ATTRIBUTE_PLACEHOLDER = 'placeholder'
4 ATTRIBUTE_PLACEHOLDER = 'placeholder'
6 ATTRIBUTE_ROWS = 'rows'
5 ATTRIBUTE_ROWS = 'rows'
7
6
8 URL_ROWS = 2
7 URL_ROWS = 2
8 URL_PLACEHOLDER = _('Insert URLs on separate lines.')
9
9
10
10
11 class MultipleFileInput(forms.FileInput):
11 class MultipleFileInput(forms.FileInput):
@@ -50,7 +50,7 b' class UrlFileWidget(forms.MultiWidget):'
50 widgets = (
50 widgets = (
51 MultipleFileInput(attrs={'accept': 'file/*'}),
51 MultipleFileInput(attrs={'accept': 'file/*'}),
52 forms.Textarea(attrs={
52 forms.Textarea(attrs={
53 ATTRIBUTE_PLACEHOLDER: 'http://example.com/image.png',
53 ATTRIBUTE_PLACEHOLDER: URL_PLACEHOLDER,
54 ATTRIBUTE_ROWS: URL_ROWS,
54 ATTRIBUTE_ROWS: URL_ROWS,
55 }),
55 }),
56 )
56 )
1 NO CONTENT: modified file, binary diff hidden
NO CONTENT: modified file, binary diff hidden
@@ -565,3 +565,5 b' msgstr "\xd0\x90\xd0\xba\xd1\x82\xd0\xb8\xd0\xb2\xd0\xbd\xd1\x8b\xd0\xb5 \xd1\x82\xd0\xb5\xd0\xbc\xd1\x8b:"'
565 msgid "No active threads today."
565 msgid "No active threads today."
566 msgstr "Сегодня нет активных тем."
566 msgstr "Сегодня нет активных тем."
567
567
568 msgid "Insert URLs on separate lines."
569 msgstr "Вставляйте ссылки на отдельных строках."
General Comments 0
You need to be logged in to leave comments. Login now