trans_carried.html 1017 B

12345678910111213141516171819202122232425
  1. {% extends 'SharixAdmin/index.html' %}
  2. {% block contenthome %}
  3. <h1 >{{ title }}</h1>
  4. <h3 >Ползователь: {{ request.user.username }}</h3>
  5. <h3 >Баланс: {{ wallet.balance }} р.</h3>
  6. {% if balance_err %}
  7. <div class="alert alert-danger" role="alert">
  8. {{ balance_err }}
  9. </div>
  10. {% endif %}
  11. <ul class="list-group">
  12. <li class="list-group-item active">{{ model.name_operation }}</li>
  13. <li class="list-group-item">Цена: {{ model.price }}</li>
  14. <li class="list-group-item">Валделец: {{ model.wallet.user.username }}</li>
  15. <li class="list-group-item">Дата услуги: {{ model.date_operation }}</li>
  16. <li class="list-group-item">Проведено: {{ model.is_carried_out }}</li>
  17. </ul>
  18. {% if not model.is_carried_out %}
  19. <form method="post">
  20. {% csrf_token %}
  21. <button class="btn btn-success my-3" type="submit">Провести</button>
  22. </form>
  23. {% endif %}
  24. {% endblock contenthome %}