-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NEW] Added useful option for Accordion, fixed tests and templates
- Loading branch information
Showing
15 changed files
with
109 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
""" | ||
|
||
BLOCKS_KNOWED_FEATURES_PLUGINS = [ | ||
"Accordion" | ||
"Accordion", | ||
"Album", | ||
"Card", | ||
"Container", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
cmsplugin_blocks/migrations/0012_accordion_add_more_options.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Generated by Django 5.0.7 on 2024-08-29 01:31 | ||
|
||
import cmsplugin_blocks.modelfields | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
( | ||
"cmsplugin_blocks", | ||
"0011_accordion_alter_feature_plugins_accordionitem_and_more", | ||
), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="accordion", | ||
name="keep_open", | ||
field=models.BooleanField( | ||
default=False, | ||
help_text="When enabled, the already opened items are not closed when opening other items. On defaut, once an item is opened all other items are closed.", | ||
verbose_name="Keep items opened", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="accordionitem", | ||
name="opened", | ||
field=models.BooleanField( | ||
default=False, | ||
help_text="On default all accordion item are closed and need to be opened manually.This option enables this item to be initially opened.", | ||
verbose_name="Initially opened", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="feature", | ||
name="plugins", | ||
field=cmsplugin_blocks.modelfields.CommaSeparatedStringsField( | ||
blank=True, | ||
choices=[ | ||
("Accordion", "Accordion"), | ||
("Album", "Album"), | ||
("Card", "Card"), | ||
("Container", "Container"), | ||
("Hero", "Hero"), | ||
("Slider", "Slider"), | ||
], | ||
default="", | ||
max_length=50, | ||
verbose_name="Allowed for plugins", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters