butler_ddochi/ansible_manager/forms.py
icurfer ea11832a53
Some checks failed
Build And Test / build-and-push (push) Failing after 53s
init
2024-12-13 17:12:03 +09:00

12 lines
468 B
Python

from django import forms
from .models import AnsibleJob
class AnsibleJobForm(forms.ModelForm):
class Meta:
model = AnsibleJob
fields = ['name', 'playbook_content', 'inventory_content']
widgets = {
'name': forms.TextInput(attrs={'class': 'form-control'}),
'inventory_content': forms.Textarea(attrs={'class': 'form-control'}),
'playbook_content': forms.Textarea(attrs={'class': 'form-control'}),
}