Skip to content

Commit

Permalink
'Solution'
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTarasov57 committed Oct 30, 2024
1 parent e8dc728 commit 81a8916
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion templates/taxi/car_detail.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "base.html" %}

{% block content %}
<h2>Car of detail</h2>
<h2>Car detail</h2>
<p>{{ car.manufacturer.name }}</p>
<p>{{ car.manufacturer.country }}</p>
<p>{% for driver in car.drivers.all %}
Expand Down
2 changes: 1 addition & 1 deletion templates/taxi/car_list.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "base.html" %}

{% block content %}
<h2>Car of list</h2>
<h2>Car list</h2>
{% if car_list %}
<ul>
{% for car in car_list %}
Expand Down
6 changes: 3 additions & 3 deletions templates/taxi/driver_detail.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{% extends "base.html" %}

{% block content %}
<h2>Driver of detail</h2>
<h2>Driver detail</h2>
<p>{{ driver.first_name }} {{ driver.last_name}}</p>
<ul>
{% for driver in driver.cars.all %}
<li>{{ driver.model}}</li>
{% for car in driver.cars.all %}
<li>{{ car.model}}</li>
{% endfor %}
</ul>
{% endblock %}
2 changes: 1 addition & 1 deletion templates/taxi/driver_list.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "base.html" %}

{% block content %}
<h2>Driver of list</h2>
<h2>Driver list</h2>
{% if driver_list %}
<ul>
{% for driver in driver_list %}
Expand Down
2 changes: 1 addition & 1 deletion templates/taxi/manufacturer_list.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "base.html" %}

{% block content %}
<h2>Manufacturers of list</h2>
<h2>Manufacturers list</h2>
{% if manufacturer_list %}
<ul>
{% for manufacturer in manufacturer_list %}
Expand Down

0 comments on commit 81a8916

Please sign in to comment.