{{"Parking spaces"}}

 
{% if let Some(session) = session %}
{% endif %}
{% if !parking_spaces.is_empty() %}
Owned parking spaces
    {% for parking_space in parking_spaces -%}
  • {% if let Some(location_id) = parking_space.location_id -%} {% if let Some(location) = location_by_id.get(location_id) -%} {% if let Some(spot) = parking_space.spot -%} {% if let Some(account) = account_by_id.get(parking_space.account_id) -%}
    {{location.name}} {{location.number}} Etap {{location.stage}}
    {{spot}}
    {% match parking_space.state %} {% when ParkingSpaceState::Pending %}
    Pending
    {% when ParkingSpaceState::Verified %}
    Accepted
    {% when ParkingSpaceState::Banned %}
    Rejected
    {% endmatch %}
    {% endif %} {% endif %} {% endif %} {% endif %}
  • {% endfor %}
{% endif %} {% for parking_space_rent in parking_space_rents -%} {% if let Some(parking_space) = parking_space_by_id.get(parking_space_rent.parking_space_id) %} {% if let Some(account) = account_by_id.get(parking_space.account_id) %}
{{ account.login }}
{{ parking_space_rent.price }}
{% endif %} {% endif %} {% endfor -%}