Commit e3b770d5 authored by ancoats's avatar ancoats
Browse files

Add `enlist` page template

parent cb23a6e8
......@@ -35,12 +35,10 @@ fieldLayouts:
type: craft\fieldlayoutelements\CustomField
warning: null
width: 100
name: Content
sortOrder: 1
-
elements:
-
fieldUid: 81f9d9e3-2ee8-44af-97eb-f505af0c53f2
type: craft\fieldlayoutelements\HorizontalRule
-
fieldUid: b9ef778d-4043-4f7b-ac8e-8f7e36981eaa
instructions: null
label: null
required: false
......@@ -49,7 +47,7 @@ fieldLayouts:
warning: null
width: 100
-
fieldUid: 8eacedc7-8763-4c64-9483-1ace6ad9f199
fieldUid: 5c9e387a-9279-4455-889d-a528b2950a08
instructions: null
label: null
required: false
......@@ -57,8 +55,8 @@ fieldLayouts:
type: craft\fieldlayoutelements\CustomField
warning: null
width: 100
name: 'Contact information'
sortOrder: 2
name: Content
sortOrder: 1
-
elements:
-
......@@ -98,10 +96,10 @@ fieldLayouts:
warning: null
width: 100
name: Meta
sortOrder: 3
handle: pageParticipate
sortOrder: 2
handle: pageEnlist
hasTitleField: true
name: Participate
name: 'Join us'
section: 6ab93cff-53e0-441e-a061-fa6905a8de4d
sortOrder: 1
titleFormat: '{section.name|raw}'
......
contentColumnType: text
fieldGroup: a5c5fb6f-2af0-48d9-a6ca-08b38ff4d2ca
handle: promptRecruitmentCircle
instructions: ''
name: 'Recruitment Circle'
searchable: false
settings:
availableTransforms: '*'
availableVolumes: '*'
cleanupHtml: true
columnType: text
configSelectionMode: choose
defaultTransform: ''
manualConfig: ''
purifierConfig: ''
purifyHtml: '1'
redactorConfig: Prompt.json
removeEmptyTags: '1'
removeInlineStyles: '1'
removeNbsp: '1'
showHtmlButtonForNonAdmins: ''
showUnpermittedFiles: false
showUnpermittedVolumes: false
uiMode: enlarged
translationKeyFormat: null
translationMethod: language
type: craft\redactor\Field
......@@ -4,7 +4,7 @@ fieldLayouts:
-
elements:
-
fieldUid: 9d318b8c-79f8-4397-a1b5-650232b7670a
fieldUid: 2396af92-dec3-4deb-8b26-c5c0caf9a7e3
instructions: null
label: null
required: '1'
......@@ -13,7 +13,16 @@ fieldLayouts:
warning: null
width: 100
-
fieldUid: 2396af92-dec3-4deb-8b26-c5c0caf9a7e3
fieldUid: 4345174a-1cdd-4513-97c3-5b240db69ded
instructions: ''
label: ''
required: '1'
tip: null
type: craft\fieldlayoutelements\CustomField
warning: null
width: 100
-
fieldUid: 9d318b8c-79f8-4397-a1b5-650232b7670a
instructions: null
label: null
required: '1'
......
dateModified: 1611318372
dateModified: 1611400756
email:
fromEmail: it@extinctionrebellion.be
fromName: 'Extinction Rebellion Belgium'
......
enableVersioning: true
handle: pageParticipate
name: Participate
handle: pageEnlist
name: 'Join us'
previewTargets:
-
__assoc__:
......@@ -18,21 +18,21 @@ siteSettings:
0211ae0a-98a7-4b79-96d0-334ecd7a80d6:
enabledByDefault: true
hasUrls: true
template: _page-templates/template-page-participate
uriFormat: participer
template: _page-templates/template-page-enlist
uriFormat: rejoignez-nous
039dabba-4285-4138-804a-730a8eb3718a:
enabledByDefault: true
hasUrls: true
template: _page-templates/template-page-participate
template: _page-templates/template-page-enlist
uriFormat: mach-mit
784e880e-a333-4497-a19a-e2b53a38ef45:
enabledByDefault: true
hasUrls: true
template: _page-templates/template-page-participate
uriFormat: take-part
template: _page-templates/template-page-enlist
uriFormat: join-us
840e993f-174d-4c91-a9f9-d4d5dd903848:
enabledByDefault: true
hasUrls: true
template: _page-templates/template-page-participate
template: _page-templates/template-page-enlist
uriFormat: doe-mee
type: single
{% extends '_page-templates/template-entry-type-page.twig' %}
{% set queryEntriesRoles = craft.entries().section('roles') %}
{% set queryPageLocalGroups = craft.entries().section('pageLocalGroups').one() %}
{% set entriesPerPage = 10 %}
{% set limitedEntries = clone(queryEntriesRoles).limit(entriesPerPage) %}
{% paginate limitedEntries as pageData, pageEntries %}
{% set isPageFirst = (craft.app.request.getPageNum() == 1) %}
{% block content %}
{% include '_partials/components/template-page/page-header.twig' %}
{% if isPageFirst %}
<div class="tell-the-truth">
{% include '_partials/components/shared/tile.twig' with {
tileButtonURL: (queryEntriesRoles.count() ? '#section-roles'),
tileButtonLabel: (queryEntriesRoles.count() ? 'Open roles'|t),
tileTheme: 'hourglass'
} %}
{% include '_partials/components/shared/tile.twig' with {
tileButtonURL: (queryPageLocalGroups ? queryPageLocalGroups.url),
tileButtonLabel: (queryPageLocalGroups ? 'Find your local group'|t : ''),
tileTheme: 'extinction-part-one'
} %}
{% include '_partials/components/shared/tile.twig' with {
tileButtonURL: services.serviceURLRebelsManager,
tileButtonLabel: 'Registration form'|t,
tileTheme: 'tree-of-life-circle'
} %}
</div>
{% if entry.body %}
<section class="c-panel">
<div class="container">
<div class="s-redactor">
{{ entry.body }}
</div>
</div>
</section>
{% endif %}
{% endif %}
{% if queryEntriesRoles.count() %}
{% embed '_partials/components/default/entries-list.twig' with {
entries: pageEntries,
heading: 'Open roles in Extinction Rebellion'|t,
class: (isPageFirst ? 'u-background-color-pink'),
id: 'section-roles'
} %}
{% block loop %}
{% for entry in entries %}
{% include '_partials/components/template-entry-role/entry-bookend.twig' %}
{% endfor %}
{% endblock %}
{% block pagination %}
{% include '_partials/components/shared/pagination.twig' with {
data: pageData
} %}
{% endblock %}
{% block prompt %}
{% if (isPageFirst and prompts.promptRecruitmentCircle) %}
{% include '_partials/components/shared/prompt.twig' with {
promptContent: prompts.promptRecruitmentCircle
} %}
{% endif %}
{% endblock %}
{% endembed %}
{% endif %}
{% include '_partials/components/shared/image-grid.twig' with {
images: entry.imageGrid.all()
} %}
{% endblock %}
{% extends '_page-templates/template-entry-type-page.twig' %}
{% set queryEntries = craft.entries().section('roles') %}
{% set entriesPerPage = 10 %}
{% set limitedEntries = clone(queryEntries).limit(entriesPerPage) %}
{% paginate limitedEntries as pageData, pageEntries %}
{% set isPageFirst = (craft.app.request.getPageNum() == 1) %}
{% set queryPageLocalGroups = craft.entries().section('pageLocalGroups').one() %}
{% block content %}
{% include '_partials/components/template-page/page-header.twig' %}
{% if isPageFirst %}
<div class="act-now">
{% include '_partials/components/shared/tile.twig' with {
tileButtonURL: (entry.contactEmail ? "mailto:#{entry.contactEmail}"),
tileButtonLabel: (entry.contactEmail ? 'Email our Recruitment Circle'|t),
tileTheme: 'tree-of-life-circle'
} %}
{% include '_partials/components/shared/tile.twig' with {
tileButtonURL: (queryPageLocalGroups ? queryPageLocalGroups.url),
tileButtonLabel: (queryPageLocalGroups ? 'Join a local group'|t : ''),
tileTheme: 'extinction-part-one'
} %}
</div>
{% endif %}
{% embed '_partials/components/default/entries-list.twig' with {
heading: (isPageFirst ? 'Open roles in Extinction Rebellion'|t),
entries: pageEntries
} %}
{% block loop %}
{% for entry in entries %}
{% include '_partials/components/template-entry-role/entry-bookend.twig' %}
{% endfor %}
{% endblock %}
{% block pagination %}
{% include '_partials/components/shared/pagination.twig' with {
data: pageData
} %}
{% endblock %}
{% endembed %}
{% endblock %}
{% if entries|length %}
<section class="c-panel{% if (class is defined and class) %} {{ class }}{% endif %}">
<section class="c-panel{% if (class is defined and class) %} {{ class }}{% endif %}"{% if (id is defined and id) %} id="{{ id }}"{% endif %}>
<div class="container">
{% if (heading is defined and heading) %}
<h2 class="h3">{{ heading }}</h2>
......@@ -14,6 +14,9 @@
{% block pagination %}
{# continue #}
{% endblock %}
{% block prompt %}
{# continue #}
{% endblock %}
</div>
</section>
{% endif %}
{% if entries|length %}
<section class="c-panel{% if (class is defined and class) %} {{ class }}{% endif %}">
<section class="c-panel{% if (class is defined and class) %} {{ class }}{% endif %}"{% if (id is defined and id) %} id="{{ id }}"{% endif %}>
<div class="container">
{% if (heading is defined and heading) %}
<h2 class="h3">{{ heading }}</h2>
......@@ -14,6 +14,9 @@
{% block pagination %}
{# continue #}
{% endblock %}
{% block prompt %}
{# continue #}
{% endblock %}
</div>
</section>
{% endif %}
{% if entry|length %}
<article class="c-bookend c-bookend--entry" style="max-width: none !important;">
<article class="c-bookend c-bookend--entry u-width-max-none">
<a class="c-bookend__link" href="{{ entry.url }}">{{ entry.title }}</a>
<span class="c-bookend__label">{{ entry.categoryWorkingGroup.one() }}</span>
</article>
......
......@@ -17,6 +17,7 @@ return [
'Filter events by category' => 'Filtrer les événements par catégorie',
'Filter news by category' => 'Filtrer les actualités par catégorie',
'Filter posts by category' => 'Filtrer les articles par catégorie',
'Find your local group' => 'Trouvez votre groupe local',
'Follow {user}' => 'Suivre {user}',
'From' => 'De',
'Go to page' => 'Aller à la page',
......@@ -43,6 +44,7 @@ return [
'More roles like this' => 'Plus de rôles comme ça',
'More upcoming events' => "Plus d'événements à venir",
'Next page' => 'Page suivante',
'Open roles' => 'Rôles disponibles',
'Open roles in Extinction Rebellion' => 'Rôles disponibles dans Extinction Rebellion',
'Our demands' => 'Nos demandes',
'Our principles and values' => 'Nos principes et valeurs',
......@@ -52,6 +54,7 @@ return [
'Press contacts' => 'Contacts presse',
'Previous page' => 'Page précédente',
'Published by' => 'Publié par',
'Registration form' => "Formulaire d'inscription",
'Skip to main content' => 'Passer au contenu principal',
'Tell the truth' => 'Dire la vérité',
'To' => 'Á',
......
......@@ -17,6 +17,7 @@ return [
'Filter events by category' => 'Filter evenementen op categorië',
'Filter news by category' => 'Filter nieuws op categorië',
'Filter posts by category' => 'Filter berichten op categorië',
'Find your local group' => 'Vind jouw lokale groep',
'Follow {user}' => 'Volg {user}',
'From' => 'Van',
'Go to page' => 'Ga naar pagina',
......@@ -43,6 +44,7 @@ return [
'More roles like this' => 'Meer rollen zoals deze',
'More upcoming events' => 'Meer aankomende evenementen',
'Next page' => 'Volgende pagina',
'Open roles' => 'Beschikbare rollen',
'Open roles in Extinction Rebellion' => 'Beschikbare rollen in Extinction Rebellion',
'Our demands' => 'Onze eisen',
'Our principles and values' => 'Onze principes en waarden',
......@@ -52,6 +54,7 @@ return [
'Press contacts' => 'Perscontacten',
'Previous page' => 'Vorige pagina',
'Published by' => 'Gepubliceerd door',
'Registration form' => "Inschrijfformulier",
'Skip to main content' => 'Ga naar hoofdinhoud',
'Tell the truth' => 'Vertel de waarheid',
'To' => 'Tot',
......
This diff is collapsed.
This diff is collapsed.
source @ d07f2371
Subproject commit 8bcd338f04278eab41b9596dd6bc56483d833cfa
Subproject commit d07f23719a4f9634bd029a0d7fa444c464142b28
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment