poli_planning/polyclinic_scheduling/apps/schedule/forms.py

9 lines
629 B
Python
Raw Normal View History

2020-05-13 15:54:40 +02:00
from django import forms
from django.utils.translation import gettext_lazy as _
from .models import Schedule
class ScheduleForm(forms.Form):
name = forms.CharField(label=_('Department name'), help_text=_('Enter a descriptive name for this schedule'), max_length=100)
email = forms.CharField(label=_('Email address for results'), help_text=_('When the job is done, the results will be sent to this email address'), max_length=100)
json = forms.CharField(label=_('Email address for results'), help_text=_('When the job is done, the results will be sent to this email address'), widget=forms.HiddenInput(), strip=True)