{% extends 'base.html.twig' %} {% block body %} {% include 'layout/header.html.twig' %}
{% 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|number_format(0, '.', ',') }}
  • Price Dollars: ${{ (market.sellOrder.priceCents / 100)|number_format(2, '.', ',') }}
{% 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'}}) }}
{% if form_errors(form.expected_price_dollars) %} {{ form_widget(form.expected_price_dollars, {'attr': {'class': 'form-control is-invalid'}}) }}
{{ form_errors(form.expected_price_dollars) }}
{% else %} {{ form_widget(form.expected_price_dollars, {'attr': {'class': 'form-control'}}) }} {% endif %}
{{ 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 %}