Fixed long lines
This commit is contained in:
@@ -22,23 +22,28 @@ from django import forms
|
||||
from django.forms import ModelForm
|
||||
from django.contrib.auth.models import User
|
||||
from django.core.files.images import get_image_dimensions
|
||||
from tipp.models import Match, Competition, Post, UserProfile, Mandant, RelUserMandant
|
||||
from tipp.models import Match, Competition, Post, UserProfile, \
|
||||
Mandant, RelUserMandant
|
||||
|
||||
class NumberInput(forms.TextInput):
|
||||
input_type = 'number'
|
||||
|
||||
class TippForm(forms.Form):
|
||||
tippTeam1 = forms.IntegerField(required=True,widget=NumberInput(attrs={
|
||||
'cols': '2',
|
||||
'min': '0', 'max': '99', 'step': '1',
|
||||
'class':'form-inline',
|
||||
'role': 'form'}
|
||||
tippTeam1 = forms.IntegerField(required=True,widget=NumberInput(
|
||||
attrs={
|
||||
'cols': '2',
|
||||
'min': '0', 'max': '99', 'step': '1',
|
||||
'class':'form-inline',
|
||||
'role': 'form'
|
||||
}
|
||||
))
|
||||
tippTeam2 = forms.IntegerField(required=True,widget=NumberInput(attrs={
|
||||
'cols': '2',
|
||||
'min': '0', 'max': '99', 'step': '1',
|
||||
'class':'form-inline',
|
||||
'role': 'form'}
|
||||
tippTeam2 = forms.IntegerField(required=True,widget=NumberInput(
|
||||
attrs={
|
||||
'cols': '2',
|
||||
'min': '0', 'max': '99', 'step': '1',
|
||||
'class':'form-inline',
|
||||
'role': 'form'
|
||||
}
|
||||
))
|
||||
tippTeam1.widget.attrs['style'] = "width:35px"
|
||||
tippTeam2.widget.attrs['style'] = "width:35px"
|
||||
|
||||
Reference in New Issue
Block a user