A
Anonymous

Department Filter Form - Copy this Html, Bootstrap Component to your project

Redesign ce filtre <form method="get" class="mb 3"> <div class="form group"> <label for="department" class="form label">Filtrer par département :</label> <div class="input group"> <select name="department" id="department" class="form select"> <option value="">Tous les départements</option> {% for code, name in departments %} <option value="{{ code }}" {% if selected_department == code %}selected{% endif %}> {{ name }} </option> {% endfor %} </select> <div class="mt 2"> <button type="submit" class="btn btn primary">Filtrer</button> </div> </div> </div> </form>

Prompt
Component Preview

About

Department Filter Form - Easily filter departments with a dropdown, featuring a clear label, and a submit button, built with HTML and. View and copy code!

Share

Last updated 1 month ago