Skip to content
Snippets Groups Projects
Commit 4492058a authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier
Browse files
parent db5d5303
No related branches found
No related tags found
No related merge requests found
Pipeline #17418 passed with stage
in 52 seconds
......@@ -18,10 +18,10 @@
products-src="https://api.regenerative.org.au/webhook/regen/products"
range-product-categories="https://api.regenerative.org.au/webhook/regen/produce_categories"
range-producer-assurances="https://api.regenerative.org.au/webhook/regen/assurance_partners"
range-producer-supporting-evidence="https://api.regenerative.org.au/webhook/regen/supporting_evidence_classifications"
range-producer-certifications="https://api.regenerative.org.au/webhook/regen/certifications"
uniq="regenerative-produce-portal"
></solid-ofn-rpp>
<!-- range-producer-supporting-evidence="https://api.regenerative.org.au/webhook/regen/supporting_evidence_classifications"
range-producer-certifications="https://api.regenerative.org.au/webhook/regen/certifications" -->
</body>
</html>
......@@ -156,7 +156,7 @@ importCore().then(core => {
let resourceRendering = [];
if(res['@type'] == "ofn:supporting_evidence") {
resourceRendering.push(html`
<div class="text-14 text-light-grey">${res['ofn:Creation_date']}</div>
<div class="text-14 text-light-grey">${(new Date(res['ofn:Creation_date'])).toLocaleDateString()}</div>
<span class="text-18 bold text-black line-height-40 margin-right-10">${res['ofn:Title']}</span>
`);
......@@ -174,7 +174,7 @@ importCore().then(core => {
}
} else if(res["@type"] == "ofn:certification") {
resourceRendering.push(html`
<div class="text-14 text-light-grey">${res['ofn:Creation_date']}</div>
<div class="text-14 text-light-grey">${(new Date(res['ofn:Creation_date'])).toLocaleDateString()}</div>
<span class="text-18 bold text-black line-height-40 margin-right-10">${res['ofn:Certification_status']}</span>
<div class="chip white vertical-align-middle">Certification</div>
<div class="row"><div class="col s12 m5">Expiry date: ${res['ofn:Expiry_date']}</div><div class="col s12 m5">Certification ID: ${res['ofn:Certification_ID']}</div></div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment