_header.twig 2.11 KB
Newer Older
1
<div class="card__header">
2
3
4
5
6
7
8
9
10
11

  {% if bundle == 'uw_ct_profile' %}
    <div class="uw-image__profiles" style="width: 150px; height: 180px;">
      {% include '@components/card/card-elements/_image.twig' with {
        'image': image,
        'bundle': bundle
      } %}
    </div>
  {% endif %}

12
  {% if header.date %}
Martin Leblanc's avatar
Martin Leblanc committed
13
14
15
16
17
18
19

    {% if type == 'event' %}
      {% set date_format = 'long_with_time' %}
    {% else %}
      {% set date_format = 'long' %}
    {% endif %}

20
21
22
23
24
25
    {% include '@components/card/card-elements/_date.twig' with {
      'date_format': date_format,
      'date': header.date,
    } %}
  {% endif %}

26
  {% if header.title and show_title == 'yes' %}
27
28
29
    {% include '@components/card/card-elements/_title.twig' with {
      'header_level': 2,
      'title': header.title,
30
      'type': type
31
32
33
34
35
    } %}
  {% endif %}

  {% if header.position %}
    {% include '@components/card/card-elements/_position.twig' with {
36
      'position': header.position
37
38
39
40
41
42
43
44
    } %}
  {% endif %}

  {% if header.author %}
    {% include '@components/card/card-elements/_author.twig' with {
      'author': header.author
    } %}
  {% endif %}
Martin Leblanc's avatar
Martin Leblanc committed
45

46
47
48
49
50
51
52
53
54
55
  {% if header.posted %}
    {% include '@components/label/label.twig' with {
      'label': 'Date posted'
    } %}
    {% include '@components/card/card-elements/_date.twig' with {
      'date_format': 'long',
      'date': header.posted
    } %}
  {% endif %}

Martin Leblanc's avatar
Martin Leblanc committed
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
  {% if header.opportunity_type %}
    {% include '@components/card/card-elements/_opportunity-type.twig' with {
      'opportunity_type': header.opportunity_type
    } %}
  {% endif %}

  {% if header.employment_type %}
    {% include '@components/card/card-elements/_employment-type.twig' with {
      'employment_type': header.employment_type
    } %}
  {% endif %}

  {% if header.rate_of_pay or header.rate_of_pay_type %}
    {% include '@components/card/card-elements/_rate-of-pay.twig' with {
      'rate_of_pay': header.rate_of_pay,
      'rate_of_pay_type': header.rate_of_pay_type
    } %}
  {% endif %}

  {% if header.job_id %}
    {% include '@components/card/card-elements/_job-id.twig' with {
      'job_id': header.job_id
    } %}
  {% endif %}
80
</div>