Commit 9ffd9cb8 authored by Matija Obreza's avatar Matija Obreza

Final PCDI layout

parent e1bb7d98
......@@ -13,9 +13,7 @@
# TODO PDCI #
- Use DS to hold results of calculation, similar to worldclim DS
- Start by calculating and displaying PDCI with accession details
- Re-calculation needs to happen after any update to Accession or AccessionRelated (same as ES update)
- Need a PDCI "component" that will either return cached result or schedule calculation of PDCI for the accession
- PDCI dataset is downloadable as Excel (for selected accessions)
- WorldClim dataset is downloadable as Excel (for selected accessions)
......@@ -621,7 +621,7 @@ admin.kpi.execution.page=KPI Execution
admin.kpi.executionrun.page=Execution run details
accession.pdci=Passport Data Completeness Index
accession.pdci.jumbo=PDCI Score {0} of 10.0
accession.pdci.jumbo=PDCI Score: {0} of 10.0
accession.pdci.about-link=Read about Passport Data Completeness Index
accession.pdci.independent-items=Independent of the population type
accession.pdci.dependent-items=Depending on the population type
......
......@@ -6,33 +6,34 @@
<%
%>
<h3>
<div class="crop-details">
<h4>
<spring:message code="accession.pdci" />
</h3>
</h4>
<div class="jumbotron pdci-score">
<div>
<h4>
<h3>
<spring:message code="accession.pdci.jumbo" arguments="${value.score}" />
</h4>
</h3>
<small><a href="<c:url value="/content/passport-data-completeness-index" />"><spring:message
code="accession.pdci.about-link"
/></a></small>
</div>
</div>
<div class="crop-details">
<h4>
<%-- <h5>
<spring:message code="accession.pdci.independent-items" />
</h4>
</h5> --%>
<div class="row">
<c:forEach items="${pdci.independentItems}" var="item">
<div class="col-sm-3 col-xs-5 ${pdci[item] == 0 ? 'pdci-improve' : ''}">${item.toUpperCase()}</div>
<div class="col-sm-1 col-xs-1">${pdci[item]}</div>
</c:forEach>
</div>
<h4>
<h5>
<spring:message code="accession.pdci.dependent-items" />
</h4>
</h5>
<div class="row">
<c:forEach items="${pdci.dependentItems}" var="item">
<div class="col-sm-3 col-xs-5 ${pdci[item] == 0 ? 'pdci-improve' : ''}">${item.toUpperCase()}</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment