form + filter

This commit is contained in:
Kevin Tessier 2019-04-08 18:00:38 +02:00
parent 52fe56a7fc
commit 4346f85d56
25 changed files with 476 additions and 179 deletions

View File

@ -2,6 +2,8 @@
title: contact title: contact
--- ---
Faux-texte: a pour fonction de faire office de texte de substitution ou d'outil permettant la comparaison et l'appréciation de différentes polices. adresse
adresse
On appelle Lipsum un texte qui, en l'absence du texte définitif, sert de substitut aux futurs contenus lors de la production de maquettes pour les publications ou sites Web. Le terme Lipsum est issu de la contraction du plus connu de ce type de texte "Lorem ipsum". Ils sont également connus sous les noms de texte blanc, faux-texte, bolo bolo, pseudo texte, texte factice, vrai faux texte, faux contenu, texte de remplissage, de remplacement, ou d'attente. Outre son usage dans les milieux de l'imprimerie et du graphisme, certains chansonniers en font l'utilisation lors de la composition de mélodies, chantant ces textes en amont de l'écriture de leur textes. L'utilisation de faux-textes aurait déjà été une pratique courante depuis le 16ème siècle dans les milieux de l'imprimerie et de la composition. téléphone
mail
horaires

View File

@ -10,7 +10,7 @@ content:
texte de présentation du campus texte de présentation du campus texte de présentation du campus texte de présentation du campus texte de présentation du campus texte de présentation du campus texte de présentation du campus texte de présentation du campus texte de présentation du campus texte de présentation du campus texte de présentation du campus texte de présentation du campus
texte de présentation du campus.texte de présentation du campus texte de présentation du campus texte de présentation du campus texte de présentation du campus texte de présentation du campus texte de présentation du campus.texte de présentation du campus texte de présentation du campus texte de présentation du campus texte de présentation du campus texte de présentation du campus
texte de présentation du campus texte de présentation du campus. texte de présentation du campus texte de présentation du campus texte de présentation du campus texte de présentation du campus texte de présentation du campus texte de présentation du campus. texte de présentation du campus texte de présentation du campus texte de présentation du campus texte de présentation du campus
[tout savoir sur le campus](/lecampus) [tout savoir sur le campus](/qui-sommes-nous/le-campus)
![](imgtest.jpg)**Le Campus, au coeur du Val de Drôme, un site tout équipé pour vos événements.** ![](imgtest.jpg)**Le Campus, au coeur du Val de Drôme, un site tout équipé pour vos événements.**
5 salles à louer : 5 salles à louer :

View File

@ -1,5 +1,7 @@
--- ---
title: 'Demande de devis' title: 'Demande de devis'
published: true
visible: false
form: form:
name: ajax-test-form name: ajax-test-form
fields: fields:
@ -11,7 +13,6 @@ form:
type: select type: select
size: long size: long
classes: fancy classes: fancy
help: PLUGIN_ADMIN.DEFAULT_ORDERING_HELP
options: options:
reunion: Réunion reunion: Réunion
seminaire: Séminaire seminaire: Séminaire
@ -23,26 +24,89 @@ form:
evenement_culturel: 'Evènement culturel' evenement_culturel: 'Evènement culturel'
autre: Autres autre: Autres
- -
name: 'Quelle sera l''envergure de votre évènement ?' name: '2 Quelle sera l''envergure de votre évènement ?'
type: radio placeholder: 'Nombre de personnes'
default: markdown autofocus: 'on'
autocomplete: 'on'
type: select
size: long
classes: fancy
options: options:
-25: '<= 25 personnes' 25: '<= 25 personnes'
-50: '<= 50 personnes' 50: '<= 50 personnes'
-100: '<= 100 personnes' 100: '<= 100 personnes'
150: 'Plus de 150 personnes' 150: 'Plus de 150 personnes'
-
name: '3 Quand se déroulera votre évènement ?'
placeholder: 'Choisissez vos date ?'
autofocus: 'on'
autocomplete: 'on'
type: select
size: long
classes: fancy
options:
1/2j: '1/2 journée'
1j: '1 jour'
1s: '1 soirée'
2j: '2 jours'
3j: '3 jours'
+3j: 'Plus de 3 jours'
-
name: Prenom
placeholder: prenom
type: text
size: long
classes: fancy
-
name: Nom
placeholder: nom
type: text
size: long
classes: fancy
-
name: Email
placeholder: Email
type: email
size: long
classes: fancy
-
name: phone
placeholder: Télphone
type: text
size: long
classes: fancy
-
name: fonction
placeholder: fonction
type: text
size: long
classes: fancy
-
name: société
placeholder: Société
type: text
size: long
classes: fancy
-
name: 'Votre profil'
placeholder: 'quel est votre profil'
autofocus: 'on'
autocomplete: 'on'
type: select
size: long
classes: fancy
options:
Agence_evenementielle: 'Agence évènementielle'
associations: 'Associations (sociétés savantes, fédérations, syndicats) '
societes_entreprises: 'Sociétés / Entreprises'
Organismes_professionnels: 'Orgaismes Professionnels'
buttons: buttons:
- -
type: submit type: submit
value: Submit value: Envoyer
-
type: reset
value: Reset
process: process:
- -
message: 'Thank you for your feedback!' message: 'Thank you for your feedback!'
-
display: /demande-de-devis/thankyou
- -
email: email:
from: kvntssr@gmail.com from: kvntssr@gmail.com

View File

@ -0,0 +1,92 @@
extends@: default
child_type: item
rules:
slug:
pattern: "[a-z][a-z0-9_\-]+"
min: 2
max: 80
form:
fields:
tabs:
type: tabs
active: 1
fields:
advanced:
fields:
overrides:
fields:
header.child_type:
default: item
blog:
type: tab
title: Blog Config
fields:
content_title:
type: spacer
title: Content Definition
header.content.items:
type: textarea
yaml: true
label: Items
default: '@self.children'
validate:
type: yaml
header.content.limit:
type: text
label: Max Item Count
default: 5
validate:
required: true
type: int
min: 1
header.content.order.by:
type: select
label: Order By
default: date
options:
folder: Folder
title: Title
date: Date
default: Default
header.content.order.dir:
type: select
label: Order
default: desc
options:
asc: Ascending
desc: Descending
header.content.pagination:
type: toggle
label: Pagination
highlight: 1
default: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
header.content.url_taxonomy_filters:
type: toggle
label: URL Taxonomy Filters
highlight: 1
default: 1
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
import@:
type: partials/blog-bits
context: blueprints://pages

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,32 +1,14 @@
function map() { function map() {
var mymap = L.map('map').setView([51.505, -0.09], 13); var mymap = L.map('carte').setView([44.7365818, 4.9776488], 13);
L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw', { L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw', {
maxZoom: 18, maxZoom: 18,
attribution: 'Map data &copy; <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, ' +
'<a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, ' +
'Imagery © <a href="https://www.mapbox.com/">Mapbox</a>',
id: 'mapbox.streets' id: 'mapbox.streets'
}).addTo(mymap); }).addTo(mymap);
L.marker([51.5, -0.09]).addTo(mymap) L.marker([44.7365818, 4.9776488]).addTo(mymap)
.bindPopup("<b>Hello world!</b><br />I am a popup.").openPopup(); .bindPopup("<b>Hello world!</b><br />I am le campus.").openPopup();
L.circle([51.508, -0.11], 500, {
color: 'red',
fillColor: '#f03',
fillOpacity: 0.5
}).addTo(mymap).bindPopup("I am a circle.");
L.polygon([
[51.509, -0.08],
[51.503, -0.06],
[51.51, -0.047]
]).addTo(mymap).bindPopup("I am a polygon.");
var popup = L.popup();
function onMapClick(e) { function onMapClick(e) {
popup popup
@ -44,28 +26,21 @@ function filteritem() {
var $cat = $('.cat a'); var $cat = $('.cat a');
var $img = $('#item .img'); var $img = $('#item .img');
var $grid = $card.masonry({ var $grid = $('#archive #item, #calendrier #item').masonry({
// columnWidth: 200,
itemSelector: '.card', itemSelector: '.card',
columnWidth: '.card',
percentPosition: true,
gutter: 10, gutter: 10,
transitionDuration: '0.2s' transitionDuration: '0.2s'
}); });
// $card.masonry({
// itemSelector: '.grid-item',
// columnWidth: '.grid-sizer',
// percentPosition: true
// })
$grid.imagesLoaded().progress(function() { $grid.imagesLoaded().progress(function() {
$grid.masonry(); $grid.masonry();
}); });
// $card.multipleFilterMasonry({ $grid.multipleFilterMasonry({
// itemSelector: '.card', itemSelector: '.card',
// filtersGroupSelector: '.tags' filtersGroupSelector:'.filters'
// }); });
} }
function slide() { function slide() {
@ -76,11 +51,26 @@ function slide() {
active: false active: false
} }
}); });
}
function links() {
href="/organisez-vos-evenements"
var $a = $('li a[href="/organisez-vos-evenements"]');
var $map = $('a#carte');
$a.on('click', function(e) {
e.preventDefault();
})
$map.on('click', function(e) {
e.preventDefault();
})
} }
jQuery(document).ready(function($){ jQuery(document).ready(function($){
links();
slide(); slide();
filteritem();
map(); map();
// filteritem();
}); });

View File

@ -1,5 +1,4 @@
// home // home
.gal{ .gal{
width: 100%; width: 100%;
height:400px; height:400px;
@ -41,12 +40,20 @@
.cat{ .cat{
height: 50px; height: 50px;
a{ z-index: 999;
margin: 20px 0;
.tags{
@include inlineflex();
margin-left: 15px;
}
.filters{
padding: 10px; padding: 10px;
border: 1px solid black; border: 1px solid black;
margin-right: 20px;
} }
} }
.start:not(#form){
#item{ #item{
@include inlineflex(); @include inlineflex();
width: 100%; width: 100%;
@ -54,11 +61,10 @@
width: calc( (100% / 4) - 45px); width: calc( (100% / 4) - 45px);
min-width: 250px; min-width: 250px;
margin: 0 15px 30px 15px; margin: 0 15px 30px 15px;
position: relative;
border: 1px solid black; border: 1px solid black;
.card-header{ .card-header{
width: auto;
position: absolute; position: absolute;
width: auto;
right: 0; right: 0;
text-align: right; text-align: right;
.publics{ .publics{
@ -77,6 +83,32 @@
} }
} }
} }
}
.start#form{
#item{
width: calc( (100% / 2));
min-width: 250px;
margin: 100px auto;
form{
@include inlineflex();
margin-top: 20px;
& > div{
margin: 20px 0;
width: 50%;
&:nth-of-type(3){
width: 100%;
}
input{
width: 90%;
}
&:nth-of-type(10){
width: 100%;
}
}
}
}
}
.content{ .content{
width: 40%; width: 40%;
@ -132,6 +164,7 @@
} }
} }
#item{
.sub-content{ .sub-content{
border-top: 1px solid black; border-top: 1px solid black;
margin-bottom: 20px; margin-bottom: 20px;
@ -140,6 +173,39 @@
margin-top: 20px; margin-top: 20px;
} }
} }
}
#event{
.content{
margin-top: 50px;
h2{
float: left;
margin-right: 20px;
}
.reso{
@include inlineflex;
flex-wrap: nowrap;
width: 50px;
height: 25px;
}
}
.sidebar{
margin-top: 50px;
}
}
#footer{
@include inlineflex;
.sub-content{
width: calc((100% / 3) - 40px);
border-top: 1px solid black;
margin: 20px;
h3{
margin-top: 20px;
}
}
}
.sidebar{ .sidebar{
margin: 0 auto 0 20px; margin: 0 auto 0 20px;
@ -168,11 +234,3 @@
#footer{ #footer{
margin-top: 20px; margin-top: 20px;
} }
// .card{
// height: 100px;
// .card-image{
// height: 100px;
// }
// }

View File

@ -7,8 +7,8 @@
} }
} }
a#map{ a#carte{
display: block; display: block;
height: 300px; height: 500px;
width: 300px; width: 100%;
} }

View File

@ -3,9 +3,9 @@
position: relative; position: relative;
nav{ nav{
@include inlineflex(); @include inlineflex();
justify-content: space-between; justify-content: space-around;
height: 100px; height: 100px;
width: auto; width: 100%;
a{ a{
padding: 10px; padding: 10px;
} }
@ -17,7 +17,7 @@
& > ul{ & > ul{
display: none; display: none;
} }
&:nth-last-child(-n+2){ &:nth-last-child(-n+1){
& > a{ & > a{
display: block; display: block;
height: 100px; height: 100px;
@ -48,6 +48,7 @@
} }
.desktop-menu{ .desktop-menu{
@include inlineflex; @include inlineflex;
flex-wrap: nowrap;
} }
} }
} }

View File

@ -10,6 +10,11 @@ h2{
font-size: 2rem; font-size: 2rem;
} }
h4{
font-weight: normal;
font-size: 2rem;
}
h5{ h5{
font-weight: normal; font-weight: normal;
font-size: 1.2rem; font-size: 1.2rem;

View File

@ -0,0 +1,39 @@
{% extends 'partials/base.html.twig' %}
{% set blog_image = page.media.images[page.header.hero_image] ?: page.media.images|first %}
{% set collection = page.collection() %}
{% set blog = page.find(header_var('blog_url')|defined(theme_var('blog-page'))) %}
{% set show_breadcrumbs = header_var('show_breadcrumbs', [page, blog])|defined(true) %}
{% set show_sidebar = header_var('show_sidebar', [page, blog])|defined(true) %}
{% set show_pagination = header_var('show_pagination', [page, blog])|defined(true) %}
{% block hero %}
{% include 'partials/hero.html.twig' with {id: 'blog-hero', content: page.content, hero_image: blog_image} %}
{% endblock %}
{% block body %}
<section id="body-wrapper" class="section blog-listing">
<section class="container {{ grid_size }}">
<div class="cat">
{% include 'partials/taxonomylist.html.twig' with {base_url: my_url, taxonomy: 'tag'} %}
</div>
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
{% include 'partials/breadcrumbs.html.twig' %}
{% endif %}
{% embed 'partials/layout.html.twig' with {blog: page} %}
{% block item %}
{% for child in page.find('/agenda').children %}
{% if child.header.date_end|date("d/m/y") <= "now"|date("d/m/y") %}
{{child.title}}
{% include 'partials/cal-list-event.html.twig' with {blog: page, page: child} %}
{% endif %}
{% endfor %}
{% endblock %}
{% endembed %}
</section>
</section>
{% endblock %}

View File

@ -21,13 +21,9 @@
{% endfor %} {% endfor %}
</div> </div>
{% if show_sidebar %}
{% block sidebar %} {% block sidebar %}
{% include 'partials/sidebar.html.twig' %} {% include 'partials/sidebar.html.twig' %}
{% endblock %} {% endblock %}
{% endif %}
</section> </section>
{% endblock %} {% endblock %}

View File

@ -11,9 +11,12 @@
{% endblock %} {% endblock %}
{% block body %} {% block body %}
<section id="body-wrapper" class="section blog-listing"> <section id="body-wrapper" class="section blog-listing">
<section class="container {{ grid_size }}"> <section class="container {{ grid_size }}">
<div class="cat">
{% include 'partials/taxonomylist.html.twig' with {base_url: my_url, taxonomy: 'tag'} %}
</div>
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %} {% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
{% include 'partials/breadcrumbs.html.twig' %} {% include 'partials/breadcrumbs.html.twig' %}
{% endif %} {% endif %}
@ -21,15 +24,16 @@
{% embed 'partials/layout.html.twig' with {blog: page} %} {% embed 'partials/layout.html.twig' with {blog: page} %}
{% block item %} {% block item %}
<div class="cat">
{% include 'partials/taxonomylist.html.twig' with {base_url: my_url, taxonomy: 'tag'} %}
</div>
{% for child in collection %} {% for child in collection %}
{% if child.header.date_end|date("d/m/y") >= "now"|date("d/m/y") %}
{% include 'partials/cal-list-event.html.twig' with {blog: page, page: child} %} {% include 'partials/cal-list-event.html.twig' with {blog: page, page: child} %}
{% endif %}
{% endfor %} {% endfor %}
{% endblock %} {% endblock %}
{% endembed %} {% endembed %}
</section> </section>
</section> </section>

View File

@ -28,7 +28,7 @@
{% embed 'partials/layout.html.twig' %} {% embed 'partials/layout.html.twig' %}
{% block item %} {% block item %}
{% include 'partials/blog-item.html.twig' %} {% include 'partials/cal-event.html.twig' %}
{% endblock %} {% endblock %}
{% endembed %} {% endembed %}
</section> </section>

View File

@ -10,7 +10,9 @@
{% endif %} {% endif %}
{% for item in collection %} {% for item in collection %}
<div class="sub-content">
<h3>{{item.title}}</h3> <h3>{{item.title}}</h3>
{{item.content}} {{item.content}}
</div>
{% endfor %} {% endfor %}
</section> </section>

View File

@ -20,8 +20,6 @@
{% endblock %} {% endblock %}
{% block body %} {% block body %}
<section id="body-wrapper" class="section blog-listing">
<section class="container {{ grid_size }}">
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %} {% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
{% include 'partials/breadcrumbs.html.twig' %} {% include 'partials/breadcrumbs.html.twig' %}
{% endif %} {% endif %}
@ -35,6 +33,5 @@
{% for child in page.collection %} {% for child in page.collection %}
{{child.content}} {{child.content}}
{% endfor %} {% endfor %}
</section>
</section>
{% endblock %} {% endblock %}

View File

@ -24,11 +24,11 @@
{% block javascripts %} {% block javascripts %}
{% do assets.addJs('jquery', 101) %} {% do assets.addJs('jquery', 101) %}
{% do assets.addJs('theme://js/masonry.pkgd.min.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/imagesloaded.pkgd.min.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/multipleFilterMasonry.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/jquery.slides.min.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/leaflet.js', {group:'bottom'}) %} {% do assets.addJs('theme://js/leaflet.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/masonry.pkgd.min.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/multipleFilterMasonry.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/imagesloaded.pkgd.min.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/jquery.slides.min.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/site.js', {group:'bottom'}) %} {% do assets.addJs('theme://js/site.js', {group:'bottom'}) %}
{% endblock %} {% endblock %}
@ -47,12 +47,10 @@
<a href="/"><h1>{{site.title}}</h1></a> <a href="/"><h1>{{site.title}}</h1></a>
</section> </section>
<section class="desktop-menu"> <section class="desktop-menu">
<nav class="dropmenu animated"> <nav class="dropmenu animated">
{% block header_navigation %} {% block header_navigation %}
{% include 'partials/navigation.html.twig' %} {% include 'partials/navigation.html.twig' %}
{% endblock %} {% endblock %}
</nav> </nav>
{% if config.plugins.login.enabled and grav.user.username %} {% if config.plugins.login.enabled and grav.user.username %}

View File

@ -7,5 +7,5 @@
<a href="{{ page.header.link }}" class="u-url">{{ page.title }}</a> <a href="{{ page.header.link }}" class="u-url">{{ page.title }}</a>
</{{ title_level }}> </{{ title_level }}>
{% else %} {% else %}
<{{ title_level }} class="p-name mt-1"><a href="{{ page.url }}" class="u-url">{{ page.title }}</a></{{ title_level }}> <{{ title_level }}>{{ page.title }}</{{ title_level }}>
{% endif %} {% endif %}

View File

@ -1,23 +1,14 @@
{% set image = page.media.images|first %} {% set image = page.media.images|first %}
<div class="content-item h-entry">
{% if not hero_image_name %} {% if not hero_image_name %}
<div class="content-title text-center"> <div class="content">
{% include 'partials/blog/title.html.twig' with {title_level: 'h2'} %} {% include 'partials/blog/title.html.twig' with {title_level: 'h2'} %}
<div class="reso">
<img src="/user/themes/lecampus/images/fb.svg" alt="">
</div>
{% if page.header.subtitle %} {% if page.header.subtitle %}
<h3 >{{ page.header.subtitle }}</h3> <h3 >{{ page.header.subtitle }}</h3>
{% endif %} {% endif %}
{% include 'partials/blog/public.html.twig' %}
{% include 'partials/blog/date.html.twig' %}
{% include 'partials/blog/reseaux_sociaux.html.twig' %}
</div>
{% endif %}
<div class="e-content">
{% if image %}
{{ image.html }}
{% endif %}
{{ page.content|raw }} {{ page.content|raw }}
</div> </div>
{% endif %}
</div>

View File

@ -1,4 +1,6 @@
<div class="card"> {% for tag in page.taxonomy.tag %}
<div class="card {{tag}} Tous">
{% endfor %}
<div class="card-header"> <div class="card-header">
{% include 'partials/blog/public.html.twig' %} {% include 'partials/blog/public.html.twig' %}
</div> </div>
@ -14,11 +16,13 @@
{% include 'partials/blog/date.html.twig' %} {% include 'partials/blog/date.html.twig' %}
</div> </div>
<div class="card-summary"> <div class="card-summary">
<a href="{{ page.url }}">
{% if page.summary != page.content %} {% if page.summary != page.content %}
{{ page.summary|raw }} {{ page.summary|raw }}
{% else %} {% else %}
{{ page.content|raw }} {{ page.content|raw }}
{% endif %} {% endif %}
</a>
</div> </div>
</div> </div>
</div> </div>

View File

@ -3,7 +3,9 @@
<section id="footer" class="section blog-listing"> <section id="footer" class="section blog-listing">
{% for p in page.find('/home').children if p != page %} {% for p in page.find('/home').children if p != page %}
<h1>{{p.title}}</h1> <div class="sub-content">
<h2>{{p.title}}</h2>
{{p.content}} {{p.content}}
</div>
{% endfor %} {% endfor %}
</section> </section>

View File

@ -3,9 +3,11 @@
<div id="item"> <div id="item">
{% block item %}{% endblock %} {% block item %}{% endblock %}
{% if show_sidebar %} {% if show_sidebar %}
{% block sidebar %} {% block sidebar %}
{% include 'partials/sidebar.html.twig' %} {% include 'partials/sidebar.html.twig' %}
{% endblock %} {% endblock %}
{% endif %} {% endif %}
</div> </div>

View File

@ -1,12 +1,32 @@
{% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags() : taxonomylist.get() %} {% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags() : taxonomylist.get() %}
{% if taxlist %} {% if taxlist %}
<span class="tags"> <div class="tags">
<a class="" href="#">Tous</a> <div class="btn-toolbar filters">
<div data-toggle="buttons" class="btn-group">
<label class="btn btn-default">
<input type="checkbox" value=Tous >
Tous
</label>
</div>
</div>
{% for tax,value in taxlist[taxonomy] %} {% for tax,value in taxlist[taxonomy] %}
{% set label_class = uri.param(taxonomy) == tax ? 'label-primary' : 'label-secondary' %} {% set label_class = uri.param(taxonomy) == tax ? 'label-primary' : 'label-secondary' %}
<a class="label label-rounded {{ label_class }}" href="{{ base_url }}/{{ taxonomy }}{{ config.system.param_sep }}{{ tax }}">{{ tax }}</a> <div class="btn-toolbar filters">
<div data-toggle="buttons" class="btn-group">
<label class="btn btn-default">
<input type="checkbox" value={{tax}} >
{{tax}}
</label>
</div>
</div>
{% endfor %} {% endfor %}
<a class="" href="#">Achives</a> <div class="btn-toolbar filters">
</span> <div data-toggle="buttons" class="btn-group">
<label class="btn btn-default">
<a href="/archive">archive</a>
</label>
</div>
</div>
</div>
{% endif %} {% endif %}