-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move cookieconsent settings to generic settings (#3722)
Removes the cookie consent settings from the "public" menu to "settings" menu and make it site independent setting This PR also remove the `@register_public_site_settings` as this the last remain setting in the "public" menu in wagtail Depends on #3721 --------- Co-authored-by: Fredrik Jonsson <[email protected]>
- Loading branch information
Showing
7 changed files
with
55 additions
and
33 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
41 changes: 41 additions & 0 deletions
41
hypha/cookieconsent/migrations/0002_remove_cookieconsentsettings_site_and_more.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,41 @@ | ||
# Generated by Django 4.2.9 on 2024-01-11 14:38 | ||
|
||
from django.db import migrations, models | ||
import wagtail.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("cookieconsent", "0001_initial"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name="cookieconsentsettings", | ||
name="site", | ||
), | ||
migrations.AlterField( | ||
model_name="cookieconsentsettings", | ||
name="cookieconsent_active", | ||
field=models.BooleanField( | ||
default=False, verbose_name="Activate cookie consent feature" | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="cookieconsentsettings", | ||
name="cookieconsent_message", | ||
field=wagtail.fields.RichTextField( | ||
default='<p>This website deploys cookies for basic functionality and to keep it secure. These cookies are strictly necessary. Optional analysis cookies which provide us with statistical information about the use of the website may also be deployed, but only with your consent. Please review our <a href="/data-privacy-policy/">Privacy & Data Policy</a> for more information.</p>', | ||
verbose_name="cookie consent message", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="cookieconsentsettings", | ||
name="cookieconsent_title", | ||
field=models.CharField( | ||
default="Your cookie settings", | ||
max_length=255, | ||
verbose_name="cookie consent title", | ||
), | ||
), | ||
] |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -98,6 +98,7 @@ | |
|
||
&--cookieconsent { | ||
@include button(transparent, $color--white); | ||
display: inline; | ||
|
||
&:focus, | ||
&:hover { | ||
|
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 |
---|---|---|
|
@@ -313,6 +313,6 @@ | |
|
||
&--cookieconsent { | ||
padding: 40px 20px; | ||
z-index: 10; | ||
z-index: 20; | ||
} | ||
} |