34 lines
1.6 KiB
HTML
34 lines
1.6 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
<div class="row is-vertical-align">
|
|
<div class="col"></div>
|
|
<div class="col-6 card h4">
|
|
<div class="row">
|
|
<div class="col"></div>
|
|
<div class="col-8">
|
|
<div class="row mb-3 is-left">
|
|
Дата начала: {{ rent.start_time }}
|
|
</div>
|
|
<div class="row mb-3 is-left">
|
|
Номер телефона клиента: {{ rent.client.phone }}
|
|
</div>
|
|
<div class="row mb-3 is-left">
|
|
<span>Клиент: <a href="{{ url_for('clients', id=rent.client_id) }}">{{ rent.client.surname }} {{ rent.client.name }} {{ rent.client.middlename }}</a></span>
|
|
</div>
|
|
<div class="row mb-3 is-left">
|
|
<span>Автомобиль: <a href="{{ url_for('cars', id=rent.car_id) }}">{{ rent.car.brand }} {{ rent.car.model }}</a></span>
|
|
</div>
|
|
<div class="row mb-3 is-left">
|
|
Количество минут: {{ rent.time_amount }}
|
|
</div>
|
|
<div class="row mb-3 is-left">
|
|
<span>Итоговая стоимость: <strong>{{ math.ceil(float(rent.car.price) * int(rent.time_amount) * 100) / 100 }}</strong></span>
|
|
</div>
|
|
</div>
|
|
<div class="col"></div>
|
|
</div>
|
|
</div>
|
|
<div class="col"></div>
|
|
</div>
|
|
{% endblock %} |