Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New plugins #137

Open
wants to merge 37 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
889f8a2
add heading plugin
May 3, 2020
122c8d8
add new variables for container plugin
May 3, 2020
de8d3d7
heading: conform to the settings.py vars convention
May 24, 2020
9cd07f4
container: add name field and use enum types
May 24, 2020
bf8c4fb
picture: add css d-flex by default
May 24, 2020
e6f2beb
picture: fix alignment config with caption
May 24, 2020
fb4ef1c
heading: rename field `text` to `name` for djangocms-text-ckeditor#528
May 29, 2020
2df934f
heading: fix renamed field `name` (djangocms-text-ckeditor#528)
May 30, 2020
ce1417e
container: allow to configure background and spacing
May 30, 2020
06b177c
container: fix enums values render
May 30, 2020
3ec58d1
container: fix incorrect attribute call
May 30, 2020
2da1d89
grid: add ckeditor css classes for container
Jun 9, 2020
5ea5100
grid/container: add vertical spacer type
Jun 10, 2020
fb1dbf3
grid: fix migrations
Jun 10, 2020
34968cb
grid: add gutters configuration
Jun 10, 2020
47c80c5
grid: replace verbose_name with help_text
Jun 10, 2020
082574b
grid: drop spacing vertical type field
Jun 10, 2020
a9d7972
row: drop the horizontal spacing field
Jun 12, 2020
1c3af86
container: add width internal field
Jun 15, 2020
2adee94
container: improve cms short description
Jun 15, 2020
0b5b37d
container: remove container type from admin as it isn't required
Jun 15, 2020
877b9e3
container: fix the default container type - set to full width
Jun 16, 2020
be03e75
container: allow fieldsets customization
Jul 6, 2020
44dcf0b
heading: move it out of <section>
Aug 1, 2020
1889ec4
grid: allow to center column content
Aug 2, 2020
d3c16f5
grid: fix imports in migrations
Aug 4, 2020
bd8d383
grid: fix incorrect import
Aug 10, 2020
1447c63
grid: fix spacing types
Aug 11, 2020
f58105d
grid: fix spacing types
Aug 11, 2020
017b61f
FIX #38: fix external svg (#108)
corentinbettiol Aug 19, 2020
7f887cd
blockquote: add origin subtext field
Jan 7, 2021
3039240
Merge remote-tracking branch 'origin/new-plugins' into new-plugins
Jan 7, 2021
57c486a
container: add horizontal & vertical external/internal spacing
Jan 20, 2021
5a4bc68
rename grid.GRID_CONTAINER_SPACING to grid.GRID_CONTAINER_HORIZONTAL_…
Jan 20, 2021
bbfe258
Added missing migrations
sgordeychuk Jul 19, 2021
db141d1
Django 4 support
sgordeychuk Aug 20, 2023
afb656c
Removed unnecessary requirement
sgordeychuk Aug 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion djangocms_bootstrap4/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from __future__ import unicode_literals

from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _


DEVICE_CHOICES = (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _

from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Generated by Django 4.2.4 on 2023-08-20 15:56

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

dependencies = [
("cms", "0022_auto_20180620_1551"),
("bootstrap4_alerts", "0001_initial"),
]

operations = [
migrations.AlterField(
model_name="bootstrap4alerts",
name="cmsplugin_ptr",
field=models.OneToOneField(
auto_created=True,
on_delete=django.db.models.deletion.CASCADE,
parent_link=True,
primary_key=True,
related_name="%(app_label)s_%(class)s",
serialize=False,
to="cms.cmsplugin",
),
),
]
2 changes: 1 addition & 1 deletion djangocms_bootstrap4/contrib/bootstrap4_alerts/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from __future__ import unicode_literals

from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _

from cms.models import CMSPlugin

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _

from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Generated by Django 4.2.4 on 2023-08-20 15:56

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

dependencies = [
("cms", "0022_auto_20180620_1551"),
("bootstrap4_badge", "0001_initial"),
]

operations = [
migrations.AlterField(
model_name="bootstrap4badge",
name="cmsplugin_ptr",
field=models.OneToOneField(
auto_created=True,
on_delete=django.db.models.deletion.CASCADE,
parent_link=True,
primary_key=True,
related_name="%(app_label)s_%(class)s",
serialize=False,
to="cms.cmsplugin",
),
),
]
2 changes: 1 addition & 1 deletion djangocms_bootstrap4/contrib/bootstrap4_badge/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from __future__ import unicode_literals

from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _

from cms.models import CMSPlugin

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _

from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
Expand Down
2 changes: 1 addition & 1 deletion djangocms_bootstrap4/contrib/bootstrap4_card/constants.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _


CARD_TYPE_CHOICES = (
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Generated by Django 4.2.4 on 2023-08-20 15:56

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

dependencies = [
("cms", "0022_auto_20180620_1551"),
("bootstrap4_card", "0001_initial"),
]

operations = [
migrations.AlterField(
model_name="bootstrap4card",
name="cmsplugin_ptr",
field=models.OneToOneField(
auto_created=True,
on_delete=django.db.models.deletion.CASCADE,
parent_link=True,
primary_key=True,
related_name="%(app_label)s_%(class)s",
serialize=False,
to="cms.cmsplugin",
),
),
migrations.AlterField(
model_name="bootstrap4cardinner",
name="cmsplugin_ptr",
field=models.OneToOneField(
auto_created=True,
on_delete=django.db.models.deletion.CASCADE,
parent_link=True,
primary_key=True,
related_name="%(app_label)s_%(class)s",
serialize=False,
to="cms.cmsplugin",
),
),
]
2 changes: 1 addition & 1 deletion djangocms_bootstrap4/contrib/bootstrap4_card/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from __future__ import unicode_literals

from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _

from cms.models import CMSPlugin

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _

from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from __future__ import unicode_literals

from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _


CAROUSEL_PAUSE_CHOICES = (
Expand Down
2 changes: 1 addition & 1 deletion djangocms_bootstrap4/contrib/bootstrap4_carousel/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from django.db import models
from django.utils.html import strip_tags
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _

from cms.models import CMSPlugin

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _

from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Generated by Django 4.2.4 on 2023-08-20 15:56

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

dependencies = [
("cms", "0022_auto_20180620_1551"),
("bootstrap4_collapse", "0001_initial"),
]

operations = [
migrations.AlterField(
model_name="bootstrap4collapse",
name="cmsplugin_ptr",
field=models.OneToOneField(
auto_created=True,
on_delete=django.db.models.deletion.CASCADE,
parent_link=True,
primary_key=True,
related_name="%(app_label)s_%(class)s",
serialize=False,
to="cms.cmsplugin",
),
),
migrations.AlterField(
model_name="bootstrap4collapsecontainer",
name="cmsplugin_ptr",
field=models.OneToOneField(
auto_created=True,
on_delete=django.db.models.deletion.CASCADE,
parent_link=True,
primary_key=True,
related_name="%(app_label)s_%(class)s",
serialize=False,
to="cms.cmsplugin",
),
),
migrations.AlterField(
model_name="bootstrap4collapsetrigger",
name="cmsplugin_ptr",
field=models.OneToOneField(
auto_created=True,
on_delete=django.db.models.deletion.CASCADE,
parent_link=True,
primary_key=True,
related_name="%(app_label)s_%(class)s",
serialize=False,
to="cms.cmsplugin",
),
),
]
2 changes: 1 addition & 1 deletion djangocms_bootstrap4/contrib/bootstrap4_collapse/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from __future__ import unicode_literals

from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _

from cms.models import CMSPlugin

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _

from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _


CODE_TYPE_CHOICES = (
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.1.4 on 2021-01-07 23:05

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('bootstrap4_content', '0002_added_figure'),
]

operations = [
migrations.AddField(
model_name='bootstrap4blockquote',
name='quote_origin_subtext',
field=models.CharField(blank=True, max_length=256, verbose_name='Cite subtext'),
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Generated by Django 4.2.4 on 2023-08-20 15:56

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

dependencies = [
("cms", "0022_auto_20180620_1551"),
("bootstrap4_content", "0003_add_field_origin_subtext"),
]

operations = [
migrations.AlterField(
model_name="bootstrap4blockquote",
name="cmsplugin_ptr",
field=models.OneToOneField(
auto_created=True,
on_delete=django.db.models.deletion.CASCADE,
parent_link=True,
primary_key=True,
related_name="%(app_label)s_%(class)s",
serialize=False,
to="cms.cmsplugin",
),
),
migrations.AlterField(
model_name="bootstrap4code",
name="cmsplugin_ptr",
field=models.OneToOneField(
auto_created=True,
on_delete=django.db.models.deletion.CASCADE,
parent_link=True,
primary_key=True,
related_name="%(app_label)s_%(class)s",
serialize=False,
to="cms.cmsplugin",
),
),
migrations.AlterField(
model_name="bootstrap4figure",
name="cmsplugin_ptr",
field=models.OneToOneField(
auto_created=True,
on_delete=django.db.models.deletion.CASCADE,
parent_link=True,
primary_key=True,
related_name="%(app_label)s_%(class)s",
serialize=False,
to="cms.cmsplugin",
),
),
]
7 changes: 6 additions & 1 deletion djangocms_bootstrap4/contrib/bootstrap4_content/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from __future__ import unicode_literals

from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _

from cms.models import CMSPlugin

Expand Down Expand Up @@ -51,6 +51,11 @@ class Bootstrap4Blockquote(CMSPlugin):
verbose_name=_('Cite'),
blank=True,
)
quote_origin_subtext = models.CharField(
verbose_name=_('Cite subtext'),
blank=True,
max_length=256,
)
quote_alignment = models.CharField(
verbose_name=_('Alignment'),
choices=ALIGN_CHOICES,
Expand Down
Loading