show candidates list for task only if there are any
This commit is contained in:
parent
8e9b4267f2
commit
635a4e2568
1 changed files with 26 additions and 22 deletions
|
@ -53,28 +53,32 @@
|
||||||
|
|
||||||
<metal:candidates define-macro="requirement_candidates">
|
<metal:candidates define-macro="requirement_candidates">
|
||||||
<metal:block use-macro="view/concept_macros/conceptdata" />
|
<metal:block use-macro="view/concept_macros/conceptdata" />
|
||||||
<h3 i18n:translate="">Candidates for Task</h3>
|
<div class="candidates"
|
||||||
<table class="listing">
|
tal:define="candidates item/adapted/getCandidates"
|
||||||
<tr>
|
tal:condition="candidates">
|
||||||
<th i18n:translate="">Candidate</th>
|
<h3 i18n:translate="">Candidates for Task</h3>
|
||||||
<th i18n:translate=""
|
<table class="listing">
|
||||||
title="coverage"
|
<tr>
|
||||||
i18n:attributes="title description_fit">Fit</th>
|
<th i18n:translate="">Candidate</th>
|
||||||
<th i18n:translate="">Knowledge</th>
|
<th i18n:translate=""
|
||||||
</tr>
|
title="coverage"
|
||||||
<tr tal:repeat="candidate item/adapted/getCandidates">
|
i18n:attributes="title description_fit">Fit</th>
|
||||||
<td tal:define="person candidate/person">
|
<th i18n:translate="">Knowledge</th>
|
||||||
<b tal:omit-tag="python:candidate['fit'] < 1.0">
|
</tr>
|
||||||
<a tal:attributes="href python:view.getUrlForTarget(person.context)"
|
<tr tal:repeat="candidate item/adapted/getCandidates">
|
||||||
tal:content="person/title" /></b></td>
|
<td tal:define="person candidate/person">
|
||||||
<td tal:content="candidate/fit" />
|
<b tal:omit-tag="python:candidate['fit'] < 1.0">
|
||||||
<td>
|
<a tal:attributes="href python:view.getUrlForTarget(person.context)"
|
||||||
<tal:knowledge tal:repeat="ke candidate/required">
|
tal:content="person/title" /></b></td>
|
||||||
<a tal:attributes="href python:view.getUrlForTarget(ke.context)"
|
<td tal:content="candidate/fit" />
|
||||||
tal:content="ke/title" /><tal:sep condition="not:repeat/ke/end">, </tal:sep>
|
<td>
|
||||||
</tal:knowledge></td>
|
<tal:knowledge tal:repeat="ke candidate/required">
|
||||||
</tr>
|
<a tal:attributes="href python:view.getUrlForTarget(ke.context)"
|
||||||
</table>
|
tal:content="ke/title" /><tal:sep condition="not:repeat/ke/end">, </tal:sep>
|
||||||
|
</tal:knowledge></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
</metal:candidates>
|
</metal:candidates>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue