Commit 17d00d05 authored by Ken Hawkins's avatar Ken Hawkins
Browse files

Whitespace control

parent 59a9d45f
......@@ -12,6 +12,7 @@
<fieldset class="vf-form vf-form__fieldset">
<legend class="vf-form__legend">Position location</legend>
{% spaceless %}
{% for key, name in locations | dictsort %}
{# count number of open positions #}
{% set counter = 0 %}
......@@ -21,7 +22,6 @@
{% endif -%}
{% endfor -%}
<div class="vf-form__item vf-form__item--checkbox">
<input type="checkbox" id="checkbox-{{ loop.index }}" class="vf-form__checkbox"
data-jplist-control="checkbox-text-filter" data-path=".jplist-duty-station" data-group="data-group-1" data-name="location2" data-or="locations"
......@@ -32,4 +32,5 @@
</div>
{% endfor %}
{% endspaceless %}
</fieldset>
{# Position type #}
{% set positiontypes = {
{%- set positiontypes = {
'ADM': 'Administration',
'BIO': 'Bioinformatics',
'COM': 'Communication',
......@@ -16,10 +16,11 @@
'TRA': 'Trainee and Internships',
'TRN': 'Training',
'OTH': 'Other'
} %}
} -%}
<fieldset class="vf-form vf-form__fieldset">
<legend class="vf-form__legend">Position type</legend>
{% spaceless %}
{% for key, type in positiontypes | dictsort %}
{% set counter = 0 %}
{%- for job in emblJobs %}
......@@ -37,4 +38,5 @@
<label for="checkbox-position-{{ loop.index }}" class="vf-form__label">{{ type }} ({{ counter }})</label>
</div>
{% endfor %}
{% endspaceless %}
</fieldset>
\ No newline at end of file
......@@ -91,10 +91,10 @@ embl_content_meta_properties:
<div>
<!-- locations -->
{% include "filter/job-location.njk" %}
{%- include "filter/job-location.njk" -%}
{# Position type #}
{% include "filter/job-type.njk" %}
{%- include "filter/job-type.njk" -%}
<a
class="vf-button vf-button--sm vf-button--tertiary"
......@@ -152,11 +152,11 @@ embl_content_meta_properties:
{%- endif %}
{%- endfor %}
{%- for job in emblJobs %}
{%- for job in emblJobs -%}
{# Show non-sticky jobs #}
{# <pre>{{ job | dump(2)}}</pre> #}
{% if job.field_jobs_sticky != 1 %}
{%- if job.field_jobs_sticky != 1 -%}
<div data-jplist-item>
<article class="vf-summary vf-summary--job | jplist-text-area">
......@@ -186,7 +186,7 @@ embl_content_meta_properties:
<p class="vf-summary__date">Closes {{ job.field_jobs_expiration | striptags | parseDate | prettyDate}}</p>
</article>
</div> {# / data-jplist-item #}
{%- endif %}
{%- endif -%}
{%- endfor %}
<!-- no results control -->
......
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