{% if position_list or user.is_authenticated %} 
<div id="position">
	<h2>Employment</h2>
</div>

<ul class="mt-0 cv-entry">
{% for position in position_list %}
{% spaceless %}
<li id="position-{{position.pk}}" class="row">
	<div class="noneditable">
		<span class="cv-entry-date col-xs-2 col-sm-1">
			{% if position.start_date %}{{position.start_date|date:"Y"}}&#8211;{% endif %}
			{% if not position.current_position %}{{position.end_date|date:"Y"}}{% endif %}
		</span>
		<span class="cv-entry-text col-xs-9 col-sm-10">
			<em class="cv-entry-position-title">{{position.title}}</em>, 
			{% if position.project %}{{position.project}},{% endif %} 
			{{position.department}}, {{position.institution}}
		</span>
		{% if user.is_authenticated %}
				<a class="ml-4 position-edit cv-edit" href="#position"><i class="far fa-edit"></i></a>
		{% endif %}
	</div>
	<div class="editable"></div>
</li>
{% endspaceless %}
{% endfor %}
{% if user.is_authenticated %}
<li class="row">
	<div class="noneditable">
		<a class="col-12 col-sm-12 position-add cv-add" alt="Add new position" href="#position"><i class="far fa-plus-square"></i> Add new position</a>
	</div>
</li>
{% endif %}
</ul>
{% endif %}