{% extends 'basic.html' %}

{% block content %}

<form class="form-inline my-2 my-lg-0" method="get" action="{% url 'search' %}" style="padding-top:25px">
      <input class="form-control mr-sm-2" type="search" placeholder="Поиск" aria-label="Search" name="search">
      <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Поиск</button>
</form>

<div class="card" style="margin-top:25px">
  <h5 class="card-header">{{ service.name }}</h5>
  <div class="card-body">
    <h5 class="card-title">{{ service.type }}</h5>
    <p class="card-text">{{ service.description }}</p>
      <img src="{{service.image.url}}" class="card-img-bottom" alt="Изображение отсутствует">
  </div>
     <div class="card-body">
         <form action="{% url 'add_to_cart' service_id=service.id %}" method="post">
             {% csrf_token %}
             <button type="submit" class="btn btn-primary">Заказать</button>
         </form>
  </div>
</div>

{% endblock %}