Guest User

Untitled

a guest
Nov 17th, 2021
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. {% extends 'bootstrap/base.html' %}
  2.  
  3. {% block title %}
  4. {{ title }}
  5. {% endblock %}
  6.  
  7. {% block navbar %}
  8. <nav class="navbar navbar-default">
  9. </nav>
  10. {% endblock %}
  11.  
  12. {% block content %}
  13. <div class="container">
  14. {% with messages = get_flashed_messages() %}
  15. {% if messages %}
  16. {% for message in messages %}
  17. <div class="alert alert-info" role="alert">{{ message }}</div>
  18. {% endfor %}
  19. {% endif %}
  20. {% endwith %}
  21.  
  22. {% block app_content %}{% endblock %}
  23. </div>
  24. {% endblock %}
  25.  
  26. {% block app_content %}
  27. <form method="POST" action="/fixed" class="form" role="form">
  28. <div class="container-fluid">
  29. <div class="row">
  30. <div class="col-md-6">
  31. <h3>Параметры кредита</h3>
  32. <div class="row">
  33. {{ form.csrf_token }}
  34. <div class="form-group col-md-4">{{ wtf.form_field(form.notional, class="form-control", placeholder="Сумма в руб") }}</div>
  35. <div class="form-group col-md-4">{{ wtf.form_field(form.mult) }}</div>
  36. <div class="form-group col-md-3">{{ wtf.form_field(form.currency) }}</div>
  37. </div>
  38. <div class=row>
  39. <div class="form-group col-md-4">{{ wtf.form_field(form.start_date, class="form-control", placeholder="ГГГГ-ММ-ДД") }}</div>
  40. <div class="form-group col-md-4">{{ wtf.form_field(form.payment, class="form-control", placeholder="Сумма") }}</div>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. </form>
  46.  
  47. {% endblock app_content %}
Add Comment
Please, Sign In to add comment