{% load i18n static %}

<!doctype html>
<html lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="robots" content="NONE,NOARCHIVE" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="Pangea">
    <title>{% block title %}{% if title %}{{ title }} – {% endif %}Pangea{% endblock %}</title>

    <!-- Bootstrap core CSS -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css">
    <link rel="stylesheet" href= "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
    <link href="{% static "/css/bootstrap.min.css" %}" rel="stylesheet">

    <style>
      .bd-placeholder-img {
        font-size: 1.125rem;
        text-anchor: middle;
        -webkit-user-select: none;
        -moz-user-select: none;
        user-select: none;
      }

      @media (min-width: 768px) {
        .bd-placeholder-img-lg {
          font-size: 3.5rem;
        }
      }
    </style>

  
    <!-- Custom styles for this template -->
    <link href="{% static "/css/dashboard.css" %}" rel="stylesheet">
  </head>
<body id="body-login">
    <header class="navbar navbar-dark sticky-top bg-grey flex-md-nowrap p-0 shadow" style="background-color: #712547;">
      <div class="navbar-nav navbar-sub-brand">
      </div>
      <div class="navbar-nav">
      </div>
    </header>

    <div class="container">
      <div class="row mt-5">
        <div class="col">
					{% load i18n %}
					{% load django_bootstrap5 %}
					<form role="form" method="post">
						{% csrf_token %}
						{% if form.errors %}
						<div class="alert alert-danger alert-icon alert-icon-border alert-dismissible" role="alert">
						  <div class="icon"><span class="mdi mdi-close-circle-o"></span></div>
						  <div class="message">
						    <button class="close" type="button" data-dismiss="alert" aria-label="Close">
						    <span class="mdi mdi-close" aria-hidden="true"></span>
						    </button>
						    {% for field, error in form.errors.items %}
						      {{ error }}
						    {% endfor %}
						  </div>
						</div>
						{% endif %}
						{% bootstrap_form form %}
						<div class="form-actions-no-box">
						  <a class="btn btn-grey" href="{% url 'promotion:show_promotion' %}">{% trans "Cancel" %}</a>
						  <input class="btn btn-green-admin" type="submit" name="submit" value="{% trans 'Continue' %}" />
						</div>
					</form>
        </div>
        <div class="col-3">
					<ul id="dynfaq">
						<strong>Resum</strong>
						<li style="padding-left: 15px;">
							Imports inicials
						</li>
						<li style="padding-left: 15px;">
							Tarjeta SIM {{ sim }}€
						</li>
						<li style="padding-left: 15px;">
							Factura mensual
						</li>
						<li style="padding-left: 15px;">
							{{ mensual }}€
						</li>
						Total {{ total }}€ (IVA inclòs)
					</ul>
        </div>
      </div>
    </div>

    <script src="/static/js/bootstrap.bundle.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons@4.28.0/dist/feather.min.js" integrity="sha384-uO3SXW5IuS1ZpFPKugNNWqTZRRglnUJK6UAZ/gxOX80nxEkN9NcGZTftn6RzhGWE" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/chart.js@2.9.4/dist/Chart.min.js" integrity="sha384-zNy6FEbO50N+Cg5wap8IKA4M/ZnLJgzc6w2NqACZaK0u0FXfOWRRJOnQtpZun8ha" crossorigin="anonymous"></script>
    <script src="/static/js/dashboard.js"></script>
  </body>
</html>