mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 16:12:51 +11:00
commit
6f0481a055
1 changed files with 3 additions and 1 deletions
|
@ -20,7 +20,7 @@ MAX_CONTENT_LENGTH = getattr(settings, 'DPASTE_MAX_CONTENT_LENGTH', 250*1024*102
|
||||||
class SnippetForm(forms.ModelForm):
|
class SnippetForm(forms.ModelForm):
|
||||||
content = forms.CharField(
|
content = forms.CharField(
|
||||||
label=_('Content'),
|
label=_('Content'),
|
||||||
widget=forms.Textarea(attrs={'placeholder': _('Awesome code goes here...')}),
|
widget=forms.Textarea(attrs={'placeholder': _('Awesome code goes here...'), 'class': 'form-control'}),
|
||||||
max_length=MAX_CONTENT_LENGTH,
|
max_length=MAX_CONTENT_LENGTH,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -28,12 +28,14 @@ class SnippetForm(forms.ModelForm):
|
||||||
label=_(u'Lexer'),
|
label=_(u'Lexer'),
|
||||||
initial=LEXER_DEFAULT,
|
initial=LEXER_DEFAULT,
|
||||||
choices=LEXER_LIST,
|
choices=LEXER_LIST,
|
||||||
|
widget=forms.Select(attrs={'class': 'form-control'}),
|
||||||
)
|
)
|
||||||
|
|
||||||
expires = forms.ChoiceField(
|
expires = forms.ChoiceField(
|
||||||
label=_(u'Expires'),
|
label=_(u'Expires'),
|
||||||
choices=EXPIRE_CHOICES,
|
choices=EXPIRE_CHOICES,
|
||||||
initial=EXPIRE_DEFAULT,
|
initial=EXPIRE_DEFAULT,
|
||||||
|
widget=forms.Select(attrs={'class': 'form-control'}),
|
||||||
)
|
)
|
||||||
|
|
||||||
# Honeypot field
|
# Honeypot field
|
||||||
|
|
Loading…
Reference in a new issue