first commit
This commit is contained in:
		
						commit
						b71ea45681
					
				
					 898 changed files with 138202 additions and 0 deletions
				
			
		
							
								
								
									
										19
									
								
								processes/forms.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								processes/forms.py
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,19 @@
 | 
			
		|||
from django import forms
 | 
			
		||||
from .models import ProcessInstance, StepInstance
 | 
			
		||||
 | 
			
		||||
class ProcessInstanceForm(forms.ModelForm):
 | 
			
		||||
    class Meta:
 | 
			
		||||
        model = ProcessInstance
 | 
			
		||||
        fields = ['name']
 | 
			
		||||
        widgets = {
 | 
			
		||||
            'name': forms.TextInput(attrs={'class': 'form-control'})
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
class StepInstanceForm(forms.ModelForm):
 | 
			
		||||
    class Meta:
 | 
			
		||||
        model = StepInstance
 | 
			
		||||
        fields = ['status', 'notes']
 | 
			
		||||
        widgets = {
 | 
			
		||||
            'status': forms.Select(attrs={'class': 'form-control'}),
 | 
			
		||||
            'notes': forms.Textarea(attrs={'class': 'form-control', 'rows': 3})
 | 
			
		||||
        } 
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue