{% extends 'base.html.twig' %} {% block body %}
{% if market is not null %}
Market info
  • Project Name: {{ market.project.projectName }}
  • Project Type: {{ market.project.type }}
  • Vintage: {{ market.vintage.year }}
  • Quantity Grams: {{ market.sellOrder.quantityGrams }}
  • Price Cents: ${{ market.sellOrder.priceCents }}
{% endif %}

Request Carbon Credit Retirement

{{ form_start(form, {'attr': {'class': 'form'}}) }}
{{ form_widget(form.vintage_id, {'attr': {'class': 'form-control'}}) }}
{{ form_widget(form.quantity_grams, {'attr': {'class': 'form-control'}}) }}
{{ form_widget(form.sell_order_id, {'attr': {'class': 'form-control'}}) }}
{{ form_widget(form.expected_price_cents, {'attr': {'class': 'form-control'}}) }}
{{ form_end(form) }}
{% if form_errors(form) %}

Errors:

    {% for error in form_errors(form) %}
  • {{ error.message }}
  • {% endfor %}
{% endif %} {% if apiError is not null %}
  • Status code: {{ apiError.statusCode }}
  • Message: {{ apiError.message }}
{% endif %} {% if apiResult is not null %}

API Response:

    {% for key, value in apiResult %}
  • {{ key }}: {{ value is same as(true) ? 'true' : value is same as(false) ? 'false' : value }}
  • {% endfor %}
{% endif %}
{% endblock %}