Translated to french and bugfixes

This commit is contained in:
simon
2018-05-16 17:01:04 -04:00
parent 3b2d2bdd8d
commit f76c935c49
15 changed files with 296 additions and 234 deletions

View File

@@ -2,7 +2,7 @@
{% set active_page = "search" %}
{% block title %}Search{% endblock title %}
{% block title %}Recherche{% endblock title %}
{% block imports %}
<link href="/static/css/search.css" rel="stylesheet" type="text/css">
@@ -14,36 +14,38 @@
<div class="card">
<div class="card-body">
<div class="form-group">
<input id="pathBar" type="search" class="form-control" placeholder="Filter path">
<input id="pathBar" type="search" class="form-control" placeholder="Filtrer le chemin">
</div>
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">
<span onclick="document.getElementById('barToggle').click()">Must match&nbsp</span>
<input title="Toggle between 'Should' and 'Must' match mode" type="checkbox" id="barToggle" onclick="toggleSearchBar()" checked>
<span onclick="document.getElementById('barToggle').click()">Doit être égal&nbsp</span>
<input title="Basculer entre 'Devrait' and 'doit' être égal" type="checkbox" id="barToggle" onclick="toggleSearchBar()" checked>
</div>
</div>
<input id="searchBar" type="search" class="form-control" placeholder="Search">
<input id="searchBar" type="search" class="form-control" placeholder="Recherche">
</div>
<input title="File size" id="sizeSlider" name="size">
<input title="Taille des fichiers" id="sizeSlider" name="size">
<div class="row">
<div class="col">
<label for="directories" >Search in directories</label>
<label for="directories" >Rechercher dans les dossiers</label>
<select class="custom-select" id="directories" multiple size="6">
{% for dir_id in directories %}
{% if directories[dir_id].enabled %}
<option selected value="{{ directories[dir_id].id }}">{{ directories[dir_id].name }}</option>
{% endif %}
{% endfor %}
{% if directories | length > 0%}
{% for dir in directories %}
<option selected value="{{ dir.id }}">{{ dir.name }}</option>
{% endfor %}
{% else %}
<option disabled>Il n'existe aucun dossier actif auquel vous avez accès</option>
{% endif %}
</select>
</div>
<div class="col">
<label>Mime types</label>
<label>Types de fichier</label>
<div class="tree"></div>
</div>