1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-25 23:55:24 +00:00
webvirtcloud/virtsecrets/forms.py

12 lines
433 B
Python
Raw Normal View History

2015-02-27 09:28:22 +00:00
from django import forms
class AddSecret(forms.Form):
2022-11-02 05:54:35 +00:00
ephemeral = forms.ChoiceField(required=True, choices=(("no", "no"), ("yes", "yes")))
private = forms.ChoiceField(required=True, choices=(("no", "no"), ("yes", "yes")))
usage_type = forms.ChoiceField(
required=True,
choices=(("ceph", "ceph"), ("volume", "volume"), ("iscsi", "iscsi")),
)
2015-02-27 09:28:22 +00:00
data = forms.CharField(max_length=100, required=True)