{% extends 'base.html.twig' %} {% block title %} OceanExpert - A Directory of Marine and Freshwater Professionals {% endblock %} {% block stylesheets %} {% endblock %} {% block body %} {% include('navbarlogin.html.twig') %} {% if OIHData is defined %} {% endif %}
{% if is_granted('ROLE_ADMIN') and is_granted('ROLE_PREVIOUS_ADMIN') == false and (expert.username is defined) %} Login as this user {% endif %} {% if expert.expertInfo.idInd is not defined %}

The profile you are looking for was not found.

click here to got to the Home Page.
{% elseif expert.expertInfo.idInd is defined and expert.error is defined %}
{% if expert.expertInfo.idInd is defined %} {% if is_granted('ROLE_GLOBAL_EDITOR') %}

Sorry we cannot display this profile yet as this profile is incomplete.

click here to enter the necessary information. {% else %}

Sorry we cannot display your profile yet as your profile is incomplete.

click here to enter the necessary information. {% endif %} {% else %}

The profile you are looking for was not found.

click here to got to the Home Page. {% endif %}
{% else %}
{% if expert.expertInfo.idInd is defined and expert.expertInfo.idInd | trim != "" %}

OceanExpert ID : {{ expert.expertInfo.idInd}}

{% endif %} User profile picture {% if expert.expertInfo.fname is defined %}

{% if expert.expertInfo.title is defined %} {{ expert.expertInfo.title | raw }} {% endif %} {% if expert.expertInfo.fname is defined %} {{ expert.expertInfo.fname | raw }} {% endif %} {% if expert.expertInfo.mname is defined %} {{ expert.expertInfo.mname | raw }} {% endif %} {% if expert.expertInfo.sname is defined %} {{ expert.expertInfo.sname | raw | upper }} {% endif %} {% if expert.expertInfo.qualityChecked == 1 %} {% endif %}

{% endif %} {% if expert.expertInfo.retired is defined and expert.expertInfo.retired == 1 %}

Retired {% if expert.expertInfo.retiredDate is not null and expert.expertInfo.retiredDate|date("d/m/Y") !="30/11/-0001" %} on {{ expert.expertInfo.retiredDate | date("d/m/Y") }} {% endif %}

{% endif %} {% if expert.expertInfo.deceased is defined and expert.expertInfo.deceased == 1 %}

Deceased {% if expert.expertInfo.deceasedDate is not null and expert.expertInfo.deceasedDate|date("d/m/Y") !="30/11/-0001" %} on {{ expert.expertInfo.deceasedDate | date("d/m/Y") }} {% endif %}

{% endif %} {% if expert.expertInfo.jobtitle is defined and expert.expertInfo.deceased == 0 %}

{{ expert.expertInfo.jobtitle | raw }}

{% endif %} {% if expert.expertInfo.dept is defined %}

{{ expert.expertInfo.dept | raw }}

{% endif %} {% if expert.instName is defined %}

{% if expert.expertInfo.deceased == 1 %} Last Associated with:
{% endif %} {% if expert.idInst is defined and expert.idInst != "" %} {{ expert.instName }} {% endif %}

{% endif %}

{% if app.user.id is defined and expert.expertInfo.idInd is not defined %} Edit Profile {% endif %} {% if expert.expertInfo.idInd is defined %} {% if (app.user is not null and expert.expertInfo.idInd == app.user.id) or is_granted('ROLE_GLOBAL_EDITOR') %} {% if is_granted('ROLE_GLOBAL_EDITOR') %} {% if expert.expertInfo.status is defined and (expert.expertInfo.status == 0 or expert.expertInfo.status == 3 ) %} {% elseif expert.expertInfo.status is defined and expert.expertInfo.status == 1 %} {% elseif expert.expertInfo.status is defined and expert.expertInfo.status == 2 %} {% elseif expert.expertInfo.status is defined and expert.expertInfo.status == 3 %} {% endif %} {% endif %} {% if app.user.id == expert.expertInfo.idInd %} Edit Profile {% else %} Edit Profile {% endif %} {% endif %}

{% endif %}
{% if expert.expertInfo is defined %}
Work Location
{{ expert.workLocation | raw }}
{% if expert.nationality is defined and expert.nationality !="" %}
Nationality

{{ expert.nationality|replace({',':"\n"})|nl2br }}

{% endif %}
{% if expert.expertInfo.deceased == 0 %} Email(s) {% if expert.expertInfo.email1 is defined %} {% if app.user.id is defined %}

Primary Email:
{{ expert.expertInfo.email1 | raw }}

{% if expert.expertInfo.email2 is defined and expert.expertInfo.email2!="" %}

Notification Email:
{{ expert.expertInfo.email2 | raw }}

{% else %}

Notification Email:
Same as Primary.

{% endif %} {% else %}

Please login to see the email.

{% endif %} {% endif %} {% if expert.expertInfo.tel is defined and expert.expertInfo.tel !="" %}
Telephone

{{ expert.expertInfo.tel }}

{% endif %} {% if expert.expertInfo.fax is defined and expert.expertInfo.fax != "" %}
Fax

{{ expert.expertInfo.fax }}

{% endif %} {% endif %} {% if is_granted('ROLE_GLOBAL_EDITOR') or (app.user.id is defined and expert.expertInfo.idInd == app.user.id ) %} {% if expert.expertInfo.gender is defined %}
Gender

{{ expert.expertInfo.gender|capitalize }}


{% endif %} {% endif %}
{% endif %}
{% if expert.expertInfo.fDateEnt is defined and expert.expertInfo.fDateEnt != "" %} Created: {{ expert.expertInfo.fDateEnt|date('Y-m-d') }} {% if expert.createdBy is defined and expert.createdBy != "" %} by {{ expert.createdBy }} {% endif %} | {% endif %} {% if expert.expertInfo.lDateUpd is defined and expert.expertInfo.lDateUpd != "" %} Last Updated: {{ expert.expertInfo.lDateUpd|date('Y-m-d') }} {% if expert.lastEditBy is defined and expert.lastEditBy != "" %} by {{ expert.lastEditBy }} {% endif %} {% endif %}


{% if expert.groups is defined and expert.groups | length > 0 %} Group(s): {% for groups in expert.groups %} {{ groups.groupname }} {% if not loop.last %},{% endif %} {% endfor %} {% endif %}
{% endif %}
{% include('footer.html.twig') %} {% if expert.expertInfo.idInd is defined %} {% endif %} {% endblock %}