Liqiud basics
Modules
API
Mailer
Contract
Overview
Below is a list of all the available drops on the contract object
| Name | Description |
| contract.id | ID of the contract |
| contract.name | Name of the contract |
| contract.presentation | Presentation of the contract |
| contract.description | Contract description |
| contract.start_at | When the contract starts |
| contract.end_at | When the contract ends |
| contract.exists? | Boolean. Does the contract exist? |
Snippets
Contract selector example
{% for contract in customer.ongoing_contracts %}
<a href="{{ current_path }}?contract={{ contract.id}}" {% if contract.id == customer.currect_contract.id %}class="active"{% endif %}>
{{ contract.name }}
</a>
{% endfor %}Updated: 2020-11-17