Have a proper label for the checkbox

This commit is contained in:
Alexandre Aubin 2018-12-20 17:33:50 +01:00 committed by GitHub
parent 4df9852a50
commit 5d5aeacb74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -200,7 +200,7 @@
var params = {};
// make confirm content
var purgeCheckbox = '<input type="checkbox">'+ y18n.t('purge_user_data_checkbox', [c.params['user']]) +'</input>';
var purgeCheckbox = '<div><input type="checkbox" id="purge-user-data" name="purge-user-data"> <label for="purge-user-data">'+ y18n.t('purge_user_data_checkbox', [c.params['user']]) +'</label></div>';
var purgeAlertMessage = '<div class="warning" style="display: none">⚠ '+ y18n.t('purge_user_data_warning') +'</div>';
var confirmModalContent = $('<div>'+ y18n.t('confirm_delete', [c.params['user']]) +'<br><br>'+ purgeCheckbox +'<br>'+ purgeAlertMessage +'</div>');