Skip to content

Commit

Permalink
Add section tabs option to page sidebar options (#1711)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood authored Aug 28, 2024
1 parent bfb61e7 commit 68a181f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions etna/core/models/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ class SidebarMixin(models.Model):
choices=[
("contents", "Contents"),
("sections", "Sections"),
("section_tabs", "Section tabs"),
("pages", "Pages"),
],
help_text=mark_safe(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Generated by Django 5.0.8 on 2024-08-28 10:32
# etna:allowAlterField

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("generic_pages", "0032_generalpage_twitter_og_description_and_more"),
]

operations = [
migrations.AlterField(
model_name="generalpage",
name="page_sidebar",
field=models.CharField(
blank=True,
choices=[
("contents", "Contents"),
("sections", "Sections"),
("section_tabs", "Section tabs"),
("pages", "Pages"),
],
help_text="Select the sidebar style for this page. For more information, see the <a href='https://nationalarchives.github.io/design-system/components/sidebar/'>sidebar documentation</a>.",
null=True,
),
),
]

0 comments on commit 68a181f

Please sign in to comment.