dreamjob/app/View/Elements/user_worker_item.ctp

35 lines
1.6 KiB
PHP

<?php
/*
*
*/
?>
<div class="item">
<div class="icon"> <img src="{% if workershow.avatar %}{{workershow.avatar.url}}{% else %}{{ STATIC_URL }}img/icon_user.png{% endif %}"></div>
<div class="left">
<span class="title">{{workershow}}</span>
<span>{% trans 'city' %}:{{workershow.city}}</span>
<span>{% trans 'branch' %}:{{workershow.branch}}</span>
<span>{% trans 'graducation' %}:{{workershow.graducation}}</span>
{% if workershow.workexperience %}
<span>{% trans 'workexperience' %}:{{workershow.workexperience}} {% trans 'years' %}</span>
{% endif %}
<span>{{application.created}}</span>
</div>
<div class="right">
{% if application.closed %}
<a href="{% url de.miconware.dreamjob.jobs.views.opening_application opening=application.opening.pk application=application.pk showarchive=showarchive %}"><span jtype="button">{% trans 'application open' %}</span></a>
<a href="{% url de.miconware.dreamjob.jobs.views.application_show application.pk %}"><span jtype="button">{% trans 'detail' %}</span></a>
{% else %}
<a href="{% url de.miconware.dreamjob.jobs.views.opening_application opening=application.opening.pk application=application.pk showarchive=showarchive %}"><span jtype="button">{% trans 'application archiv' %}</span></a>
<a href="{% url de.miconware.dreamjob.jobs.views.application_show application.pk %}"><span jtype="button">
{% if application.messages_set.all|length > 0 %}
{% blocktrans with new=application.newmsgcompany.all|length all=application.messages_set.all|length %}detail ({{new}}/{{all}}){% endblocktrans %}
{% else %}
{% trans 'detail' %}
{% endif %}
</span></a>
{% endif %}
</div>
</div>