::use 'contractadmin/design.mtt'::

::_("Summary")::

::_("Contract type"):: ::if contract.type==0:: ::_("CSA Contract"):: ::else:: ::_("Variable order contract"):: ::end::
::_("Start date"):: ::hDate(contract.startDate)::
::_("End date"):: ::hDate(contract.endDate)::
$$edit(::_("Edit")::,/contract/edit/::c.id::) ::if user.isAmapManager():: $$edit(::_("Duplicate")::,/contractAdmin/duplicate/::c.id::) ::end::

::_("Farmer")::

::_("Name"):: ::contract._vendor.name::
::_("Email"):: $$nullSafe(::contract._vendor.email::)
::_("Phone"):: $$nullSafe(::contract._vendor.phone::)

::_("Products")::

::foreach p contract.getProducts(true):: ::end::
::p.getName():: ::formatNum(p.price):: ::currency()::
::end::