forked from ABlogiX/django-bigbluebutton
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforms.py
31 lines (25 loc) · 1.1 KB
/
forms.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from django import forms
from django.forms import widgets
from django_bigbluebutton.models import Meeting, RegisteredUser
class JoinMeetingForm(forms.Form):
username = forms.CharField(
max_length=50,
widget=forms.TextInput(attrs={'class': 'form-control'})
)
password = forms.CharField(
widget=forms.TextInput(attrs={'class': 'form-control'})
)
class RegisteredUserForm(forms.ModelForm):
class Meta:
model = RegisteredUser
fields = ['mail', 'last_name', 'first_name', 'company', 'phone_number']
widgets = {
'mail': forms.EmailInput(attrs={'class': 'form-control'}),
'last_name': forms.TextInput(attrs={'class': 'form-control'}),
'first_name': forms.TextInput(attrs={'class': 'form-control'}),
'company': forms.TextInput(attrs={'class': 'form-control'}),
'phone_number': forms.TextInput(attrs={'class': 'form-control'}),
}
class SendMailForm(forms.Form):
_selected_action = forms.CharField(widget=forms.MultipleHiddenInput)
mail_content = forms.CharField(widget=forms.Textarea)