forked from ungleich-public/dynamicweb
clone cms with menus, make menus standalone app
This commit is contained in:
parent
1ece5ce7c7
commit
afb096b7a3
1153 changed files with 318897 additions and 37 deletions
29
cms/test_utils/project/pluginapp/plugins/multiwrap/forms.py
Normal file
29
cms/test_utils/project/pluginapp/plugins/multiwrap/forms.py
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
from django import forms
|
||||
|
||||
from cms.models import CMSPlugin
|
||||
|
||||
|
||||
class MultiWrapForm(forms.ModelForm):
|
||||
NUM_WRAPS = (
|
||||
(0, "0"),
|
||||
(1, "1"),
|
||||
(2, "2"),
|
||||
(3, "3"),
|
||||
(4, "4"),
|
||||
(5, "5"),
|
||||
(6, "6"),
|
||||
(7, "7"),
|
||||
(8, "8"),
|
||||
(9, "9"),
|
||||
(10, "10"),
|
||||
)
|
||||
|
||||
create = forms.ChoiceField(
|
||||
choices=NUM_WRAPS,
|
||||
label="Create Wraps",
|
||||
help_text="Create this number of wraps"
|
||||
)
|
||||
|
||||
class Meta:
|
||||
model = CMSPlugin
|
||||
exclude = ('page', 'position', 'placeholder', 'language', 'plugin_type')
|
||||
Loading…
Add table
Add a link
Reference in a new issue