Northside Staff Directory

 {{ 'Now' | Date:'MMM. yyyy' }}

{% for row in Rows %} {% assign pagebreak = forloop.index | Modulo:8 %} {% assign rowbreak = forloop.index | Modulo: 2 %} {% assign stylebreak = '' %} {% if pagebreak == 7 %} {% assign stylebreak = 'page-break-after:always;' %} {% endif %} {% if rowbreak == 1 and forloop.first != true %}
{% endif %}
{% capture photourl %} {% if row.PhotoId %} {{ 'Global' | Attribute:'PublicApplicationRoot' }}{{ row.PhotoUrl }} {% else %} {% case row.Gender %} {% when 'Female' %} {{ 'https://database.mynorthside.com/Assets/Images/person-no-photo-female.png' }} {% when 'Male' %} {{ 'https://database.mynorthside.com/Assets/Images/person-no-photo-male.png' }} {% else %} {{ 'https://database.mynorthside.com/Assets/Images/person-no-photo-unknown.png' }} {% endcase %} {% endif %} {% endcapture %}

{{ row.FullName }}

{{ row | Attribute:'Position' }}

{{ row.Email }}
{% assign sortedNumbers = row.PhoneNumbers | OrderBy:'NumberTypeValue.Value asc' %} {% for phone in sortedNumbers %} {% if phone.NumberTypeValue.Value == 'Mobile' %} {{ phone.NumberFormatted }} {{ phone.NumberTypeValue.Value }}
{% elseif phone.NumberTypeValue.Value == 'Work' %} {% assign phoneparts = phone.NumberFormatted | Split:'-' %} {{ phoneparts[0] }}-{{ phoneparts[1] }} {{ phone.NumberTypeValue.Value }}
{% endif %} {% endfor %}
{% endfor %}