Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • components/ofn-rpp
1 result
Show changes
...@@ -18,10 +18,10 @@ ...@@ -18,10 +18,10 @@
products-src="https://api.regenerative.org.au/webhook/regen/products" products-src="https://api.regenerative.org.au/webhook/regen/products"
range-product-categories="https://api.regenerative.org.au/webhook/regen/produce_categories" 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-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" uniq="regenerative-produce-portal"
></solid-ofn-rpp> ></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> </body>
</html> </html>
...@@ -156,7 +156,7 @@ importCore().then(core => { ...@@ -156,7 +156,7 @@ importCore().then(core => {
let resourceRendering = []; let resourceRendering = [];
if(res['@type'] == "ofn:supporting_evidence") { if(res['@type'] == "ofn:supporting_evidence") {
resourceRendering.push(html` 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> <span class="text-18 bold text-black line-height-40 margin-right-10">${res['ofn:Title']}</span>
`); `);
...@@ -174,7 +174,7 @@ importCore().then(core => { ...@@ -174,7 +174,7 @@ importCore().then(core => {
} }
} else if(res["@type"] == "ofn:certification") { } else if(res["@type"] == "ofn:certification") {
resourceRendering.push(html` 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> <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="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> <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>
......