calendrier

This commit is contained in:
Jonas Legion 2021-12-08 16:40:17 +04:00
parent a07e4428c5
commit dfcf6abad5
4 changed files with 84 additions and 11 deletions

View File

@ -10,7 +10,7 @@
<link rel="apple-touch-icon" sizes="76x76" href="../../static/blk-pro/assets/img/apple-icon.png"> <link rel="apple-touch-icon" sizes="76x76" href="../../static/blk-pro/assets/img/apple-icon.png">
<link rel="icon" type="image/png" href="../../static/blk-pro/assets/img/favicon.png"> <link rel="icon" type="image/png" href="../../static/blk-pro/assets/img/favicon.png">
<title> <title>
Vavang'Art • Billetterie fédérée {{ configuration.organisation }} • Billetterie
</title> </title>
<!-- Fonts and icons --> <!-- Fonts and icons -->
<link href="https://fonts.googleapis.com/css?family=Poppins:200,300,400,600,700,800" rel="stylesheet"/> <link href="https://fonts.googleapis.com/css?family=Poppins:200,300,400,600,700,800" rel="stylesheet"/>
@ -81,12 +81,4 @@
} }
} }
</script> </script>
<script src="https://cdn.trackjs.com/agent/v3/latest/t.js"></script>
<script>
window.TrackJS &&
TrackJS.install({
token: "ee6fab19c5a04ac1a32a645abde4613a",
application: "black-dashboard-pro"
});
</script>
</html> </html>

View File

@ -0,0 +1,80 @@
{% load static %}
{% get_media_prefix as MEDIA_PREFIX %}
<div class="section" id="calendrier">
<div class="container">
<div id="contentAreas" class="cd-section">
<div id="tables">
<div class="row">
<div class="col-md-8 ml-auto mr-auto">
<h6>Calendrier</h6>
<div class="card card-plain">
<div class="card-header">
<h4 class="card-title"></h4>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table tablesorter" id="">
<thead class="">
<tr>
<th>
Date
</th>
<th>
Évenement
</th>
<th class="text-center">
Prix
</th>
<th class="text-right">
Réserver
</th>
</tr>
</thead>
<tbody>
{% for event in events %}
<tr>
<td>
{{ event.datetime | date:"D d F Y" }} {{ event.datetime | time }}
</td>
<td>
{{ event.name }}
</td>
<td class="text-center">
{% for product in event.products.all %}
{% if product.categorie_article == categorie_billet %}
<h5 class="card-title">
{% for price in product.prices.all %}
{% if forloop.first %}
{{ price.prix | floatformat:"-2" }}€
{% else %}
/ {{ price.prix | floatformat:"-2" }}€
{% endif %}
{% endfor %}
</h5>
{% endif %}
{% endfor %}
</td>
<td class="text-right">
<a href="{% url 'show_event' event.slug %}">
<button type="button" rel="tooltip"
class="btn btn-warning btn-icon btn-sm ">
<i class="tim-icons icon-cart"></i>
</button>
</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- end tables -->
</div>
</div>
</div>

View File

@ -41,6 +41,7 @@
<img src="{% static 'blk-pro/assets/img/path2.png' %}" class="path shape"> <img src="{% static 'blk-pro/assets/img/path2.png' %}" class="path shape">
{% include 'blk-pro-mvc/events_list.html' %} {% include 'blk-pro-mvc/events_list.html' %}
<!-- END EVENTS LIST--> <!-- END EVENTS LIST-->
{% include 'blk-pro-mvc/calendar.html' %}
</div> </div>

View File

@ -6,7 +6,7 @@
<nav class="navbar navbar-expand-lg fixed-top navbar-transparent " color-on-scroll="300"> <nav class="navbar navbar-expand-lg fixed-top navbar-transparent " color-on-scroll="300">
<div class="container"> <div class="container">
<div class="navbar-translate"> <div class="navbar-translate">
<a class="navbar-brand" href="/" rel="tooltip" <a class="navbar-brand" href="/#" rel="tooltip"
data-placement="bottom"> data-placement="bottom">
<span>{{ configuration.organisation }} •</span> TiBillet <span>{{ configuration.organisation }} •</span> TiBillet
</a> </a>
@ -36,7 +36,7 @@
<ul class="navbar-nav ml-auto"> <ul class="navbar-nav ml-auto">
<li class="nav-item"> <li class="nav-item">
<a href="/" class="dropdown-item"> <a href="/#calendrier" class="dropdown-item">
<i class="tim-icons icon-calendar-60"></i> Calendrier <i class="tim-icons icon-calendar-60"></i> Calendrier
</a> </a>
</li> </li>