<label for="toggle_is_available" class="switch toggle-availability" data-ajax="{{ path('espace_perso_toggle_availability') }}" >
    <input type="checkbox" id="toggle_is_available" name="is_available" value="1" {% if app.user.isAvailable %}checked{% endif %} />
    <span class="slider"></span>
    <span class="label">{% if app.user.isAvailable %}{{ 'form.switch.is_available.checked'|trans([], 'form') }}{% else %}{{ 'form.switch.is_available.unchecked'|trans([], 'form') }}{% endif %}</span>
</label>