Skip to content

Commit

Permalink
with bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
94nj111 committed Nov 15, 2024
1 parent 8473458 commit 4a8ddd5
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 25 deletions.
21 changes: 13 additions & 8 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,22 @@
{% endblock %}
<title>Title</title>
{% load static %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">
<link rel="stylesheet" href="{% static 'css/style.css'%}">
</head>
<body>
<div class="sidebar">
{% block sidebar %}
{% include "includes/sidebar.html" %}
{% endblock %}
</div>
<div class="content">
{% block content %}
{% endblock %}
<div class="container-fluid">
<div class="row">
<div class="col-sm-3">
{% block sidebar %}
{% include "includes/sidebar.html" %}
{% endblock %}
</div>
<div class="col-sm-9">
{% block content %}
{% endblock %}
</div>
</div>
</div>
</body>
</html>
24 changes: 12 additions & 12 deletions templates/includes/sidebar.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<ul>
<li>
<a href="#">Home page</a>
</li>
<li>
<a href="#">Manufacturers</a>
</li>
<li>
<a href="#">Cars</a>
</li>
<li>
<a href="#">Drivers</a>
</li>
<li>
<a href="#">Home page</a>
</li>
<li>
<a href="#">Manufacturers</a>
</li>
<li>
<a href="#">Cars</a>
</li>
<li>
<a href="#">Drivers</a>
</li>
</ul>
10 changes: 5 additions & 5 deletions templates/taxi/index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% extends "base.html" %}
{% block content %}
<ul>
<li>Number of cars: {{ num_cars }}</li>
<li>Number of drivers: {{ num_divers }}</li>
<li>Number of manufacturers: {{ num_manufacturers }}</li>
</ul>
<ul>
<li>Number of cars: {{ num_cars }}</li>
<li>Number of drivers: {{ num_divers }}</li>
<li>Number of manufacturers: {{ num_manufacturers }}</li>
</ul>
{% endblock %}

0 comments on commit 4a8ddd5

Please sign in to comment.