django.forms.Form
class LoginForm(forms.Form): login_id = forms.CharField(label="Login Id", max_length=100) password = forms.CharField(label="Password", widget=forms.PasswordInput, max_length=100) sender = forms.EmailField(help_text="이메일", required=False, max_length=100) remain_amt = forms.IntegerField(label="잔액", widget=forms.NumberInput( attrs={'class': 'form-control item-quantity', 'style': 'text-align: right;'}), step_size=1, error_messages={'required': 'This field is required.'}, )