diff --git a/calendar_utils/models.py b/calendar_utils/models.py index 550f7239f2783755c168e7434ebc24b50cde7541..4454dabfdc706aa27ec1817bf68ff8f7f3d9efb2 100644 --- a/calendar_utils/models.py +++ b/calendar_utils/models.py @@ -76,7 +76,8 @@ class Calendar(models.Model): event_list = icalevents.events( url=self.url, start=now() - timedelta(days=30), - end=now() + timedelta(days=365), # Pull a year ahead due to "popular" demand. + end=now() + + timedelta(days=365), # Pull a year ahead due to "popular" demand. ) self.handle_event_list(event_list) diff --git a/main/blocks.py b/main/blocks.py index 257ba5ba11c46fa859f203c2e4fd6aa06493fc7c..dc9d7f8c8c93a6a20c76205dc170b82e36775cb8 100644 --- a/main/blocks.py +++ b/main/blocks.py @@ -13,9 +13,8 @@ from wagtail.images.blocks import ImageChooserBlock from shared.blocks import CandidateBlock as SharedCandidateBlockMixin from shared.blocks import CandidateListBlock from shared.blocks import CandidateListBlock as SharedCandidateListBlockMixin -from shared.blocks import ( - CandidateSecondaryListBlock as SharedCandidateSecondaryListBlockMixin, -) +from shared.blocks import \ + CandidateSecondaryListBlock as SharedCandidateSecondaryListBlockMixin from shared.blocks import ( CardLinkBlockMixin, CardLinkWithHeadlineBlockMixin, @@ -28,9 +27,8 @@ from shared.blocks import ( ProgramGroupBlockMixin, ) from shared.blocks import ProgramGroupBlockPopout as SharedProgramGroupBlockPopout -from shared.blocks import ( - ProgramGroupWithCandidatesBlock as SharedProgramGroupWithCandidatesBlockMixin, -) +from shared.blocks import \ + ProgramGroupWithCandidatesBlock as SharedProgramGroupWithCandidatesBlockMixin from shared.blocks import SecondaryCandidateBlock as SharedSecondaryCandidateBlockMixin from shared.blocks import StreamBlock, TeamBlockMixin diff --git a/main/migrations/0144_alter_maincareerpage_employment_relationship.py b/main/migrations/0144_alter_maincareerpage_employment_relationship.py new file mode 100644 index 0000000000000000000000000000000000000000..22272715ed728bcd00a80dd53497f93c70354070 --- /dev/null +++ b/main/migrations/0144_alter_maincareerpage_employment_relationship.py @@ -0,0 +1,18 @@ +# Generated by Django 5.0.7 on 2025-02-04 08:14 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('main', '0143_alter_mainhomepage_popout_button_content'), + ] + + operations = [ + migrations.AlterField( + model_name='maincareerpage', + name='employment_relationship', + field=models.CharField(help_text="NapĹ™. 'Rámcová smlouva na dobu urÄŤitou'", max_length=128, verbose_name='Typ smlouvy'), + ), + ] diff --git a/main/models.py b/main/models.py index eece3ce8e0ec1ec87125b92d74f58b149329d463..08ce117d84c747da5cad30c7ac3973171d95ae39 100644 --- a/main/models.py +++ b/main/models.py @@ -523,7 +523,7 @@ class MainCareerPage( ) employment_relationship = models.CharField( - verbose_name="PomÄ›r", + verbose_name="Typ smlouvy", help_text="NapĹ™. 'Rámcová smlouva na dobu urÄŤitou'", max_length=128, blank=False, diff --git a/main/templates/main/main_career_page.html b/main/templates/main/main_career_page.html index c77620a3fc00acd76fb21b14c44edfefd6937844..97172130810f3c7ed51a05306a1cdfcad74e47c4 100644 --- a/main/templates/main/main_career_page.html +++ b/main/templates/main/main_career_page.html @@ -26,8 +26,8 @@ <strong>ZveĹ™ejnÄ›no</strong>: {{ page.created_date }}<br> <strong>PĹ™ihlášky do</strong>: {{ page.submission_end_date }}<br> <strong>UzavĂrá se</strong>: {{ page.closing_date }}<br> - <strong>Plat</strong>: {{ page.pay_rate }}<br> - <strong>PomÄ›r</strong>: {{ page.employment_relationship }}<br> + <strong>OdmÄ›na</strong>: {{ page.pay_rate }}<br> + <strong>Typ smlouvy</strong>: {{ page.employment_relationship }}<br> <strong>ÄŚasová nároÄŤnost</strong>: {{ page.time_cost }}<br> <strong>MĂsto vĂ˝konu práce</strong>: {{ page.location }}<br> diff --git a/shared/templates/styleguide2/includes/molecules/boxes/main/career_box.html b/shared/templates/styleguide2/includes/molecules/boxes/main/career_box.html index 0a139c46fae339276cdfb9512c1224833097757b..dd32cbbadf94059af434b470215f838a3732eeb3 100644 --- a/shared/templates/styleguide2/includes/molecules/boxes/main/career_box.html +++ b/shared/templates/styleguide2/includes/molecules/boxes/main/career_box.html @@ -8,8 +8,8 @@ <div class="text-xl p-4"> <strong>ÄŚasová nároÄŤnost</strong>: {{ career.time_cost }}<br> - <strong>PomÄ›r</strong>: {{ career.employment_relationship }}<br> - <strong>Plat</strong>: {{ career.pay_rate }}<br> + <strong>Typ smlouvy</strong>: {{ career.employment_relationship }}<br> + <strong>OdmÄ›na</strong>: {{ career.pay_rate }}<br> </div> <div class="flex justify-between items-end">