backend/forms/forms.py
2025-03-23 21:24:08 +10:00

17 lines
851 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# -*- coding: utf-8 -*-
from django import forms
class Step1Form(forms.Form):
линия = forms.CharField(label="Линия", max_length=100)
проблема = forms.CharField(label="Проблема", widget=forms.Textarea)
class Step2Form(forms.Form):
время_начала = forms.DateTimeField(label="Время начала проблемы", widget=forms.DateTimeInput(attrs={'type': 'datetime-local'}))
время_решения = forms.DateTimeField(label="Время решения проблемы", widget=forms.DateTimeInput(attrs={'type': 'datetime-local'}))
class Step3Form(forms.Form):
причина = forms.CharField(label="Причина простоя", widget=forms.Textarea)
устранение = forms.CharField(label="Способ устранения проблемы", widget=forms.Textarea)